在我的应用程序,我定义一个android的活性dialog.It看起来proper.Only问题,那就是我的对话出现在黑暗的主题。我想要显示它成光的主题。我定义下列方式我的活动对话框:
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.
您需要使用全息光对话主题:
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" />