Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bottom button bar in android

Tags:

I am wondering how it's possible to create bottom bar buttons in android,

I read something about this U.I. solution, are there any controls that can be used?

like image 942
Troj Avatar asked Sep 25 '10 23:09

Troj


1 Answers

You can do something like this inside a relative layout

<LinearLayout      android:id="@+id/footer"      android:layout_width="fill_parent"     android:layout_height="wrap_content"      android:orientation="horizontal"     android:layout_alignParentBottom="true"      style="@android:style/ButtonBar">      <Button          android:id="@+id/saveButton"          android:layout_width="wrap_content"         android:layout_height="wrap_content"          android:layout_weight="1"         android:text="@string/menu_done" />      <Button          android:id="@+id/cancelButton"                                                        android:layout_width="wrap_content"         android:layout_height="wrap_content"          android:layout_weight="1"         android:text="@string/menu_cancel" />  </LinearLayout> 
like image 83
Omri Avatar answered Sep 19 '22 18:09

Omri