开发者

how to place buttons inside a layout at desired positions in android [closed]

开发者 https://www.devze.com 2023-03-16 17:45 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_如何学编程 Closed 11 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消