このコードでは間違いがありますが、この方法が正しいかどうか教えてください。レイアウトコードの間違いは何ですか
リストアイテムを読み込むと、リストは画面全体ではなく検索バーまで拡大していきます。アドバイスをお願いします。
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:background="#000044">
<TableRow>
<EditText
android:id="@+id/txtUserName"
android:width="270dp" />
<Button
android:id="@+id/Search_button"
android:width="50dp" />
/>
</TableRow>
<TableRow>
<ListView
android:id="@+id/Service_name_list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</TableRow>
</TableLayout>
また、これはすべての画面で有効であるかどうかを教えてください。
動作しませんでした。 – Naruto