0
言葉で説明するのは難しいですが、私がGoogleハングアウトで簡単に話していることが分かります。一番下のEditTextをタップしてコメントを入力すると、EditTextの下部とソフトキーボードの間にいくつかのボタンが表示されます。EditTextとソフトキーボードの間に表示するカスタムレイアウトを追加する方法は?
あなたはそれをどのように行うのですか? EditTextとその下にButtonがあるシンプルなレイアウトを作ったが、EditTextをタップすると、そのボタンはソフトキーボードによって隠されていた。クリーンアップされたサンプルは次のとおりです。
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/StandardMarginSmall"
android:layout_marginBottom="@dimen/StandardMarginSmall">
<EditText
android:id="@+id/NewComment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="false"/>
<Button
android:id="@+id/PostComment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Post"
/>
</LinearLayout>
編集モードの間にこれらのボタンを表示可能にするというトリックはありますか?
はい、ありがとう、ありがとう。私はEditTextウィジェット自体のオプションがあると思っていましたが、そうです、それはアクティビティ全体の機能です。いずれにせよ、私のために働く、ありがとう! – Glaucus