Rotation is the definition of a custom theme in xml style, check the code below: -
Style:
<style name="Theme.D1NoTitleDim" parent="android:style/Theme.Translucent"> <item name="android:windowNoTitle">true</item> <item name="android:windowContentOverlay">@null</item> <item name="android:backgroundDimEnabled">true</item> <item name="android:background">#22000000</item> </style>
manifest:
<activity android:theme="@style/Theme.D1NoTitleDim" android:name="com.example.dialog" android:label="@string/title_activity_list" > </activity>
source share