android-制作透明按钮

来源:互联网 发布:sqlserver删除唯一约束 编辑:程序博客网 时间:2024/05/16 06:11

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

原创粉丝点击