как создать панель навигации в Android?

#android #navigationbar

#Android #панель навигации

Вопрос:

Как мы можем создать панель навигации в Android, может ли кто-нибудь помочь мне в этом?

Комментарии:

1. увеличьте скорость доступа

Ответ №1:

Попробуйте это для нижней панели навигации:——-

 <?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>
  

Я надеюсь, что это поможет.