Hi everyone!
I want a layout with alpha=0.5 to cover another layout with a button. However I am still able to click the button of the covered layout, although the other layout is in the front.
Why??
This is the xml layout:
thank you very much!!
I want a layout with alpha=0.5 to cover another layout with a button. However I am still able to click the button of the covered layout, although the other layout is in the front.
Why??
This is the xml layout:
Code:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="6" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="search_main"
android:text="search" /> <!-- I can click this button -->
</RelativeLayout>
<RelativeLayout
android:id="@+id/layoutLoader"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:alpha="0.6"
android:background="#000000" >
<ProgressBar
android:id="@+id/progressBarBusqueda"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginBottom="10dp"
android:layout_marginTop="10dp" >
</ProgressBar>
</RelativeLayout>
</RelativeLayout>
thank you very much!!