Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Android Spinner Semi Transparent Background
I want to make a spinner where I can partially see the screen behind it. Similar to the "Select Department" spinner on the Instacart android app. I have tried many different alpha values but it just changes the background color instead of changing the opacity.
Instacart Example: http://imgur.com/7VGi3XK
Here is my code:
<RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/spinnerBackground" android:background="#1AFFFFFF" > <Spinner android:layout_width="match_parent" android:layout_height="50dp" android:id="@+id/currentStoreCategorySpinner" android:prompt="@string/category_spinner_prompt" android:layout_alignParentTop="true" android:layout_alignParentStart="true" /> </RelativeLayout>