android - Is there any way to fix the header to not scroll with the enter of the softkeyboard in a activity? -
i have activity header on top , edittext below. when texting , press enter on keyboard, screen scroll down , hide header. there way fix header or, when press enter on keyboard, not scroll down screen?
<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=".comentariosactivity" > <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="10" android:background="@drawable/background_40_blue" android:orientation="vertical" > <relativelayout android:layout_width="match_parent" android:layout_height="44dp" android:background="@drawable/navigation_bar" android:orientation="vertical" > <imageview android:id="@+id/ivbuttonokcomentarios" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentright="true" android:layout_alignparenttop="true" android:layout_marginbottom="1dp" android:layout_margintop="2dp" android:src="@drawable/mini_button_ok" /> </relativelayout> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginbottom="10dp" android:layout_marginleft="20dp" android:layout_marginright="20dp" > <textview android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margintop="2dp" android:text="4" android:textcolor="#ffcc66" android:textsize="48sp" /> <textview android:id="@+id/tvredeconfirmar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginleft="10dp" android:layout_margintop="2dp" android:text="faça um comentário sobre sua avaliação" android:textcolor="@android:color/white" android:textsize="18sp" /> </linearlayout> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="7" android:orientation="vertical" > <imageview android:id="@+id/imageview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginleft="20dp" android:layout_marginright="20dp" android:src="@drawable/borda_tabela" /> <edittext android:id="@+id/etcomentarios" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginleft="20dp" android:layout_marginright="20dp" android:ems="10" android:gravity="center_vertical|top" android:maxlength="500" > <requestfocus /> </edittext> </linearlayout> <relativelayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="3" android:gravity="bottom" > </relativelayout> </linearlayout> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="2" android:orientation="vertical" > <imageview android:id="@+id/ivrodapecomentarios" android:layout_width="match_parent" android:layout_height="56dp" android:background="#00000000" android:scaletype="fitxy" android:src="@drawable/rodape_tappa" /> </linearlayout>
Comments
Post a Comment