Monday 24 June 2013

Perfect Way to Give Custom Style to a UI Component in Your Application

,
Text is an important component for most of the application, through which you will be delivering messages and all the readable components to the user. It can be a TextView, hint in an EditView, label in a ButtonView whatever it may be, you have to present it in a more readable and stylish way to the user. And the most important thing is all the text should be of same style and font for the uniformity of the application, which is very important. Here i am going to explain how you can do this in a more perfect and simple way.

As usual I am going to explain it in steps, for your simplicity and better understanding.

Read more

Sunday 23 June 2013

How to Give Different Background Images for Different States of a UI Component

,
Most of the application demands custom UI component and hence we may need to override the default properties for a view. Let me explain this by taking a ButtonView as an example by giving  different images to the button on its different states i.e one image when the button is in normal state and another when it is in pressed state. etc.

This is pretty simple to achieve. Only thing you need to implement is a selector with items that you need to deal with your button. Confused? Don't worry :) Here I am  going to explain with some simple steps.
Read more

Saturday 15 June 2013

How to Draw a Gradient Line in Android

,

Drawing gradient is not a difficult task in Android. You can draw the gradient either through java code or through XML resource file. As it is always nice to keep the user interface stuff in the xml file, I am going to explain drawing gradient through XML layout.

To understand things better lets explain through steps.

Read more
 

Tips for Android Developers Copyright © 2011 -- Powered by Blogger