私のアプリケーションにはタブバーがあります。リストビューを表示している4つのタブが含まれています。正常に動作していましたが、タブバーを画面の下部に移動する必要があります。ビューの下部にタブバーを表示するようにコードを変更すると、リストビューもタブバーと重なって全画面表示されます。
これがサンプルコードです
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainlayout"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="vertical" >
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#000000">
<RelativeLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="5dp">
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/Label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Credit Balance"
android:background = "#55000000"
android:textColor = "#FF0033"
/>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
**android:layout_alignParentBottom = "true"**/>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" />
</RelativeLayout>
</TabHost>
</FrameLayout>
次のコードを使用して、4つのそれぞれのタブに4つのリストビューを追加しています
tabHost.addTab(tabHost.newTabSpec(NEW_TAB).setIndicator(NEW)
.setContent(new Intent(this, NEWActivity.class)));
誰かがこれに対する解決策を提案できますか?
ありがとう