Chcę, aby prosty TextView
zachowywał się tak, jak to robił simple_list_item_1
w ListView
. Oto kod XML:Wybieracz Androida i kolor tekstu
<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" />
Wszystko działa z wyjątkiem koloru tekstu, który (prawdopodobnie) nie zmienia się w stanie skupienia. Jak mogę go zmienić na textAppearanceLargeInverse
?
Jeśli ktoś szuka pliku xml, to jest tutaj: http://developer.android.com/resources/samples/Home/res/color/bright_text_dark_focused.html – swinefeaster