Android中按钮如何设置透明或半透明
Here we are going to see how to make a button transparent in Android...
[sourcecode language="css"]
<Button android:background="@android:color/transparent"
android:text="@+id/Button01"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ffffff" />
[/sourcecode]
By using android:background="@android:color/transparent" the button background will become transparent
The corresponding output will look like