【发布时间】:2015-07-20 19:58:28
【问题描述】:
我有一个 custom_row.xml,它将使用 BaseAdapter 成为 ListView 的一部分
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
android:background="anyBackgroundColor(#HexValue)">
inner content has text view of white color
</RelativeLayout>
在将 alpha 属性应用于 RelativeLayout 后,文本颜色变得有点暗。
我不希望文本变得模糊,并且在我的背景颜色(不是图像)上实现透明。 我们如何才能做到这一点?
【问题讨论】:
标签: android colors transparency alpha