草庐IT

theme-bar

全部标签

android - 检索项目 : No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar' . 的父项时出错 visual studio xamarin

嗯,它给了我9style.xml错误,说Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'Theme.AppCompat.Light.DarkActionBar'ErrorNoresourcefoundthatmatchesthegivenname:attr'windowNoTitle'.就像我正在使用带有xamarin的visualstudio@drawable/splashscreentruefalsetruefalse#a84849#444#a84849true@style/AppCompatD

android action bar自定义图标

我想像这样创建操作栏我在开发指南中看到操作栏图标应该有特定的大小这可能吗?并且是否可以在没有可点击指示的情况下在操作栏中添加项目? 最佳答案 我理解你对操作栏图标大小的担忧,我也有同样的想法,直到我发现这个http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html它是一个工具,可以根据您想要添加到您的应用程序的任何内容重新调整图标大小,它还提供了一些现成的剪贴画可供使用,您只需单击下载.zip即可获得。享受开发操作栏的乐趣。

android - 将 Theme.Material.Light.DarkActionBar 与 Theme.AppCompat.Light.DarkActionBar 一起使用会使 android L(api v21) 上的应用程序崩溃

这是我的资源的样子res/values/styles.xml@color/colorPrimary@color/colorPrimaryDarktruetrue就像它说的hereres/values-v21/styles.xmlAndroidManifest.xml有在我的MainActivity.java中,我继承自ActionBarActivitypublicclassMainActivityextendsActionBarActivity{.......}现在,当我在KitKat(API19)上运行该应用程序时,该应用程序运行并且我看到DarkAction栏和Material设计

android - 使用 android.support.v7.app.AlertDialog 自定义默认的 Theme.AppCompat.Dialog.Alert

我最近将应用中的AlertDialog实例切换为使用android.support.v7.app.AlertDialog,但在应用自定义主题时遇到了问题,并且警报对话框的样式。在我的styles.xml中,我有以下样式:@color/theme_accent_1@color/theme_component_background@color/theme_component_background在我的themes.xml中,我根据需要在我的主题中设置了以下内容:@style/AlertDialog由于某些原因,自定义样式从未应用于AlertDialog实例,它们仍然是默认的Theme.Ap

状态栏中的Android Seek Bar

我正在开发一个android应用程序,我想在状态栏中添加音量控制。我可以在状态栏中添加一个搜索栏吗?我使用过NotificationManager,我发现在通知栏中添加动画很困难。但是任何人都可以建议我是否可以在我的状态栏(通知栏)中添加一个搜索栏。 最佳答案 简短回答:否。长答案:您不能将监听器添加到放置在NotificationBar上的小部件。您不能尝试添加Intent来调用带有对话框主题的Activity并在那里设置搜索栏。 关于状态栏中的AndroidSeekBar,我们在St

java - 使用 StatusBarManagerService 时出错 - android.permission.STATUS_BAR_SERVICE 上的 java.lang.SecurityException

我想使用StatusBarManagerService,但它在SDK上不可用,所以我尝试“作弊”,使用反射来访问它。我能够访问它,但现在在访问其中一种方法时出现错误:java.lang.SecurityException:StatusBarManagerService:Neitheruser10139norcurrentprocesshasandroid.permission.STATUS_BAR_SERVICE.是否可以授予此权限,还是根本不可能?这是我的代码:try{ClassserviceManagerClass=Class.forName("android.os.Service

android - 设置 Theme.Holo.Light 会更改列表中除复选框以外的所有内容

我制作了自己的主题并在我的list中添加了对它的引用。除了我的自定义列表中的复选框外,一切看起来都很完美(按钮、文本框等)。android:checkMark="?android:attr/listChoiceIndicatorMultiple"我的列表项中的复选框是Theme.Holo中的默认复选框,我不明白为什么。感谢任何帮助! 最佳答案 我也遇到了同样的问题。我不知道为什么它没有选择正确的复选框——在浅色背景下你几乎看不到它。现在,我将适当的全息灯复选框图像从android可绘制文件夹中复制到我的项目中。然后我创建了自己的引用

android - Theme.AppCompat.Light android 的默认背景颜色

如果父主题Theme.AppCompat.Light的windowBackground设置为null,Android系统使用的颜色代码(十六进制)是什么@null谁能帮我知道确切的十六进制代码? 最佳答案 它使用#fffafafa如主题Platform.AppCompat.Light中所述。此值适用于appcompat-v7:23.4.0,在其他版本上可能有所不同。 关于android-Theme.AppCompat.Lightandroid的默认背景颜色,我们在StackOverflo

android - Urban Airship : custom icon for default status bar notification

如果您想对状态栏通知进行任何修改,包括微调图标,UrbanAirship建议使用CustomPushNotificationBuilder创建自定义通知。不幸的是,使用RemoteView进行通知会带来许多与自定义制造商和/或特定于平台的皮肤相关的不良影响,includingtextcolors以及对私有(private)资源的引用(例如Honeycomb/ICS上的@*android:drawable/notify_panel_notification_icon_bg_tile)。必须有一种无需使用RemoteView即可交换图标的简单方法。怎么办? 最佳

android - ActionMode Bar 的所有图标都没有在 Android 中显示?

我为我的操作模式栏创建了一个带图标的菜单,但并非所有菜单都在操作模式栏中显示为图标。这是我的菜单xml文件。这是我创建ActionmodeBar的代码。@OverridepublicbooleanonCreateActionMode(android.support.v7.view.ActionModemode,Menumenu){MenuInflaterinflater=mode.getMenuInflater();inflater.inflate(R.menu.menu_actionmode_device_documents,menu);returntrue;}@Overridepu