EDIT: I made a mistake in my original answer.
Unfortunately, the styles used for dialogs are internal and cannot be used in the same way as some other simple holographic controls. I created an open source project to handle this in very simple situations (I hope to extend it along the way and make it more ... legal). Here is a link to a new answer that describes this in more detail: How to change the color of the AlertDialog header and the color of the line below
For posterity, here is my naive old answer:
Take a look at the answer posted here . For your specific purpose, you will want to redefine the dialogTitleDecorLayout ( I think! ) Style as opposed to the listSeparatorTextViewStyle style.
If you are interested where it was originally installed, you can pull out the themes.xml file into your sdk folder on your computer and find the dialogTitleDecorLayout attribute. This should result in a dialog_title_holo layout dialog_title_holo , which should also be on your computer. There you should find the following code in the layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:fitsSystemWindows="true"> <TextView android:id="@android:id/title" style="?android:attr/windowTitleStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="60dip" android:paddingLeft="32dip" android:paddingRight="32dip" android:gravity="center_vertical|left" /> <ImageView android:id="@+id/titleDivider" android:layout_width="match_parent" android:layout_height="4dip" android:scaleType="fitXY" android:gravity="fill_horizontal" android:paddingLeft="16dip" android:paddingRight="16dip" android:src="@android:drawable/divider_strong_holo" /> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" android:foreground="?android:attr/windowContentOverlay"> <FrameLayout android:id="@android:id/content" android:layout_width="match_parent" android:layout_height="match_parent" /> </FrameLayout> </LinearLayout>
The note code is the @android:drawable/divider_strong_holo link @android:drawable/divider_strong_holo . This file also exists on your computer, and it should be blue 9patch. You will need to create a similar 9patch of a different color. Good luck Even if this is not quite the right attribute, I think you see what you might need here ...
source share