腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
getColor
(
int
id
)
已
弃
用
android
、
android-studio
getColor
(
int
id
, Theme theme); `
getColor
(R.color.green, getContext().getTheme());` 其中“绿色”表示资源/颜色: `color
浏览 9
提问于2021-11-15
得票数 0
2
回答
getColor
(
int
id
)和Android 6.0 Marshmallow(API 23)?
android
、
api
getColor
(
int
id
)在Android 6.0 Marshmallow(API 23)上
弃
用
? @Deprecated public
int
getColor
(@ColorRes
int
id
) throws NotFoundException {
浏览 467
提问于2017-12-18
3
回答
getResources().
getColor
()
已
弃
用
android
、
deprecated
、
android-resources
、
android-color
我发现有用的getResources().
getColor
(R.color.color_name)被
弃
用了。 我应该用什么来代替呢?
浏览 192
提问于2015-08-06
得票数 505
回答已采纳
5
回答
如何将R.color转换为颜色?
java
、
android
、
colors
安卓有两种颜色:和 Layout使用R.color (我需要holo_blue_light: 17170450 (0x01060012)) 但是函数(如setColor())有另一种类型的输入
int
(
浏览 0
提问于2013-07-13
得票数 17
回答已采纳
1
回答
我的类代码中不推荐使用的API在哪里?我搞不懂
java
、
android-studio
、
colors
、
drawable
、
deprecated
这是一段简单的代码,错误消息并没有说明被
弃
用
的用法的确切位置。 ? com.dev.marcellocamara.pgm.R; return null; } public static
int
getColor</e
浏览 27
提问于2019-03-14
得票数 1
回答已采纳
2
回答
SwipeRefreshLayout在设置背景时出现异常
android
、
android-5.0-lollipop
com.mobile.clubgecko.activities.ClubGeckoBaseActivity}: android.content.res.Resources$NotFoundException: Resource
ID
Color.parseColor("#fd6c00")); swipeRefreshLayout.setProgressBackgroundColor(context.getResources().
getColor
浏览 1
提问于2015-03-16
得票数 2
3
回答
Android -如何以编程方式设置按钮颜色
android
this.info= info; setTypeface(Typeface.DEFAULT, Typeface.BOLD);
int
浏览 0
提问于2010-07-22
得票数 10
回答已采纳
5
回答
在android中编程更改文本视图颜色的新方法是什么?
java
、
android
、
xml
、
text
、
colors
XMLandroid:
id
="@+
id
/toolbar"android:background="#000000"> android:
id
="@+
id<
浏览 0
提问于2018-05-11
得票数 0
3
回答
如何将Android.Resource.Color转换为Android.Graphics.Color
android
、
xamarin
我有一个像Android.Resource.Color.HoloOrangeDark一样的Android.Resource.Color值。我该怎么做呢?
浏览 1
提问于2014-09-23
得票数 16
回答已采纳
4
回答
如何以编程方式为文本视图设置文本颜色
android
、
textview
、
background-color
如何以编程方式将文本视图的文本颜色设置为#bdbdbd?
浏览 0
提问于2011-12-12
得票数 316
回答已采纳
2
回答
尝试更改状态栏颜色时应用程序崩溃
android
WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); window.setStatusBarColor(getApplicationContext().getResources().
getColor
浏览 2
提问于2016-02-24
得票数 0
4
回答
Android Linkify如何设置自定义链接颜色?
android
、
linkify
、
textcolor
我想将我的安卓linkify文本颜色设置为自定义颜色但是mText.setLinkTextColor("#2f6699");不起作用,我一直在寻找一个内置的方法来编译十六进制值,但我还没有找到一个,任何帮助都会有很大的帮助谢谢
浏览 0
提问于2012-11-23
得票数 17
回答已采纳
4
回答
以编程方式在Android的库22中的TextView中使用setTextColor
android
、
colors
、
textview
XML: <LinearLayout android:layout_width="match_parent
浏览 28
提问于2016-09-28
得票数 2
回答已采纳
3
回答
使用setTextColor()以编程方式设置Android TextView文本颜色会使android:duplicateParentState无效
android
、
textview
、
textcolor
这些项目中的TextView看起来像这样(它包装在一个RelativeLayout中): android:
id
="@+
id
/text_language_name" TextView text_language_name = (TextView)view.findViewById(R.
id
.text_language_name= null) { text_
浏览 1
提问于2013-04-19
得票数 7
回答已采纳
3
回答
更改棒棒糖上的通知图标背景
android
、
android-notifications
、
android-5.0-lollipop
我正在浏览,但没有找到任何关于通知图标背景的内容。正如你可能注意到的,自定义通知只有一个浅灰色的背景。但是像Hangout这样的应用程序,或者只是简单的USB调试通知,它们的通知图标背景有一个自定义的颜色。
浏览 1
提问于2014-12-07
得票数 80
回答已采纳
1
回答
如何在android应用中动态设置背景色?
android
、
android-layout
、
colors
、
background
、
programmatically
layInflate.inflate(R.layout.main_activity_layout, null);难题和问题:我有一个颜色选择器设置/首选项。用户可以从中选取几乎任何颜色,并将其保存为
int
类型的颜色。它成功地与文本颜色一起工作: textView.
浏览 4
提问于2017-02-14
得票数 0
回答已采纳
8
回答
以编程方式设置背景色
android
、
background-color
View someView = findViewById(R.
id
.screen);root.setBackgroundColor
浏览 1
提问于2014-05-07
得票数 164
3
回答
getDrawable(
int
id
)
已
弃
用
。如何设置镜像?
android
getDrawable()在API22中已被
弃
用
。那么,如果我
用
min API 16制作了一个应用程序,我如何设置一个图像?我看到我可以使用getDrawable(
int
id
,主题),但这是在API21中添加的,所以我不能使用它。private ImageView weatherIcon;if(weatherReportList.size
浏览 27
提问于2016-07-22
得票数 2
4
回答
如何将颜色从十六进制转换为RGB
android
、
colors
我在String.xml文件中有颜色,像这样的<color name="ItemColor1">#ffff992b</color>如何将其转换为四个变量float Green;float Alfa;
浏览 1
提问于2012-05-15
得票数 5
回答已采纳
2
回答
更改形状的颜色XML Android
java
、
android
、
xml
、
shape
= (GradientDrawable)recplay_button.getBackground(); android:layout_height="match_parent" <But
浏览 13
提问于2017-03-17
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
依赖太多,Fedora 29 已确认不会弃用软件包管理器 Yum
以太坊Ropsten测试网已弃用,Rinkeby测试网将逐步停止使用
韩国大规模弃用5G!已投资超500亿美元,三星:华为成唯一救星
一文看懂PHP 8的新特性
为什么推荐使用Kotlin进行开发
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券