草庐IT

cnblogs-theme-silence

全部标签

android - 您需要在此 Activity 中使用 Theme.AppCompat 主题(或后代)

AndroidStudio0.4.5用于创建自定义对话框的Android文档:http://developer.android.com/guide/topics/ui/dialogs.html如果您想要自定义对话框,您可以将Activity显示为对话框,而不是使用对话框API。只需创建一个Activity并将其主题设置为Theme.Holo.Dialoginlist元素:但是,当我尝试这个时,我得到了以下异常:java.lang.IllegalStateException:YouneedtouseaTheme.AppCompattheme(ordescendant)withthisac

ruby-on-rails-3 - Spork 的 Silence Rails 模式加载

我在Rails3.0环境中运行rspec。我们刚刚切换到在内存数据库中使用sqlite3进行测试。要使其正常工作,您需要在每次运行时加载模式。这样做的问题是您会从架构加载中获得大量输出。根据this,似乎Spork以某种方式捕获了这个输出。因此,无论您做什么(silence_stream),模式加载的输出仍将继续通过。有没有办法让spork中的这个静音?输出会减慢整个测试周期并使其非常烦人。 最佳答案 这对我有用:ActiveRecord::Schema.verbose=falseload"#{Rails.root}/db/sche

ios - 运行 Xcode 模拟器时出错 - '[framework] CUIThemeStore: No theme registered with id=0'

我正在开发一个带有单一View和一些标签的应用程序。该应用程序在viewdidload()函数处失败,并且不会继续进行。代码如下。overridefuncviewDidLoad(){super.viewDidLoad()locationManager.delegate=selflocationManager.desiredAccuracy=kCLLocationAccuracyHundredMeterslocationManager.requestWhenInUseAuthorization()locationManager.startUpdatingLocation()}错误是'[f

php - fatal error : Cannot use "self" when no class scope is active in avada theme?的解决方案是什么

我刚刚安装了Wordpress,然后将Avada主题文件放在themes文件夹中。当我尝试安装Avada主题时出现fatalerror:Fatalerror:Cannotuse"self"whennoclassscopeisactiveinC:\xampp\htdocs\avada\wp-content\themes\Avada\framework\plugins\importer\importer.phponline1000我正在运行它xampp服务器。WordPress版本为4.4.2。我已经搜索了很多以找出实际问题是什么,但是当我在wamp服务器中安装avada时,它工作正常。我

android:theme ="@android:style/Theme.NoTitleBar.Fullscreen"适用于应用程序级别,但不适用于 Activity 级别。有什么线索吗?

我需要将我的一个名为MyNoStatusBarActivity.java的Activity设为全屏Activity。我已在Manifest中添加:...在我的Activity的onCreate中:@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN

android - "Failed to find style with id 0x7f070001 in current theme"使用 CardView android L (api 21) 时

我刚刚下载并开始学习androidLmaterialdesignapi。每当我在我的Activity中使用CardView时,它都会给我这个错误Failedtofindstylewithid0x7f070001incurrenttheme。这是我的xml布局:这是我的list文件:这是它显示的确切消息:Missingstyles.Isthecorrectthemechosenforthislayout?UsetheThemecomboboxabovethelayouttochooseadifferentlayout,orfixthethemestylereferences.Failed

android - 无法解决@style/Theme.Sherlock

我正在尝试使用ActionbarSherlock4,针对sdk15和minsdk8。按照使用网站上提供的说明和此处发布的精彩视频进行操作后:http://www.youtube.com/watch?v=avcp6eD_X2k我仍然遇到问题。当我尝试将android:theme="@style/Theme.Sherlock"添加到list文件时,我收到错误:Noresourcefoundthatmatchesthegivenname(at'theme'withvalue'@style/Theme.Sherlock').我已将actionbarSherlock库项目包含到我的项目中,并且导

android - 错误 : Theme. 半透明和 FLAG_ACTIVITY_REORDER_TO_FRONT

我有一个半透明主题的Activity:android:theme="@android:style/Theme.Translucent.NoTitleBar"这个问题也可以通过这个主题重现:true@android:color/transparent@null此Activity在启动时加载并保存在内存中(当我启动此Activity时,我将FLAG_ACTIVITY_REORDER_TO_FRONT标志添加为额外的)。问题:当我(从菜单)开始这个Activity时,Activity没有出现,什么也没有发生。但是:如果我删除半透明主题:一切正常,Activity将回到前面。是onNewInt

android - 带有 Theme.Sherlock.Light 的 AlertDialog 上深色背景上的深色文本

我正在为我的应用程序使用Theme.Sherlock.Light主题,并且正在创建一个带有底层AlertDialog的DialogFragment。它在Android3.x和4.x上运行良好,但在Android2.x上,我在深色背景上看到深色文本,难以阅读。我做错了什么,我是否需要通过创建自定义样式来强制使用浅色背景?提前致谢。 最佳答案 我找到了解决方案here:builder.setInverseBackgroundForced(true)另外,正如我所见here,JakeWarton建议用同样的方法修复它,但由于AlertDi

android - 如何将 ActionBarActivity 与 Theme.Material 一起使用

我创建了一个针对L预览的新项目。sdk生成的启动Activity扩展了ActionBarActivity,但是,当我尝试运行准系统生成的Activity时,它会引发以下异常:Causedby:java.lang.IllegalStateException:YouneedtouseaTheme.AppCompattheme(ordescendant)withthisactivity.atandroid.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:110)atandroid