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:
TableLayout for the first requirement.
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
精彩评论