安卓开发alpha的用法
alpha:透明度,在
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#FF000000"
>
android:id="@+id/textview0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#CC0033"
android:alpha="0.4"
android:text="第一个"
/>
android:id="@+id/textview1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textview0"
android:background="#CC0033"
android:alpha="0.1"
android:text="第二个"/>
android:id="@+id/textview2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/textview1"
android:background="#CC0033"
android:alpha="1"
android:text="第三个"/>
试验结果截图:
在Android Studio中通过试验的处结论。
原文:https://www.cnblogs.com/weijia-home/p/14771983.html