次のようなレイアウトを作成しました。
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TableRow>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content">
</TableRow>
<TableRow>
<TextView
android:text="Name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<AutoCompleteTextView android:id="@+id/name"
android:layout_width="150dp"
android:layout_height="wrap_content"/>
</TableRow>
</TableLayout>
</ScrollView>
これは、周囲なしでClassCastException
しばらく使用することはありません。なんで? TextView
TableRow