Skip to content

Instantly share code, notes, and snippets.

@dimsuz
Created November 6, 2013 11:01
Show Gist options
  • Save dimsuz/7334295 to your computer and use it in GitHub Desktop.
Save dimsuz/7334295 to your computer and use it in GitHub Desktop.
Android Button Bar
<LinearLayout
android:id="@+id/buttonArea"
style="?android:attr/buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="bottom|right"
android:orientation="horizontal"
android:padding="5dp" >
<Button
android:id="@+id/button1"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<Button
android:id="@+id/button2"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment