Android 安卓系统中键盘打开时不显示全页大小
我在xml文件中有5个edittext和3个按钮 当我关注第一个编辑文本时,卷轴只显示了一半,但直到最后才显示出来 我试过了Android 安卓系统中键盘打开时不显示全页大小,android,android-keypad,Android,Android Keypad,我在xml文件中有5个edittext和3个按钮 当我关注第一个编辑文本时,卷轴只显示了一半,但直到最后才显示出来 我试过了 android:windowSoftInputMode="adjustPan" 和 android:windowSoftInputMode="stateAlwaysVisible" 但当我把这个状态设置为“始终可见”时,问题是我的页面中有选项卡,当我集中在一个文本中时,这些选项卡也会跳起来 有人能帮忙吗 <?xml version="1.0" encoding=
android:windowSoftInputMode="adjustPan"
和
android:windowSoftInputMode="stateAlwaysVisible"
但当我把这个状态设置为“始终可见”时,问题是我的页面中有选项卡,当我集中在一个文本中时,这些选项卡也会跳起来
有人能帮忙吗
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#517eb9" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:paddingBottom="10dp"
android:paddingTop="10dp"
android:text="@string/Detail_page"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@android:color/white"
android:textStyle="bold" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dip"
android:gravity="center" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/pro_infotwo"
android:textColor="#d51302"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="1" >
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.3"
android:text="@string/prodet_id"
android:textSize="18sp"
android:textStyle="bold" />
<EditText
android:id="@+id/ppid"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="20dip"
android:layout_marginTop="20dip"
android:layout_weight="0.5"
android:background="@drawable/edittext"
android:ems="10"
android:paddingLeft="5dip" >
<requestFocus />
</EditText>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="1" >
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.3"
android:text="@string/keywords"
android:textSize="18sp"
android:textStyle="bold" />
<EditText
android:id="@+id/pp_key"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:background="@drawable/edittext"
android:ems="10"
android:paddingLeft="5dip" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dip"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="1" >
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.3"
android:text="@string/prodet_cat1"
android:textSize="18sp"
android:textStyle="bold" />
<EditText
android:id="@+id/pp_cat"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:background="@drawable/edittext"
android:ems="10"
android:paddingLeft="5dip" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dip"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="1" >
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.3"
android:text="@string/prodet_cat2"
android:textSize="18sp"
android:textStyle="bold" />
<EditText
android:id="@+id/pp_cat2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:background="@drawable/edittext"
android:ems="10"
android:paddingLeft="5dip" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dip"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="1" >
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.3"
android:text="@string/vid_url"
android:textSize="18sp"
android:textStyle="bold" />
<EditText
android:id="@+id/pp_url"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:background="@drawable/edittext"
android:ems="10"
android:paddingLeft="5dip" />
</LinearLayout>
<Button
android:id="@+id/Proceed_two"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="20dip"
android:layout_marginBottom="20dip"
android:background="#d51302"
android:padding="10dip"
android:text="@string/proceed"
android:textColor="@android:color/white" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
提前感谢您可以添加布局XML吗?不要理解这个问题。我在我的手机上试过这个,它可以正常工作。如果可能的话,你能用截图来澄清具体的问题是什么吗?同时,你似乎在这里嵌套了太多的线性布局。你可能也应该解决这个问题。请参见此处->anoop当键盘在键盘上时,prb是我无法滚动到最后一个元素的布局问题anoop我将纠正它