Android Developer
Thursday, December 13, 2018
Image sizing inside a ImageButton
https://stackoverflow.com/questions/15116393/fit-image-in-imagebutton-in-android
Monday, February 1, 2016
Image Loading
So if you're a new developer and get asked how to do background image loading, here's a tip: Don't write the methods yourself. There's a few polished Android libraries that handle background image loading. Of course, which library is the best is up to personal preference.
Click to check out the discussion on StackOverflow
Click to check out the discussion on StackOverflow
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/
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/
Thursday, October 22, 2015
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.
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.
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.
Subscribe to:
Posts (Atom)