how to place buttons inside a layout at desired positions in android [closed]
I am new to android, In my project named Fill In the Blanks I have to place textviews and editboxes at desired positions in a layout . plz help me Thank you in advance.
Read some basics about Android layouts: http://developer.android.com/guide/topics/ui/layout-objects.html
Start here to acquaint yourself with Android layout XML, then familiarise yourself with the various layout objects that are available by reading this.
Depends on the desired positions. There are several layouts you can use.
The link mibollma provided is a good start to learn the basics of layouts.
Here are some tutorials on some different layouts:
http://developer.android.com/resources/tutorials/views/index.html
You can try http://www.droiddraw.org/ With fair easy GUI interface, it will create for you the XML needed for whatever GUI you will draw.
You should use RelativeLayouts,they allow you to put widgets in any position without nesting too much(something that you gotta do with LinearLayouts)
You should use AbsuluteLayout in android for place object on desired position.
精彩评论