android - No landscape mode when using AlertDialog Theme -
i'm using alertdialog theme show activity dialog. styles.xml:
<resources> <style name="apptheme" parent="theme.appcompat.light.dialog.alert"> <item name="colorprimary">@color/colorprimary</item> <item name="colorprimarydark">@color/colorprimarydark</item> <item name="coloraccent">@color/coloraccent</item> </style> <style name="theme.customdialogtheme" parent="@style/apptheme"> <item name="android:windownotitle">true</item> </style> </resources> the theme set in androidmanifest file , works far. i've noticed activity runs in portrait mode. if rotate device nothing happens. activity normal activity extends appcompatactivity.
do need specific configurations landscape mode?
Comments
Post a Comment