Android M - custom permission dialog style -


while implementing new android m permission model noticed permissions dialog not respect theming of styles.xml.

in styles.xml override dialog , alertdialog style this:

<item name="android:dialogtheme">@style/theme.dialog</item> <item name="android:alertdialogtheme">@style/theme.dialog</item> 

is possible change theming?

or because system dialog in device settings?

no, it's not possible. permissions dialog system dialog, hence can't change theme:

the m developer preview introduces new app permissions model streamlines process users install , upgrade apps. if app running on m preview supports new permissions model, user not have grant permissions when install or upgrade app. instead, app requests permissions needs them, , the system shows dialog user asking permission.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -