how to create Navigationbar in android?
How can we create Navigation bar in android can any one help me regarding开发者_运维百科 this?
Try this For Bottom Navigation Bar:-------
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:layout_height="wrap_content"
android:id="@+id/back_button"
android:text="Back"
android:layout_width="wrap_content" />
<Button
android:layout_height="wrap_content"
android:id="@+id/home_button"
android:text="Home"
android:layout_width="wrap_content" />
<Button
android:layout_height="wrap_content"
android:id="@+id/next_button"
android:text="Next"
android:layout_width="wrap_content" />
</LinearLayout>
</RelativeLayout>
I hope this help.
精彩评论