I have an edited text box in the android interface. When the text box gets the focus, a simulated keyboard is displayed, and the text box is covered !!! The text box editing is not convenient, and the editing effect is not visible. Is there any way to prevent the simulated keyboard from covering the text editing box? Go to the Internet and ask you about the solution and find some information as follows, scrollview
XML file:
<? XML version = "1.0" encoding = "UTF-8"?>
<Linearlayout xmlns: Android = "http://schemas.android.com/apk/res/android"
Android: Background = "@ drawable/mainbg"
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: Orientation = "vertical"
Android: paddingtop = "100dip"
Android: paddingleft = "20dip">
<Scrollview id = "@ + ID/scrollview"
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: scrollbars = "vertical">
<Linearlayout
Id = "@ + ID/layout0"
Android: Orientation = "vertical"
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content">
<Linearlayout
Android: Id = "@ + ID/layout"
Android: Orientation = "horizontal"
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content">
<Textview
Android: Id = "@ + ID/Title"
Android: layout_width = "135px"
Android: layout_height = "27px"
Android: text = "Sending text message content"
>
</Textview>
</Linearlayout>
<Linearlayout
Android: Id = "@ + ID/layout1"
Android: Orientation = "horizontal"
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content">
<Edittext
Android: Id = "@ + ID/phonnum"
Android: layout_width = "pixel PX"
Android: layout_height = "43px"
Android: layout_x = "22px"
Android: layout_y = "128px"
Android: phonenumber = "true"
>
</Edittext>
<Textview
Android: Id = "@ + ID/widget27"
Android: layout_width = "13px"
Android: layout_height = "27px"
Android: layout_x = "100px"
Android: layout_y = "92px"
>
</Textview>
<Button
Android: Id = "@ + ID/btnlist"
Android: layout_width = "69px"
Android: layout_height = "29px"
Android: Background = "@ drawable/Liman"
Android: layout_x = "272px"
Android: layout_y = "132px"
Android: paddingright = "5dip"
>
</Button>
</Linearlayout>
<Linearlayout
Id = "@ + ID/layout2"
Android: Orientation = "vertical"
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: paddingbottom = "3px"
Android: paddingright = "10px">
<Edittext
Android: Id = "@ + ID/editorcontent"
Android: layout_width = "280px"
Android: layout_height = "250px"
Android: layout_x = "20px"
Android: paddingbottom = "3px"
Android: paddingright = "10px">
</Edittext>
</Linearlayout>
<Linearlayout
Id = "@ + ID/layout3"
Android: Orientation = "horizontal"
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content">
<Button
Android: Id = "@ + ID/btnsend"
Android: Background = "@ drawable/Send"
Android: layout_width = "69px"
Android: layout_height = "29px"
Android: layout_x = "150px"
Android: layout_y = "408px"
>
</Button>
<Textview
Android: Id = "@ + ID/widget27"
Android: layout_width = "135px"
Android: layout_height = "27px"
Android: layout_x = "100px"
Android: layout_y = "92px"
>
</Textview>
<Button
Android: Id = "@ + ID/btnback"
Android: layout_width = "69px"
Android: layout_height = "29px"
Android: layout_x = "270px"
Android: layout_y = "408px"
Android: Background = "@ drawable/backtrack"
>
</Button>
</Linearlayout>
</Linearlayout>
</Scrollview>
</Linearlayout>