Android EditText and VirtualKeyboard
i have an EditText ,it is located at the bottom of the screen ,when user touch on the edittext virtual keyboard is visible and hide the EditText, found on Motorolla , all other device it's working fine
<EditText android:textSize="14sp"
android:id="@+id/Edittext_Report" android:textColor="#000000"
android:layout_width="270dp" android:layout_height="150dip"
android:maxLength="1000" android:layout_alignPar开发者_如何学CentBottom="true"
android:layout_alignParentRight="true" android:imeOptions="actionNext"
android:inputType="textCapSentences|textMultiLine" />
Use android:windowSoftInputMode="adjustResize" to your tag in the AndroidManifest.xml file.
For Instance:
< activity
android:windowSoftInputMode="stateVisible|adjustResize|stateVisible"
. . . >
精彩评论