を使用しSimpleCursorAdapter
て単一のを表示していますCheckedTextView
。私はこれがとを使用して最もよく行われることを知っていsimple_list_item_multiple_choice
ますandroid.R.id.text1
。
adapter = new SimpleCursorAdapter(getApplicationContext(),
android.R.layout.simple_list_item_multiple_choice, rules,
new String[]{Constants.KEY_RULE}, new int[]{android.R.id.text1});
からのテキストKEY_RULE
が2行を超える場合、androidは折り返さず、代わりに非表示にします。独自のアダプターを実装しなくても、これを簡単に回避できますか?
以下の私のxmlコードを見つけてください:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:id="@+id/header" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:text="@string/rule_selection_for_revision_list_title"
android:padding="4dip" android:background="#000000" android:textColor="#ffffff" android:textStyle="bold" />
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_weight="1.0" />
<TextView android:textSize="18sp" android:textStyle="bold"
android:id="@id/android:empty" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:gravity="center_vertical|center_horizontal"
android:text="There are no rules to consider." />
</LinearLayout>
少なくともフォントサイズを2行に収まるように縮小する方法はありますか?