[android-developers] Change Theme and Style for EditTextPreference and default color orange
Hi,
I have managed to change the orange color of a EditText in styles.xml
with:
<style name="edittext" parent="@android:style/Widget.EditText">
<item name="android:focusable">true</item>
<item name="android:focusableInTouchMode">true</item>
<item name="android:clickable">true</item>
<item name="android:background">@drawable/edit_text</item>
<item name="android:textAppearance">?android:attr/
textAppearanceMediumInverse</item>
<item name="android:textColor">@android:color/primary_text_light</
item>
<item name="android:gravity">center_vertical</item>
</style>
and in Themes.xml along with:
<style name="Theme.Dialog" parent="android:Theme.Dialog">
<item name="android:editTextStyle">@style/edittext</item>
</style>
then also changed the drawables in my edit_text to get rid of the
default orange color.
But in Preference for a EditTextPreference (and ListPreference) I
can't find the Style and Theme to get this working in a similar
fashion?
Did try with:
<item name="android:editTextPreferenceStyle">@style/edittextpref</item
and
parent="@android:style/Preference.DialogPreference.EditTextPreference"
with no luck…
Regards Jonas
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home