Skip to content

Instantly share code, notes, and snippets.

@CreatorB
Created February 4, 2015 13:13
Show Gist options
  • Save CreatorB/ec30111c4015a9dc5d01 to your computer and use it in GitHub Desktop.
Save CreatorB/ec30111c4015a9dc5d01 to your computer and use it in GitHub Desktop.
How to Create Android Transparent Background Color
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#000000" >
<Button
android:id="@+id/transparantButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="creatorb"
android:background="#00ffffff"
android:textColor="#FFFFFF"
android:textStyle="bold" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment