Reputation: 633
I have my main home screen, but after it loads I want to display an overlaid wheel selector that will go away once a choice is made. Everything has gone well so far except that the submit button for the wheel selector is having some transparency forced upon it.
I've tried android:alpha to force it to be fully opaque but that has not had an effect. Here is the xml layout:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_vertical"
android:textColor="#000000"
android:background="#faff67"
>
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
[ Not relevant? ]
</LinearLayout>
<RelativeLayout android:id="@+id/wheelView" android:background="#CC000000"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:orientation="vertical">
<kankan.wheel.widget.WheelView android:id="@+id/deptWheel"
android:layout_height="110dp"
android:layout_width="wrap_content"
android:layout_weight="1"/>
<Button android:id="@+id/button_selectDept"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:alpha="1"
android:text="Submit"></Button>
</LinearLayout>
</RelativeLayout>
Any ideas for what I'm doing wrong here?
Upvotes: 2
Views: 332
Reputation: 8513
Maybe throw in a background for the button:
android:background="#FFFFFF"
Or change the color alpha:
android:color="#FF000000"
Perhaps both:
android:background="#FFFFFFFF"
Upvotes: 1