-1

I have an Activity inherited from AppCompactActivity. in manifest for activity set theme:

<activity
            android:name=".activity.CameraSettingsActivity2"
            android:theme="@style/Theme.AppCompat.Light.Dialog" />

but the activity still displays in a fullscreen instead of dialog window. I have been trying different themes such as ..

Theme.AppCompat.Dialog
Theme.AppCompat.Dialog.Alert
Theme.AppCompat.Dialog.MinWidth

none of them seems work.the activity still like this

enter image description here

Gelldur
  • 11,187
  • 7
  • 57
  • 68
duanduan
  • 586
  • 6
  • 3

1 Answers1

0

try using this style <style name="CustomDialogTheme" parent="android:Theme.Dialog"> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowNoTitle">true</item> <item name="android:windowFullscreen">false</item> </style>

Shaan_B
  • 1,788
  • 2
  • 12
  • 16