整理されたデータを表示するアプリを作成して表示しようとしているので、基本的には、TableLayout
それらを行に保持するだけでよいと考えているので、それを行う正しい方法は何ですか? 私はこれをxmlに持っています
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TableLayout
android:id="@+id/tableLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableRow>
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/hello" >
</TextView>
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="233dp"
android:layout_marginTop="44dp" >
</ListView>
</TableRow>
</TableLayout>
</LinearLayout>
TableLayout
タグとTableRow
タグに次のような警告が表示されるだけです。
"This TableLayout layout or its LinearLayout parent is possibly useless"
だから私が理解しているのは、それが拾っていないということですTableLayout
。どうすればこれを修正できますか? これを簡単に行う別の方法はありますか?