草庐IT

Theme_Holo

全部标签

android - 样式,最小高度/最大高度 : I cannot get the maxHeight to override the theme minHeight

我认为更多的“全局”样式总是被更多“本地”样式覆盖。例如,如果我将所有按钮重新定义为具有textSize=40dip(将该样式应用为应用程序的主题),然后将另一个样式应用到一个特定的按钮,即textSize=10dip,那么该特定的按钮应该获得10diptextSize。通常这就是它的工作原理。但是当涉及到maxHeight时就不是这样了。这是场景:在我的styles.xml中,我有一个Style,我继承了默认的Button并更改了textSize和minHeight,然后另一个Style设置了一些其他值(但也继承自Button),就像这样:26dip60dip18dip70dip10

安卓 map :Failed to find style 'mapViewStyle' in current theme

我正在尝试在我的应用程序中使用map,但出现此错误,在当前主题中找不到样式“mapViewStyle”我已正确生成key,并已尝试在其他地方为同一问题提供的所有解决方案。1.mytargetapiandtheonementionedinthemanifestfilearethesame.2.Thereisnoimport.Rinmyproject3.Ihavecleanedmyproject.4.Uses-libraryelementisachildoftheapplication.这是我的xml文件这是我对应的java文件包com.epidemicator.prototype;imp

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 - 另一个 : List of Android Holo Drawable Icons?

关闭。这个问题是off-topic.它目前不接受答案。想改进这个问题吗?Updatethequestion所以它是on-topic用于堆栈溢出。关闭10年前。Improvethisquestion我迷失在Internet中,试图找到R.drawable下所有可用图标的合理列表,但是onlythat'snot404isforandroid2.2.新的Android用户界面是否有类似之处?

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中更

android - 为什么 ICS 没有为 Holo Light 提供一些图标?

我正在尝试在我的项目中使用ic_menu_refresh。但是,我需要它用于HoloLight主题,我在AndroidSDK(android-15/data/res/drawable-hdpi)中找不到它。不过,它适用于HoloDark。我还在GmailAPK中找到了它,所以我可以从那里获取它...但为什么Android4.0只为两个主题提供一些图标?(还是我看错地方了?) 最佳答案 它们似乎没有出现在SDK/data/res/drawable-[SIZE]中,但您可以从此页面获取其中一些:http://developer.andr

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 最佳答案 改变到对其他样式资源也做同样的事情......