2016-09-24 29 views
0

下面我有一個ScrollView作爲父級佈局,第一次加載正確,如果我去其他屏幕回來,它會g下面的屏幕底部的軟菜單欄。Scrollview在軟件菜單(背部,家庭)底部在Android

要求: enter image description here

獲取: enter image description here

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:card_view="http://schemas.android.com/apk/res-auto" 
android:layout_width="match_parent" 
android:layout_height="wrap_content" 
android:background="@color/white" 
android:fitsSystemWindows="false"> 

<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:orientation="vertical" 
    android:paddingEnd="@dimen/home_screen_right_left_padding" 
    android:paddingStart="@dimen/home_screen_right_left_padding"> 

    //Layout body will come over here 

</LinearLayout> 
</<ScrollView> 

Manifest file : 

     <activity 
     android:name=".common.controller.DashboardActivity" 
     android:exported="false" 
     android:label="Home" 
     android:theme="@style/ToolBar" /> 
+0

在清單中,對於發生此問題的活動,聲明'fitsSystemWindow'爲true –

+0

顯示清單文件 –

回答

0

嘗試增加fillViewPort="true"ScrollView