-1
A
答えて
1
に
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_alignParentBottom="true"
android:gravity="bottom"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:gravity="left"
android:background="#e4e4e4"
android:layout_width="0dp"
android:layout_weight="8"
android:layout_height="match_parent" />
<LinearLayout
android:orientation="vertical"
android:layout_weight="2"
android:layout_width="0dp"
android:layout_height="wrap_content">
<Button
android:text="Done"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button
android:text="Del"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
をsample.xmlにレイアウトファイルを作成しますSample.java活動は、あなたがマニフェストファイルにandroid:windowSoftInputMode="adjustResize"
を追加していることを確認してください
public class Sample extends Activity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.sample);
}
}
のファイルを作成します以下のように。
<activity android:name=".Sample"
android:windowSoftInputMode="adjustResize">
</activity>
関連する問題
- 1. リストビューに2つのボタンを追加するには
- 2. ボタンの配列を2つのJFrameに追加する
- 3. ExtJS ComboBoxの隣に2つのボタンを追加する
- 4. 2つのテーブルビューセルの間にボタンを追加する方法
- 5. ボタンに2つの画像を追加するAndroidスタジオ
- 6. Wordpressで2つのボタンを追加するAppthemesのHirebeeテーマ
- 7. ボタンに2つの異なるフラットカラーを追加して、CSSスタイリングをボタンに追加したい
- 8. 2つの入力を持つjavascriptボタンを追加
- 9. ionic 2コンテンツページのボタン/メニューを追加
- 10. woocommerceの2番目のボタンを追加するには
- 11. 2つのクエリを追加
- 12. Xcodeボタンにラベルを追加するボタン
- 13. 2つのintを追加する
- 14. 2つの角度を追加する
- 15. 2つのSOAPヘッダータグを追加する
- 16. 2つのXMlDocumentを追加するC#
- 17. 2つのXmlObjectを追加する
- 18. パンダのデータフレームを2つ追加する
- 19. ソフトキーボードのボタンを入力 - Android
- 20. 動的に2つのビューを1つ下に追加する
- 21. 5つのボタンをアプリケーションバーWP7に追加するには?
- 22. 1つのページに2つのブートストラップモーダルを追加する
- 23. ソフトキーボードにカスタムの絵文字を追加しました
- 24. jqgridのアクションボタンの前に追加ボタンを追加する方法
- 25. 1つのTreeViewItemにボタンをプログラムで追加する方法
- 26. UITableViewスワイプに追加ボタンを追加
- 27. EditTextとソフトキーボードの間に表示するカスタムレイアウトを追加する方法は?
- 28. 東のレイアウトに2つ以上のボタンを追加すると、1つだけが表示されます
- 29. iPhoneのSafariにボタンを追加する
- 30. Tkinterのタイトルバーにボタンを追加する
だけでなく、一つの活性は、私はそれが他の活動に使用することを願って、顧客のソフトキーパッドにする必要があります。 – Chunhua