EditText が単一行に固定され、常に表示されるように、ヘッダー、リスト、および EditText をフォーマットするにはどうすればよいですか? これは、リスト エントリが 1 つだけの私のレイアウトです。
以下は、いくつかのリスト エントリを含むレイアウトです。入力中のテキストはソフト キーボードによって非表示になります。私はウェインと入力していました。
さまざまな Linear および Relative レイアウトを試しました。これが私の現在のレイアウトです:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/select_child_header"
style="@style/headerStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="@color/start_blue"
android:text="Which child did you take a picture of?" />
<fragment
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/modchild_fragment"
android:name="com.chex.control.ChildList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/select_child_header"
android:focusable="true"
android:focusableInTouchMode="true" >
</fragment>
<EditText
android:id="@+id/new_child"
style="@style/editTextStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_below="@id/modchild_fragment"
android:hint="new child name"
android:inputType="text"
android:singleLine="true" />
</RelativeLayout>
この画面をフォーマットする方法についてアドバイスをいただければ幸いです。