Hi
i want do make navigation bar at bottom of the screen in adroid application . how can i do that? plz help me a simple example
Thanks, Suman
Hi
i want do make navigation bar at bottom of the screen in adroid application . how can i do that? plz help me a simple example
Thanks, Suman
If you use a RelativeLayout for the root of your activity, you can align other views to the bottom of the screen. This, combined with a LinearLayout as a container, will provide a flexible panel for putting your navigation bar in:
<?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"
android:text="Back"
android:layout_width="wrap_content" />
<Button
android:layout_height="wrap_content"
android:id="@+id/home"
android:text="Home"
android:layout_width="wrap_content" />
<Button
android:layout_height="wrap_content"
android:id="@+id/next"
android:text="Next"
android:layout_width="wrap_content" />
</LinearLayout>
</RelativeLayout>