Android: Custom AlertDialog has different text color -
i created custom layout alertdialog, , works fine, have problem text style of layout.
this layout alertdialog:
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <textview android:id="@+id/namedialoglable" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textappearance="?android:attr/textappearancemedium" android:text="@string/profilename" /> <edittext android:id="@+id/namedialoginput" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_below="@+id/namedialoglable" android:layout_margintop="24dp" android:ems="10" android:selectallonfocus="true" android:text="@string/defaultname" > <requestfocus /> </edittext> </relativelayout>
the problem text default alertdialog white, , in custom dialog black. want use same color used other alertdialog.
how that?
edit more clear: want keep father text color, not force custom dialog color white. think alertdialog use system color, alert need keep same color
why wont apply:
android:textcolor="@android:color/white"
to views
want while text color.
also styles , themes achieve wnat:
http://developer.android.com/guide/topics/ui/themes.html#platformstyles
Comments
Post a Comment