I have an activity that allows me to enter content. It consists of edit text and button bar. Whenever I what to input something to the edit text, a keyboard pops up and the button bar is on top if it so I can't see what I'm typing if the content is long(it goes behind the button bar). How can i fix it ?
my code is:
<RelativeLayout
android:id="#+id/toplayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="#drawable/notetop"
android:paddingBottom="5dp"
android:paddingLeft="5dp"
android:paddingTop="5dp" >
<TextView
android:id="#+id/title_text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/title"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="18sp" />
<EditText
android:id="#+id/etTitleJoke"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_toRightOf="#+id/title_text1"
android:background="#android:color/transparent"
android:hint="#string/no_title"
android:imeOptions="actionNext"
android:singleLine="true"
android:textColor="#000000"
android:textSize="18sp" >
</EditText>
</RelativeLayout>
<view
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/etContentJoke"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="#+id/toplayout"
class="ie.myjokes.LineEditText"
android:background="#android:color/transparent"
android:capitalize="sentences"
android:scrollHorizontally="true"
android:fadingEdge="vertical"
android:gravity="top"
android:padding="5dp"
android:scrollbars="vertical"
android:textColor="#000000"
android:textSize="22sp" >
<requestFocus />
</view>
<LinearLayout
android:id="#+id/footer"
style="#android:style/ButtonBar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal" >
<Button
android:id="#+id/btnSave"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="onClickSave"
android:text="#string/btn_save"
android:textColor="#000000" />
<Button
android:id="#+id/btnCancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="onClickCancel"
android:text="#string/btn_cancel"
android:textColor="#000000" />
</LinearLayout>
nevermind, I added this line into my activity and its gone now. Thank you
android:windowSoftInputMode="adjustPan"
Related
I have a problem with Scrollview on Android. The problem is showing all content in a register form.
XML Layout
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#drawable/app_background"
tools:context=".RegisterActivity"
xmlns:tools="http://schemas.android.com/tools">
<ScrollView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:paddingLeft="10dp"
android:paddingRight="10dp"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="#string/register_header"
android:textSize="30sp"
android:textColor="#000000"
android:textStyle="bold"
android:layout_marginBottom="30dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/register_loginField"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="18sp"
android:layout_marginBottom="8dp"
/>
<EditText
android:id="#+id/register_input_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:textColor="#000000"
android:hint="#string/hint_login"
android:layout_marginBottom="20dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/register_password"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="18sp"
android:layout_marginBottom="20dp"
/>
<EditText
android:id="#+id/register_input_passw"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:textColor="#000000"
android:hint="#string/hint_passw"
android:layout_marginBottom="20dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/register_repeatpass"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="18sp"
android:layout_marginBottom="20dp"
/>
<EditText
android:id="#+id/register_input_passwre"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:textColor="#000000"
android:hint="#string/hint_passw"
android:layout_marginBottom="20dp"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/register_gender"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="18sp"
android:layout_marginBottom="20dp"
/>
<RadioGroup
android:id="#+id/register_radiog"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<RadioButton
android:id="#+id/register_radioM"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/register_gMale"
android:textSize="16sp"
/>
<RadioButton
android:id="#+id/register_radioF"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/register_gFemale"
android:textSize="16sp"
android:layout_marginBottom="20dp"
/>
</RadioGroup>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/register_name"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="18sp"
/>
<EditText
android:id="#+id/register_input_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:textColor="#000000"
android:hint="#string/hint_name"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/register_age"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="18sp"
/>
<EditText
android:id="#+id/register_input_date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:textColor="#000000"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="horizontal" >
<CheckBox
android:id="#+id/register_input_termsofuse"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="8dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/register_termsofuse"
android:textSize="16sp"
android:textColor="#000000"
android:textStyle="bold"/>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="#+id/register_btSignup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="#fc9a24"
android:paddingLeft="30dp"
android:paddingRight="30dp"
android:text="#string/register_btSignup"
android:textStyle="bold"
android:textSize="16sp"
android:textColor="#FFFFFF"
/>
</RelativeLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
But when I execute in my Android device I can't see the register_header textview.
Also when I click on one EditText, my device show keyboard, and all view is pushed up, hidding more items (email textview and edittext).
How can I solve this?
In this first image, as you can see header isn't showing. This is bad...
In this second image, I can scroll and see register button, this is good.
And in this third image, when keyboard appears and I go to top of the scrollview I can't see the register_header, the email input and email textview
How can I, fix layout position (not push up when keyboard appears) and show all content inside Scrollview.
Thx
Add this to your activity in your manifest
<activity android:windowSoftInputMode="adjustPan"> </activity>
The activity's main window is not resized to make room for the soft
keyboard. Rather, the contents of the window are automatically panned
so that the current focus is never obscured by the keyboard and users
can always see what they are typing. This is generally less desirable
than resizing, because the user may need to close the soft keyboard to
get at and interact with obscured parts of the window.
Yet another same problem for android which drive developers crazy!
I want to make buttons above keyboard...
Here is my xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#android:id/home"
android:layout_width="910dp"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true"
android:keepScreenOn="true"
android:orientation="vertical"
android:padding="15dip" >
<com.custom.webview
android:id="#+id/webView1"
android:layout_width="900dp"
android:layout_height="350dp"
android:visibility="gone" >
</com.custom.webview>
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-light"
android:paddingBottom="5dip"
android:paddingTop="20dip"
android:text="#string/choose_the_outcome"
android:textAllCaps="true"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="25sp" />
<Spinner
android:id="#+id/spinner1"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
android:entries="#array/call_outcomes" />
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-serif-light"
android:paddingBottom="5dip"
android:paddingTop="20dip"
android:text="#string/notes"
android:textAllCaps="true"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="25sp" />
<EditText
android:id="#+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:fontFamily="sans-serif-light"
android:inputType="textMultiLine" >
</EditText>
<LinearLayout
style="?android:attr/buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="25dip" >
<Button
android:id="#+id/button1"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:onClick="onCancel"
android:text="#android:string/cancel" />
<Button
android:id="#+id/button2"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:onClick="onSave"
android:text="#string/save" />
</LinearLayout>
</LinearLayout>
just move all your layoouts as they are in the RelativeLayout. It might fix an issue.
Add this line
android:windowSoftInputMode="adjustResize|stateHidden"
to AndroidManifest.xml <activity> tag
You need to to do the following:
Just Make the text view child of a spinner
or put text view height = wrap_content.
I want when user type then instead of arrow key it should show the next button in keyboard.
So user not need to press the back to input next edittext.
Added the Layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="#D5D5D5"
android:orientation="vertical" >
<FrameLayout
android:id="#+id/topLinearLayout"
android:layout_width="fill_parent"
android:layout_height="45dip"
android:background="#drawable/bar" >
<ImageView
android:id="#+id/new_quote_imageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="#drawable/new_quote_bar" />
<TextView
android:id="#+id/contactUs"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center"
android:text="#string/contact_us"
android:textColor="#android:color/white"
android:textSize="15sp" />
</FrameLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:orientation="vertical" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="10dip" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight=".7"
android:background="#EEEBE6"
android:orientation="vertical"
android:padding="15dip" >
<TextView
android:id="#+id/nameTextView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5dip"
android:text="#string/name"
android:textColor="#android:color/black"
android:textSize="16sp" />
<EditText
android:id="#+id/nameEditText"
android:layout_width="fill_parent"
android:layout_height="40dip"
android:layout_marginTop="10dip" />
<TextView
android:id="#+id/emailTextView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5dip"
android:text="#string/email"
android:textColor="#android:color/black"
android:textSize="16sp" />
<EditText
android:id="#+id/emailEditText"
android:layout_width="fill_parent"
android:layout_height="40dip"
android:layout_marginTop="10dip"
android:inputType="textEmailAddress" />
<TextView
android:id="#+id/commentsTextView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5dip"
android:text="#string/comments"
android:textColor="#android:color/black"
android:textSize="16sp" />
<EditText
android:id="#+id/commentsEditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:lines="5" />
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_marginTop="5dip"
android:background="#android:color/darker_gray" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_marginBottom="10dip"
android:layout_marginTop="10dip"
android:gravity="right|center_vertical"
android:weightSum="1" >
<Button
android:id="#+id/submitButton"
android:layout_width="0dip"
android:layout_height="35dip"
android:layout_weight=".3"
android:background="#drawable/button_background"
android:text="#string/submit"
android:textColor="#android:color/white"
android:textSize="16sp" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>
Please help me for this.
Thanks in advance.
add this line to your edittext xml
android:singleLine="true"
If you don't want multiple line simple add
android:singleLine="true"
else please use this given solution
<EditText
android:id="#+id/commentsEditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:imeOptions="actionNext"
android:lines="5" />
I have added
android:imeOptions="actionNext"
this line extra, use this in every EditText that you want have next button in soft key Board
Define inputType for each edit text.
<EditText
android:id="#+id/editText"
android:inputType="textPersonName" />
Try adding this to the edit text:
android:singleLine="true"
android:singleLine="true" //deprecated
use android:maxLines="1" & imeOptions
android:maxLines="1"
android:imeOptions="actionNext"
Simply use
android:inputType="textNoSuggestions"
android:maxLines="1"
and remove if you have used digits.
android:digits
Add below line in your edittext
android:imeOptions="flagNavigateNext"
Example given below:
<EditText
android:id="#+id/commentsEditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:lines="5"
android:imeOptions="flagNavigateNext"/>
Try adding this
android:imeOptions="flagNavigateNext"
android:inputType="text"
I am working in android. I am designing a login page.
This is my xml:-
<LinearLayout
android:layout_marginLeft="10dip"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_marginRight="10dip"
android:id="#+id/loginlayout"
android:orientation="vertical"
android:gravity="center_vertical|center_horizontal"
android:soundEffectsEnabled="false">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="#drawable/rounded_corners_white"
android:padding="20dp"
android:orientation="vertical">
<TextView
android:id="#+id/Text_UID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="User Id"
android:textColor="#000000"
android:textSize="8pt" />
</TextView>
<EditText
android:layout_height="wrap_content"
android:id="#+id/EditText_UID"
android:layout_width="200dp"
android:background="#drawable/text_box">
</EditText>
<TextView
android:id="#+id/Text_UID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000000"
android:text="Password"
android:textSize="8pt">
</TextView>
<EditText
android:text=""
android:id="#+id/EditText_Pass"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:background="#drawable/text_box">
</EditText>
<RelativeLayout
android:layout_height="35px"
android:layout_width="fill_parent"
android:layout_marginTop="10dp">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Login"
android:id="#+id/Button_Submit"
android:textColor="#FFFFFF"
android:clickable="true"
android:layout_toRightOf="#id/Button_Register"
android:background="#drawable/button_register_right"
android:layout_alignParentTop="true"
android:textSize="5pt">
</Button>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
whenever i enter user name then it is visible to user, but when i enter password then the entered text is not visible till the android device keyboard is active. When i press back button to remove android device keyboard then it is visible means password dot visible to user.
but when i run this project on system then both userid and password both are visible. please suggest me what should i do for this. is this matter of device dependent ?
Use this attribute in your Password EditText :
android:inputType="textPassword"
Try this layout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_marginLeft="10dip"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_marginRight="10dip"
android:id="#+id/loginlayout"
android:orientation="vertical"
android:gravity="center_vertical|center_horizontal"
android:soundEffectsEnabled="false">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="#drawable/rounded_corners_white"
android:padding="20dp"
android:orientation="vertical">
<TextView
android:id="#+id/Text_UID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="User Id"
android:textColor="#000000"
android:textSize="8pt" />
<EditText
android:layout_height="wrap_content"
android:id="#+id/EditText_UID"
android:layout_width="200dp"
android:background="#drawable/text_box"/>
<TextView
android:id="#+id/Text_UID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000000"
android:text="Password"
android:textSize="8pt"/>
<EditText
android:text=""
android:id="#+id/EditText_Pass"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:background="#drawable/text_box"
android:inputType="textPassword"/>
<RelativeLayout
android:layout_height="35px"
android:layout_width="fill_parent"
android:layout_marginTop="10dp">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Login"
android:id="#+id/Button_Submit"
android:textColor="#FFFFFF"
android:clickable="true"
android:layout_toRightOf="#id/Button_Register"
android:background="#drawable/button_register_right"
android:layout_alignParentTop="true"
android:textSize="5pt">
</Button>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
you forget to set the input into the password field
Have you tried removing the weight attribute from your outermost LinearLayout, and have you tried wrapping the whole thing in a ScrollView?
I have a edit text in the bottom of my activity and when user click on the edit box it pushes the buttons and lables above it to futher top. How can I avoid this? when user clicks and types on the edit text it should not push the layout up.
<EditText android:gravity="top|left" android:hint="#string/description"
android:id="#+id/editText1des" android:layout_below="#+id/buildbtn" android:layout_alignLeft="#+id/buildbtn"
android:layout_alignRight="#+id/buildbtn" android:layout_marginTop="30dp" android:layout_height="fill_parent" android:layout_width="fill_parent"
android:inputType="textFilter|textMultiLine|textNoSuggestions" android:scrollHorizontally="true"></EditText>
Can someone please help me thanks.
full layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical" android:id="#+id/homepgeaudiobtn"
android:background="#E6E7E2">
<RelativeLayout android:weightSum="1.0"
android:layout_width="fill_parent" android:layout_alignParentBottom="true"
android:background="#cf1616" android:layout_height="50dp">
<Button android:layout_alignParentRight="true"
android:background="#drawable/butonn" android:layout_height="30dp"
android:layout_width="90dp" android:textColor="#FFF" android:text="#string/btnSubmitString" android:id="#+id/sendincidentbtn" android:layout_margin="10dp"/>
<TextView android:id="#+id/textView1"
android:layout_height="wrap_content" android:layout_width="wrap_content"
android:text="RDMS" android:textColor="#FFF" android:textStyle="bold" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_alignParentBottom="true" android:textSize="35dp"></TextView>
<Button android:textColor="#FFF" android:layout_height="30dp" android:layout_width="90dp" android:layout_alignParentLeft="true" android:id="#+id/backid" android:background="#drawable/back_button" android:text="#string/gobackString" android:layout_margin="10dp"></Button>
</RelativeLayout>
<LinearLayout android:weightSum="1.0"
android:layout_width="fill_parent" android:layout_marginBottom="20dp"
android:background="#FFF" android:layout_height="65dp">
<Button android:id="#+id/allimagebtn" android:layout_weight=".30"
android:textColor="#FFF"
android:background="#drawable/cam_red" android:text="Images" android:paddingLeft="10dp" android:layout_marginTop="2dp" android:paddingTop="2dp" android:layout_width="100dp" android:layout_margin="2dp" android:layout_height="fill_parent" android:gravity="bottom"/>
<Button android:id="#+id/button2video" android:layout_weight=".30"
android:background="#drawable/vid_red" android:textColor="#FFF" android:text="Video Files" android:gravity="bottom" android:textSize="12dp" android:paddingLeft="10dp" android:paddingTop="2dp" android:layout_width="100dp" android:layout_marginTop="2dp" android:layout_height="fill_parent" android:layout_marginBottom="2dp"/>
<Button android:id="#+id/button3audio" android:layout_weight=".30"
android:textColor="#FFF"
android:background="#drawable/aud_red" android:text="Audio Files" android:gravity="bottom" android:textSize="12dp" android:paddingLeft="10dp" android:paddingTop="2dp" android:layout_marginTop="2dp" android:layout_width="100dp" android:layout_margin="2dp" android:layout_height="fill_parent"/>
</LinearLayout>
<LinearLayout android:layout_height="0px"
android:layout_width="0px" android:id="#+id/linearLayout2993"
android:focusable="true" android:focusableInTouchMode="true"></LinearLayout>
<TextView android:id="#+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#000" android:textSize="20dp" android:textStyle="bold" android:text="Ipsum Lorem" android:paddingLeft="20dp"></TextView>
<RelativeLayout android:layout_width="fill_parent"
android:id="#+id/relativeLayout4" android:layout_height="fill_parent">
<TextView android:layout_height="0dp" android:text="TextView"
android:id="#+id/allincidentimagecount" android:layout_width="0dp"
android:layout_below="#+id/allimagebtn" android:layout_alignLeft="#+id/allimagebtn"
android:layout_alignRight="#+id/allimagebtn"></TextView>
<Button android:layout_below="#+id/allincidentimagecount"
android:layout_alignLeft="#+id/allincidentimagecount"
android:layout_width="fill_parent" android:text="#string/type"
android:id="#+id/typebtn" android:layout_marginTop="5sp" android:background="#drawable/tab_top" android:layout_height="40dp" android:gravity="left|fill_vertical" android:paddingLeft="10dp" android:textSize="20dp"></Button>
<Button android:text="#string/location"
android:layout_width="wrap_content" android:layout_below="#+id/typebtn"
android:layout_alignLeft="#+id/typebtn" android:layout_alignRight="#+id/typebtn"
android:id="#+id/locbtn" android:background="#drawable/tab_middle" android:layout_height="32dp" android:paddingLeft="10dp" android:gravity="left|fill_vertical" android:textSize="20dp"></Button>
<Button android:text="#string/building"
android:layout_width="wrap_content" android:layout_below="#+id/locbtn"
android:layout_alignLeft="#+id/locbtn" android:layout_alignRight="#+id/locbtn"
android:id="#+id/buildbtn" android:background="#drawable/tab_bottom" android:layout_height="43dp" android:paddingLeft="10dp" android:gravity="left|fill_vertical" android:textSize="20dp"></Button>
<EditText android:gravity="top|left" android:hint="#string/description"
android:id="#+id/editText1des" android:layout_below="#+id/buildbtn" android:layout_alignLeft="#+id/buildbtn"
android:layout_alignRight="#+id/buildbtn" android:layout_marginTop="30dp" android:inputType="textFilter|textMultiLine|textNoSuggestions" android:scrollHorizontally="true" android:layout_height="wrap_content" android:layout_width="wrap_content"></EditText>
<TextView android:layout_height="0dp" android:text="TextView"
android:layout_width="0dp" android:layout_below="#+id/button2video"
android:layout_alignLeft="#+id/button2video"
android:layout_alignRight="#+id/button2video" android:id="#+id/videovounttxt99"></TextView>
<TextView android:id="#+id/audiocounttxtx"
android:layout_height="0dp" android:text="TextView"
android:layout_width="0dp" android:layout_below="#+id/button3audio"
android:layout_alignLeft="#+id/button3audio"
android:layout_alignRight="#+id/button3audio"></TextView>
</RelativeLayout>
<RelativeLayout android:id="#+id/layout02"
android:paddingTop="30dp" android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:layout_width="fill_parent"
android:background="#000" android:gravity="center"></TextView>
</RelativeLayout>
</LinearLayout>
I notice that you have used the same button id for the three attributes namely
android:layout_below="#+id/buildbtn" android:layout_alignLeft="#+id/buildbtn"
android:layout_alignRight="#+id/buildbtn"
wherein lies your problem.
It's because the EditView so far down the screen, that the keyboard will hide it, and you won't be able to see what you are writing? Are you sure you want to hide the EditText field from the user?
Are you using a scrollview?