У меня есть следующая раскладкаEditText скрыта на Samsung Galaxy
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android">
<ListView
android:id="@+id/displaysms_listView1"
android:layout_width="fill_parent"
android:layout_height="319dp" />
<EditText
android:id="@+id/displaysms_textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Write Message"
android:inputType="textVisiblePassword" />
<RelativeLayout
android:id="@+id/displaysms_relativeLayout2"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/displaysms_btn_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:gravity="fill_vertical"
android:text="Send"
android:textSize="12sp" />
<Button
android:id="@+id/displaysms_btn_clear"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:gravity="fill_vertical"
android:text="Clear"
android:textSize="12sp" />
</RelativeLayout>
</LinearLayout>
я сделал adjustPan
в файле манифеста и она отлично работает на устройствах, кроме Samsung Galaxy в EditText
скрывается под мягкой клавиатурой, любые предложения, я просто хочу EditText
и кнопки в нижней части моего списка зрения
мой Activity
выглядит как
<activity
android:name="com.SMSActivity"
android:windowSoftInputMode="adjustPan|adjustResize"
ваша высота ListView является всегда исправлено, что не является хорошей идеей .. когда вы используете приложение на небольших экранах .. ur listview может охватывать весь экран –
@contactmeandroid Я понял ваш комментарий выше. Каким будет правильный способ присвоить измерения для просмотра –
@ dakait попробуйте мой ответ –