Wednesday, 3 December 2014

How to make your app look better

17:54:00 Posted by Kumanan
As a result we developers make use of gradients and other enhancements to pimp up the look of our application.
Now you may suffer from branding in your gadgets, this is because default your app is rendered a low color pallet. This helps the app lower the memory usage, but also gives these branding problems and other artifacts.

Just put the below code in your onCreate() of your activity and gone are those nasty problems.
Note that this will increase your memory usage of your application.

getWindow().setFormat(PixelFormat.RGBA_8888);

getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER);