0
<RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.myapp.MainActivity" >
<TextView
android:id="@+id/txtWelcome"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="151dp"
android:padding="5dp"
android:text="@string/Welcome"
android:textSize="30sp" />
<TextView
android:id="@+id/SignUp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/txtWelcome"
android:layout_centerHorizontal="true"
android:layout_marginTop="24dp"
android:text="@string/SignUp" />
<Button
android:id="@+id/btnContinue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/etUsername"
android:layout_alignParentBottom="true"
android:layout_marginBottom="14dp"
android:text="@string/Continue" />
<EditText
android:id="@+id/etUsername"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/btnContinue"
android:layout_alignParentLeft="true"
android:layout_marginBottom="19dp"
android:layout_marginLeft="20dp"
android:ems="10"
android:hint="Enter your email" >
<requestFocus />
</EditText>
</RelativeLayout>
當我單擊編輯文本以提供某些輸入時,鍵盤會打開並阻止按鈕,即當屏幕上顯示鍵盤時,我看不到EditText下方的按鈕。Android鍵盤阻止應用程序組件
我試着在網上搜索,但我發現了使用這些: 機器人:windowSoftInputMode =「adjustPan」或 機器人:windowSoftInputMode =「adjustResize」,但沒有提供服務的目的。
我自己學習Android,所以任何幫助將不勝感激。 在此先感謝。
hi @ Snowlnferno ..感謝您的回覆..這不是我想要在我的應用程序中做的事..我想要我的應用程序下面的鍵盤,即當我點擊EditText時,鍵盤不應該隱藏在應用程序中的按鈕...我想看到按鈕也當鍵盤在屏幕上......但你的鏈接幫助我學習2新的東西..所以,也感謝鏈接。 – LazyBones 2014-09-18 19:11:49