0
私はアンドロイドビューの下部にカスタムタブバーを持っています。 メインページの内容は、利用可能な高さ全体を考慮しなければならないので、私はメインページに "GONE"を表示したいと思います。Android Fragment Tabbar - メインページでは表示されませんか?
しかし、visibility = "gone"に設定しても、コンテンツビューが完全な高さではないため、メインページのレンダリング時にタブバーの100dpの高さが考慮されます。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" android:gravity="center_horizontal">
<FrameLayout android:layout_width='fill_parent'
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical" android:id="@+id/content">
</FrameLayout>
<fragment android:name="MainActivity$TabBarFragment"
android:visibility="gone"
android:id="@+id/tabbar"
android:layout_weight="1"
android:layout_width="fill_parent"
android:layout_height="100dp"/>
にはどうすればContentViewはメインページで完全な高さを取るために得ることができますか?