============ Problem Description ============
Problem Description:
Screen display
But when the input method pops up, the footer is followed up.
Problem point:
1 How to not display the footer when the input method is called,
2 What properties do I need to set in the layout?
Thank you
Here is a summary of my code:
<?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:id= "@+id/linearfittmain" android:layout_width= "Fill_ Parent " android:layout_height=" Fill_parent " android:background=" @drawable/FITTMAINBG " android:orientation=" vertical " tools: Context= ". Mainactivity " > <ScrollView Android:layout_width= "Fill_parent" android:layout_height= "0DP" android:layout_weight= "1" android:fadingedge= "Vertical" > < Linearlayout &nbsP; android:id= "@+id/content" android:layout_width= "Fill_parent" android:layout_height= "Wrap_content" android:gravity= "Center" android:orientation= "Horizontal" > <TextView android:id= "@+id/content" android:layout_width= "Wrap_content" android:layout_height= "Wrap_content" android:text= "Please enter" /> <EditText android:id= "@+id/content" android:layout_width= "100DP" android:layout_height= " Wrap_content " /> </LinearLayout> </ScrollView> <!-- This is footer --> . <linearlayout android:layout_width= "Fill_parent" android:layout_height= "Wrap_content" android:gravity= "Bottom" android:orientation= "vertical" > <include layout= "@layout/commomfoot" /> </LinearLayout></LinearLayout>
Main layout of the footer file
<?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=" @drawable/commombottom " android:orientation= "Horizontal" > <LinearLayout android:layout_width= "Wrap_content" android:layout_height= "Wrap_content" android:layout_gravity= " Center " android:layout_weight=" 1 " android:gravity= "Center" android:orientation= "Horizontal" > <imageview Android:id= "@+id/imvhome" android: Layout_width= "Wrap_content" android: layout_height= "Wrap_content" android: background= "@drawable/index" /> </LinearLayout> <linearlayout android:layout_width= "Wrap_content" android:layout_height= "Wrap_content" android:layout_gravity= "Center" android: layout_weight= "1" android:gravity= "center" android: orientation= "Horizontal" > <ImageView android:id= "@+id/imvperson" android:layout_width= "Wrap_content" android:layout_height= "Wrap_content" android:background= "@drawable/person" android:gravity= "Center" /> </LinearLayout> <LinearLayout android:layout_width= "Wrap_content" android:layout_height = "Wrap_content" android:layout_gravity= "center" android:layout_weight= "1" android:gravity= "center" android:orientation= "Horizontal" > <ImageView Android:id= "@+id/imvmore" android: Layout_width= "Wrap_content" android: layout_height= "Wrap_content" android: background= "@drawable/mainback" android : gravity= "Center" /> </LinearLayout></LinearLayout>
============ Solution 1============
Add Android:windowsoftinputmode= "Statevisible|adjustresize" under the corresponding activity in manifest.
Android_ page moves up with input method