Give EditText plus a scrollview, set the height to uniform, and set the properties for ScrollView
Android:fillviewport= "true".
Note: ScrollView only nest the EditView in it, you cannot put other components in it, and you cannot set the soft keyboard properties for the activity in the manifest file. If the pop-up soft keyboard obscures a partially moved view, you can set properties on the activity in the manifest file
Android : windowsoftinputmode= "Adjustresize"
Some unnecessary attributes should not be added arbitrarily, so as not to affect the performance of the function.
Code:
<ScrollView android:layout_width= "Fill_parent"Android:layout_height= "44DP"Android:fillviewport= "true"Android:scrollbars= "Vertical" > <EditText Android:id= "@+id/et_password"Android:layout_width= "Match_parent"Android:layout_height= "44DP"Android:background= "@drawable/edt_bg"Android:drawableleft= "@drawable/key"android:drawablepadding= "0DP"Android:hint= "Enter transaction password"android:editable= "true"Android:password= "true"android:cursorvisible= "true"Android:paddingleft= "5DP"Android:singleline= "true"/> </ScrollView>
Android view appears above the soft keyboard