0

現在、私はCoordinatorLayout - > Viewpager - > Framelayout(フラグメントに含まれています)のビュー階層でアプリケーションを開発中です。 CoordinatorLayoutは、フラグメント内をスクロールするときにアクションバーがスクロールすることを保証します。Scrollingの静的ビューCoordinatorLayoutのViewpager

私が直面している問題は、スクロールしないフラグメントの一番下に、常にフラグメントの一番下にとどまるビューがありたいということです。ビューはフラグメントの1つにのみ存在する必要があります。つまり、Viewpagerの外側に配置すると機能しません。

フラグメント(Framelayout)に静的ビューを作成することはできますか?

答えて

0

これはあなたの探しているものであれば、それはあなたが探しているものであるかどうかを(コードで)説明しているかどうか100%確信していません。 プロジェクトに幸運

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical" android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:weightSum="1" 
android:id="@+id/coordinatorLayout" 
android:fitsSystemWindows="true"> 

//Part that will be static 

<ScrollView 
    android:layout_width="match_parent" 
    android:layout_height="fill_parent" 
    android:layout_below="@+id/imageView2"> 

    <LinearLayout 
     android:orientation="vertical" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent"> 

    //part in the scrollfiew 

    </LinearLayout> 
</ScrollView> 
</RelativeLayout> 
関連する問題