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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -