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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -