Writing text all time hidden when write something on EditText in Android? -
my images. such
when write show image
but want write , show also.
my codes :
<?xml version="1.0" encoding="utf-8"?> <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:background="#ffffff" > <!-- header aligned top --> <relativelayout android:layout_width="wrap_content" android:layout_height="wrap_content" > <include android:id="@+id/header" layout="@layout/header" > </include> <!-- footer aligned bottom --> <!-- content below header , above footer --> <relativelayout android:layout_width="wrap_content" android:layout_height="wrap_content" > <relativelayout android:id="@+id/content" android:layout_width="fill_parent" android:layout_height="fill_parent" > <linearlayout android:id="@+id/locationlayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margintop="5dp" android:gravity="center" android:orientation="vertical" > <textview android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="ubicaciĆ³n" android:textappearance="?android:attr/textappearancemedium" /> <spinner android:id="@+id/locationspinner" android:layout_width="match_parent" android:layout_height="wrap_content" /> </linearlayout> <linearlayout android:id="@+id/deprtmentlayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/locationlayout" android:layout_margintop="10dp" android:gravity="center" android:orientation="vertical" > <textview android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="departamento" android:textappearance="?android:attr/textappearancemedium" /> <spinner android:id="@+id/departmentspinner" android:layout_width="match_parent" android:layout_height="wrap_content" /> </linearlayout> <linearlayout android:id="@+id/folderpathlayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/deprtmentlayout" android:layout_margintop="10dp" android:gravity="center" android:orientation="vertical" > <textview android:id="@+id/textview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="carpeta" android:textappearance="?android:attr/textappearancemedium" /> <spinner android:id="@+id/folderspinner" android:layout_width="match_parent" android:layout_height="wrap_content" /> </linearlayout> <linearlayout android:id="@+id/locatiornlayoutt" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/folderpathlayout" android:layout_marginbottom="5dp" android:layout_margintop="5dp" android:gravity="center|end" android:orientation="vertical" > <textview android:id="@+id/textview1" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="left" android:paddingleft="5dp" android:text="comentario" android:textappearance="?android:attr/textappearancemedium" /> <edittext android:id="@+id/etcomments" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="top|left" android:hint="escribir comentario aquĆ" android:inputtype="textmultiline" android:lines="8" android:maxlines="10" android:minlines="4" android:scrollbars="vertical" > <requestfocus /> </edittext> </linearlayout> </relativelayout> </relativelayout> <relativelayout android:id="@+id/footer" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:background="#0c95d4" > <linearlayout android:layout_width="match_parent" android:layout_height="50dp" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:gravity="center" > <imageview android:id="@+id/backimageview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:background="@drawable/img_selector" android:clickable="true" android:onclick="doactions" android:src="@drawable/back_black" /> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" /> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" /> <imageview android:id="@+id/reportok" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:background="@drawable/img_selector" android:clickable="true" android:onclick="doactions" android:src="@drawable/right_button_white" /> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" /> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" /> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_weight="1" android:background="@drawable/img_selector" android:clickable="true" android:onclick="doactions" /> </linearlayout> </relativelayout> </relativelayout> </linearlayout>
and header.xml
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="50dp" android:layout_alignparenttop="true" android:gravity="center" android:orientation="vertical" > <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centervertical="true" android:gravity="center" android:orientation="horizontal" android:weightsum="5" > <relativelayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" > <textview android:id="@+id/tvheader" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centervertical="true" android:layout_toleftof="@+id/layout" android:layout_weight="4" android:paddingleft="8dp" android:text="fixed header" android:textcolor="#33b5e5" android:textsize="12sp" /> <relativelayout android:id="@+id/layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentright="true" > <imageview android:id="@+id/ihome" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginright="10dp" android:background="@drawable/img_selector" android:clickable="true" android:onclick="gotohome" android:src="@drawable/home_black" /> <imageview android:id="@+id/ilogout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginleft="5dp" android:layout_torightof="@+id/ihome" android:background="@drawable/img_selector" android:clickable="true" android:onclick="logoutaction" android:paddingright="8dp" android:src="@drawable/logout_black" /> </relativelayout> </relativelayout> </linearlayout> <linearlayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" > <view android:layout_width="match_parent" android:layout_height="3dip" android:background="#33b5e5" /> </linearlayout> </relativelayout>
when write on comment field show pop-up windows writing input don't show text write on edittext. how show input field when write thing. please me.
set appropriate windowsoftinputmode
activity
in manifest. adjustpan
you're looking there.
Comments
Post a Comment