RT, 小弟现在不知道是哪里出了问题,我上网查到了资料说置只要设几个属性即可. 但是我一一试过.还是没有效果.
   点击EditText,系统出现软键盘之后依然会把下面的按钮给挡住. 求解决办法.  
   是布局问题么? 还是android版本问题??? 能给小弟一个简单案例么???  
   谢谢! 谢谢!!! T T

解决方案 »

  1.   

    发下你的XML代码,看看就知道了!
      

  2.   


    <RelativeLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/register_relativelayout01"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:background="@drawable/default_bg"
    >

    <RelativeLayout
    android:id="@+id/register_relativelayout02"
    android:background="@drawable/login_relative_bg"
    android:layout_width="fill_parent"
    android:layout_height="30px"
    android:layout_alignBottom="@+id/register_relativelayout01"
    >
      
       <TextView
    android:text="@string/register_title"
    android:layout_width="wrap_content"
    android:layout_height="fill_parent"
    android:gravity="center_vertical"
    android:textSize="15px"
    android:textColor="#FFFFFF"
    android:layout_alignParentLeft="true"
       ></TextView>
      
       <TextView
       android:text="@string/register_back"
       android:id="@+id/register_back"
       android:layout_width="wrap_content"
    android:layout_height="fill_parent"
    android:gravity="center_vertical"
    android:textSize="16px"
    android:textColor="#FFFFFF"
    android:layout_alignParentRight="true"
       ></TextView>
      
     </RelativeLayout>


    <LinearLayout
    android:id="@+id/register_linearlayout01"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="70px"
    android:layout_marginLeft="15px"
    >


    <TextView 
    android:layout_width="wrap_content"
        android:layout_height="wrap_content"
    android:text="@string/register_username_text"
    android:textSize="16px"
    android:textColor="#ff3f3f3f"
    android:gravity="center_vertical"

    />

    <EditText
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginRight="5px"
    android:id="@+id/register_username"
    android:hint="@string/register_username"
    android:maxLines="8"
    />

    <TextView 
    android:layout_width="wrap_content"
        android:layout_height="wrap_content"
    android:text="@string/register_password_text"
    android:textSize="16px"
    android:textColor="#ff3f3f3f"
    android:gravity="center_vertical"

    />

    <EditText
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginRight="5px"
    android:id="@+id/register_password"
    android:hint="@string/register_password"
    android:inputType="textPassword"
    />

    <TextView 
    android:layout_width="wrap_content"
        android:layout_height="wrap_content"
    android:text="@string/register_email_text"
    android:textSize="16px"
    android:textColor="#ff3f3f3f"
    android:gravity="center_vertical"

    />

    <EditText
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginRight="5px"
    android:id="@+id/register_email"
    android:hint="@string/register_email"
    android:inputType="textEmailAddress"
    />

    </LinearLayout>

     <Button 
       android:id="@+id/login"
       android:layout_width="100px"
       android:layout_height="50px"
       android:text="@string/register_button"
    android:layout_below="@+id/register_linearlayout01"
    android:layout_centerInParent="true"
       />
    </RelativeLayout>
      

  3.   

    你在外层加一个ScrollView实现下滚动就可以了啊,挡住下面的按钮也无所谓!
      

  4.   

    在xml最外层加个ScrollView就可以
      

  5.   

    在AndroidManifest.xml文件中的android:windowSoftInputMode属性使用 <activity android:windowSoftInputMode="adjustResize" …… ></activity>
      

  6.   

    我也遇到过此问题,加ScrollView这种方法不是很好用,如果有EditText,此EditText高度会自动缩小至初始状态