开发者

how to add buttons at the bottom of the screen and edit text as the third column of the page?

i want to create a page ,in such a way that a list should come in which first two columns,shows product name and its cost,and the third column should be an edit text to 开发者_如何学Pythonfill quantity.moreover i need three buttons at the bottom of the page.i am a newbie t android programming,plz help


Create a RelativeLayout that contains 2 layouts:

  1. TableLayout for the first requirement.

  2. Another RelativeLayout for keeping buttons at the bottom:

For 3 buttons u set the property android:layout_alignParentBottom="true". For the 1st button u give android:layout_alignParentLeft="true" and the 2nd button and 3rd buttons u give android:toRightOf="" property.


You will need to use custom Listiview for this pupose. Your mainview will contain a listview and the 3 buttons at the bottoms as you want. Checkout following example for custom listview

Custom Listview

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜