Monday, November 30, 2015

Dependency injection

Once again, the brilliant developers at Square present another amazing tool:

Dagger: The dependency injection tool that helps the developer focus on building rather than using Google and duct tape to wire dependencies together.

Check it out here: http://square.github.io/dagger/

Wednesday, October 14, 2015

Binder limits

Just hit a binder limit today through a pretty common problem:

I'm trying to save an image, and why not save the image as a byte array in SQLite3?

Doesn't sound like a good idea but , but it turns out it's impossible due to Binder's 1 MB transaction limit. As a result, it's a very bad idea to save image files in the SQLite database. Instead, the resources should be saved on disk.

Thursday, August 13, 2015

Material Design in Google products

Recreating Google Music's toolbars
I think it's important to learn how high the bar is set from Google's designers. This Medium post by Daniel Veihelmann does a great job explaining how to recreate Material Design.

Sunday, July 12, 2015

Using a TableLayout inside RecyclerView

Looking through Google's documentation on how to use RecyclerView, I was pretty confused on how to implement a Layout within a RecyclerView. There's not that many use-cases to store singular View like a TextView inside a RecyclerView, so I went ahead and experimented to see if it's possible to store a Layout, which allows storage of multiple Views.

And voila, I did it and have an example posted on my Github project.