草庐IT

liferay-theme

全部标签

android - 更改操作栏标题颜色 Theme.AppCompat.Light.DarkActionBar android

我想在android中将操作栏标题颜色更改为白色。我在值Theme.AppCompat.Light和values-14Theme.AppCompat.Light.DarkActionBar中使用主题到目前为止我已经尝试过在值文件夹中:@style/MyActionBar@android:color/white和值-14文件夹@style/MyActionBar@android:color/white但ActionBar标题颜色没有改变。 最佳答案 您可以使用colorPrimary属性指定ActionBar的背景颜色;类似于以下内容

android - 如何在默认主题 Theme.Holo.Light 中更改 homeAsUpIndicator 的图像

在我的安卓应用中,我使用的是默认主题Theme.Holo.Light。现在我想更改默认使用的“@android:drawable/ic_ab_back_holo_light通过将其更改为@drawable/ic_launcher但这里的标志保持原样,它不会改变图像。我附上了actionBar的屏幕截图。任何帮助将不胜感激。 最佳答案 将它们放入您的默认Activity主题中。@drawable/ic_launcher 关于android-如何在默认主题Theme.Holo.Light中更

java - 检索项目 : No resource found that matches the given name '@android:style/Theme.AppCompat.Light.DarkActionBar' 的父项时出错

我正在关注来自developers.android.com的android开发教程,目前我正在尝试使用此处提供的信息来设置操作栏的样式:https://developer.android.com/training/basics/actionbar/styling.html#CustomBackground7这是res/values/themes.xml的代码:@style/MyActionBar@style/MyActionBar@drawable/actionbar_background@drawable/actionbar_background我在“style”开始标签旁边看到红叉

android - 错误 : IllegalArgumentException: The style on this component requires your app theme to be Theme. Material 组件

下面是我的依赖implementation'com.google.android.material:material:1.0.0'implementation'androidx.appcompat:appcompat:1.0.2'implementation'androidx.constraintlayout:constraintlayout:1.1.3'我的layout.xml上面的代码对我来说工作正常但是当我更新materialdesign的dependenciesimplementation'com.google.android.material:material:1.1.0-a

android:theme ="@android:style/Theme.NoTitleBar.Fullscreen"安卓不工作

我在list文件中声明我的Activity,如下所示。我声明了全屏主题的Activity。但它不起作用。我也使用第二种全屏方式,如下所示。requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);但是没有成功。请帮我找到这个。 最佳答案 我通过在应用程序级别声明全屏主题来解决它。

android - 检索项目 :No resource found that matches the given name @style/Theme. 的父项时出错 Holo

这是我的res/values/themes.xml中的代码。我的minSdkVersion设置为11。M收到错误,因为检索项目的父项时出错:找不到与给定名称@style/Theme.Holo匹配的资源。@style/MyActionBar@style/MyActionBarTabText@color/actionbar_text@style/MyActionBarTitleText@color/actionbar_text@color/actionbar_text 最佳答案 改变到对其他样式资源也做同样的事情......

安卓 "You need to use a Theme.AppCompat theme (or descendant) with the design library"

好的,我收到了这个错误(标题)。许多帖子建议我(甚至是Androidstudio)将主题更改为App.Appcompat,我已经做到了。list文件:样式.xml@color/colorPrimary@color/colorPrimaryDark@color/colorAccentfalsetrue但仍然没有任何改变。我不知道发生了什么,因为我以前没有遇到过这个问题(我之前没有在list文件中添加App.compat)Gradle:compile'com.android.support:appcompat-v7:24.0.0-beta1'compile'com.android.supp

android - 标题栏不断出现,即使有 requestWindowFeature 或 android :theme

我的问题正是Customtitlebar-systemtitlebarbeingshownforabriefmoment?但我无法获得与@Jerry在最佳答案中所写相同的结果。“当我改用主题来告诉框架我不想要标题时,问题就消失了,现在我在第一次加载时直接看到了我自己的标题”我的代码:list:布局:风格:true@drawable/splash启动画面.javapublicclassSplashScreenextendsActivityimplementsRunnable{@OverrideprotectedvoidonCreate(BundlesavedInstanceState){

android - 使用 "android:Theme.Holo.Light"时如何更改聚焦的 EditText 的颜色?

我在我的应用程序中使用“android:Theme.Holo.Light”,它将蓝色作为默认颜色。我想在像下面这样聚焦时有一个EditText。默认情况下,在应用holo.light主题时是这样的。 最佳答案 您可以使用全息颜色生成器来生成自定义颜色。http://android-holo-colors.com/您不需要下载所有控件。只有这些你想要。 关于android-使用"android:Theme.Holo.Light"时如何更改聚焦的EditText的颜色?,我们在StackOv

android - "You need to use a Theme.AppCompat theme (or descendant) with the design library"错误

我每次都收到“您需要将Theme.AppCompat主题(或后代)与设计库一起使用”错误,即使我显然使用的是AppCompat主题(后代主题)也是如此。依赖项:compile'com.android.support:appcompat-v7:23.3.0'compile'com.android.support:design:23.3.0'compile'com.android.support:support-v4:23.3.0'布局:主题:true@android:color/transparent@nulltruetruefalselist:(...)我在服务中膨胀布局:toolti