如何使任何HTML颜色code半透明[Android版] [英] How to make any html color code semi transparent [Android]

查看:304
本文介绍了如何使任何HTML颜色code半透明[Android版]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序是我有一个形状,在我有一个坚实的标签。

I have one Android application were i have one shape and in that i have one solid tag.

我想使这个造型的20%与透明色以上code。结果
我应该怎么做呢?

I want to make this shape 20% transparent with above color code.
How should i do that?

推荐答案

如果颜色再以十六进制psented $ P $,如#424242,然后在这个数字前增加了两个数字将重新present的透明度,例如:#66424242。 (在本实施例66)结果,
你可以玩了一下,直到预期的效果到达。

If the color is represented in hexadecimal, like #424242, then adding two more digits in front of this "number" will represent the transparency, ex: #66424242. (66 in this example)
You can play a bit until arrive at desired effect.

这篇关于如何使任何HTML颜色code半透明[Android版]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆