I am working on changing the look of the *BluetoothPairingDialog* from *
package/Settings/*

BluetoothPairingDialog is an AlertDialog, and I was able to change the 
theme *by changing the theme attributes*

from *Settings/AndroidManifest.xml*

and from *framework/base/core/res/res/value/styles_device_defaults.xml*
*
*
I added a few modifications to title header by adding a few items under

*<style name="DialogWindowTitle.DeviceDefault" 
parent="DialogWindowTitle.Holo">*
*
*
*
*
*
*
*
*
but when I try to change the layout of the AlertDialog to another layout 
xml file by adding

*<item name="layout">@android:layout/my_alert_dialog</item>*

to

*<style name="AlertDialog.DeviceDefault" parent="AlertDialog.Holo">*
*
*
it did not work.

I have */layout/my_alert_dialog.xml *, which is a copy of 
*alert_dialog_holo.xml 
*with different divider color.



The reason I tried to add that item to the style is that I found

*<item name="layout">@android:layout/alert_dialog_holo</item>*
*
*
from 

*<style name="AlertDialog.Holo" parent="AlertDialog">*
*
*
inside *values/styles.xml*
*
*
When I put that xml inside styles.xml it changes, which means even though I 
set the theme to DeviceDefault the layout wasn't applied.

But only layout wasn't applied since other *modifications specific to 
devicedefaults* were taken into effect.
*
*
*
*
*
*
Does anyone know why this change is not taking effect? Thank you in advance!

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to