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
Post a Comment