TextView
はListView
でsimple_list_item_1
のように振る舞います。 XMLは次のとおりです。Androidセレクター&テキストの色
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content" android:layout_width="fill_parent"
android:gravity="center" android:focusable="true"
android:minHeight="?android:attr/listPreferredItemHeight"
android:textAppearance="?android:attr/textAppearanceLarge"
android:background="@android:drawable/list_selector_background" />
すべては、フォーカスされた状態で変更されていないことが予想されるテキストの色を除いてすべて機能します。 textAppearanceLargeInverse
に変更するにはどうすればよいですか?
誰かがxmlファイルを探している場合は、ここにあります: http://developer.android.com/resources/samples/Home/res/color/bright_text_dark_focused.html – swinefeaster