android - adjustPan pushing my layout and hiding status bar -


using adjustpan in manifest pushes layout top , makes ui ridiculous.

this android manifest:

<activity         android:name=".addnote"         android:label="@string/title_activity_add_note"         android:windowsoftinputmode="statevisible|adjustpan"> 

this xml file:

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="com.dinosaur.cwfei.materialnotes.addnote">  <include     android:id="@+id/app_bar"     layout="@layout/app_bar_no_spinner" />      <android.support.v7.widget.cardview         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_margin="@dimen/cardview_margin">         <scrollview             android:id="@+id/scroll_view"             android:layout_width="fill_parent"             android:layout_height="match_parent"           >         <linearlayout             android:layout_width="match_parent"             android:layout_height="match_parent"             android:layout_margin="@dimen/activity_vertical_margin"             android:orientation="vertical">              <edittext                  android:id="@+id/edittexttitle"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:layout_marginbottom="@dimen/margin_16"                 android:background="@color/transparent"                 android:hint="@string/hint_title"                 android:textstyle="bold" />              <edittext                  android:id="@+id/edittextdescription"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:background="@color/transparent"                 android:hint="@string/hint_note" />              <view                 android:layout_width="match_parent"                 android:layout_height="1dp"                 android:layout_marginbottom="@dimen/margin_16"                 android:layout_margintop="100dp"                 android:background="@color/divider_color" />          </linearlayout>         </scrollview>     </android.support.v7.widget.cardview>  </linearlayout> 

solved using adjustresize instead of adjustpan, set fitssystemwindows="true" in case adjustresize not working.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -