i have problem , i'm making forum , when insert post if give edittext write virutal keyboard , can not see write.
anyone has idea how raise edittext not hidden virtual keyboard
this xml:
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/linearlayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" tools:context="com.example.aulasg.foros" > <listview android:id="@+id/lvforotemas" android:layout_width="match_parent" android:layout_height="392dp" > </listview> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" > <edittext android:id="@+id/comentariomensaje" android:layout_width="281dp" android:layout_height="wrap_content" android:layout_weight="0.49" android:ems="10" /> <button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0.49" android:onclick="insertarcomentario" android:text="button" /> </linearlayout> </linearlayout>
add follow code activity in androidmanifest.xml android:windowsoftinputmode="adjustpan"
Comments
Post a Comment