Defining android activity as dialog with light theme

android, android-activity, dialog, themes

Solution

You need to use Holo Light Dialog theme:

<activity
    android:theme="@android:style/Theme.Holo.Light.Dialog"
    android:name="com.example.dialog"
    android:label="@string/title_activity_list" />

Problem

In my application I am defining one android activity as dialog.It looks proper.Only problem with that is my dialog appear in dark theme. I want to display it into light theme. I defined my activity dialog in following manner : ``` <activity android:theme="@android:style/Theme.DeviceDefault.Dialog.MinWidth" android:name="com.example.dialog" android:label="@string/title_activity_list" > </activity> ``` How to do this. Any solution. Need Help. Thank you.

Original source