メッセージを送信するための内部のアクティビティを持つアプリケーションの実装を終了します(editTextと2つのボタン - 送信とキャンセル、メッセージは固定アドレスに送信されます)。このアクティビティを開始すると、画面上にテキストボックスとキーボードが表示され、すぐに表示されます。しかし、これの欠点は、ボタンがキーボードで覆われているか半分に覆われていることであり、必要なものはメッセージと同様です。キーボードが見えるときは、テキストフィールドを縮小してキーボード上の追加ボタンに表示します。画面の下に戻る矢印を押すとキーボードが消えます。ほとんどの画面がこのeditTextで撮影され、下に2つのボタンが表示されます...それは本当のことができますか?Android - editTextとsend/exitボタン
編集:この画面にはアクティブなキーボードのすべてのボタンが表示されます。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:orientation="vertical"
android:layout_height="fill_parent"
android:background="@drawable/poz3"
android:padding="10dip">
<TextView
android:text="Message:"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="25dip"
android:textColor="@color/black"
/>
<EditText
android:id="@+id/message"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Write message here"
android:gravity="top"
android:lines="7"
android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:imeOptions="actionSend|flagNoEnterAction"
/>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:orientation="horizontal"
android:layout_height="fill_parent"
>
<Button
android:id="@+id/enquirySendButton"
android:layout_width="fill_parent"
android:layout_height="60dip"
android:text="Send"
android:layout_weight="1.0"
android:background="@drawable/custom_button"
/>
<Button
android:id="@+id/enquiryExitButton"
android:layout_width="fill_parent"
android:layout_height="60dip"
android:text="Cancel"
android:layout_weight="1.0"
android:background="@drawable/custom_button"
/>
</LinearLayout>
</LinearLayout>
バディ、あなたが適切に照会し説明してください。 – Mudassir
またはこのリンクはあなたに役立ちますhttp://developer.android.com/resources/articles/on-screen-inputs.html –
xmlを投稿できますか? – ingsaurabh