Androidでナビゲーションバーを作成するにはどうすればよいですか?これに関して誰でも助けてくれますか?
2780 次
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>
これがお役に立てば幸いです。
于 2011-10-08T08:18:29.413 に答える