2016-09-24 4 views
0

У меня есть ScrollView в качестве родительского макета, он в первый раз загружается правильно, и если я перехожу на другой экран и возвращаюсь, он будет g ниже мягкая панель меню в нижней части экрана.Scrollview идет ниже мягкого меню (назад, домой) внизу в андроиде

Обязательно: 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

show manifest file –

ответ

0

Попробуйте добавить fillViewPort="true" к ScrollView.