0
私はタブ付きアクティビティを使用しています。対応する部分には3つのタブがあります。今私は、タブを変更すると、すべてのフラグメントに表示されるフッタをディスパッチしたいと思います。これは可能ですか? uは次のように使用してタブの選択に基づいて、フッターにその変更ビュー後タブ付きアクティビティのフッター
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<TabHost
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</TabHost>
<LinearLayout
android:id="@+id/footer"
android:layout_below="@android:id/tabs"
android:layout_alignParentBottom="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</LinearLayout>
</RelativeLayout>
のようにタブのホストXML
の下タブ付きアクティビティのレイアウトに貼り付けられます私の簡単な例を教えてください
メインアクティビティにフッターを追加し、タブ変更時にデータを変更することで2つの方法で行うことができます。次に、各フラグメントにフッターを追加します。 – Nithinlal
コードを投稿できますか? –
私はアンドロイドに新しいです、あなたはどのように主な活動によって達成するために表示することができますか?任意の例またはreffリンク? – Narendhran