First way is #RGB here RGB in hex i.e Ex for red #F00 (Here one byte) .
Second way is #RGB here RGB in hex i.e Ex for red #FF0000 (Here two byte).
Third way is to use the standard color mention by android sdk itself. ex:- “@android:color/darker_gray” .
In both case we can add alpha Eg #FFFF0000 or #FF00 .(i,e We can add(prepend) the alpha . Bold the alpha).
We can specify the icon/image to be as background to the view in layout xml with value as “@drawable/fileNameInDrawableFolder”.
No comments:
Post a Comment