jinijose
01-31-2011, 11:37 PM
http://i1193.photobucket.com/albums/aa352/jinijose/androidUI.png
i need to develop the UI as the attached image.
how can I develop it ?
am a very beginner to android.
Ivan452
02-01-2011, 03:58 AM
Well, I'm not very expirienced either maybe there is some way but what I found out is:
Every button, textView, etc.. has a few states: enabled, disabled, enabled focused, diabled focused and clicked (maybe there are some more). And for each of this states it has a different image which can be custom made.
And I think those images are 9 patches which Scythe just mentioned to me but I havent got around to read it yet:
For static images (like logos), you would use the different image resolution folders (drawable-ldpi, mdpi, hdpi, etc). For things that stretch (pretty much any layout element), you'd use nine patch graphics. This has built in padding and stretch regions, etc. There's a nice editor in the tools folder of the SDK which lets you build them. For more info, go here:
Nine patch:
http://developer.android.com/guide/developing/tools/draw9patch.html
Here's the different folders/qualifiers:
http://developer.android.com/guide/practices/screens_support.html#qualifiers
Building custom layouts are fairly easy. Most widgets just involve creating a new xml, and new nine patch image or similar for each state of the widget.
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.