[英]Setting the theme in an android application
我已經經歷了相當多的時間,但是我仍然茫然不知所措:
http://developer.android.com/design/style/themes.html http://developer.android.com/guide/topics/ui/themes.html
我已將視圖設置為在IDE(IntelliJ IDEA 14.1.2)中使用“對話框”主題,並且insepctor中的應用程序如下所示:
但是在我的手機上看起來完全不同(分辨率更高,但這不是重點)。
我在做什么錯,如何獲得這種效果?
添加到Android清單
<activity
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
我在我的一項活動中使用了它,沒關系:
<activity
android:name="eddine.charef.mechalikh.swipedemo.mapDialog"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:theme="@android:style/Theme.Dialog" ><!--add this-->
</activity>
也許您的android版本不支持該功能。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.