【发布时间】:2014-07-18 14:29:36
【问题描述】:
您好,我正在制作一个 android 应用程序,我需要在 LinearLayout 上放置一个透明视图。在截图中看到写“04”的视图是透明的,但不完全。任何想法让这个视图透明一些颜色。
我用圆角制作了LinearLayout,并设置了颜色。
<LinearLayout
android:id="@+id/thirdLinearLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/secondRelativeLayout"
android:background="@drawable/clock_check_in_rounded_drawable"
android:orientation="horizontal" >
</LinearLayout>
clock_check_in_rounded_drawable.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="@color/cyan_text_color" />
<corners android:radius="10dp" />
</shape>
【问题讨论】:
-
看亚伦的答案transperancy