1. jessPHP's Avatar
    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:

    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!!
    11-02-2013 01:44 PM
  2. angieibarrar's Avatar
    I have the same problem, you found solution?
    05-06-2015 09:29 AM

Similar Threads

  1. Samsung S-View Flip Cover is horrible.
    By AldousSnow in forum Samsung Galaxy Note 3
    Replies: 150
    Last Post: 09-06-2016, 04:05 AM
  2. Replies: 1
    Last Post: 11-07-2013, 06:29 PM
  3. Send texts without network to another cell-phone?
    By Tallguy52 in forum Android Apps
    Replies: 1
    Last Post: 11-01-2013, 12:23 PM
  4. Where does htc one downloads album covers?
    By lachdanan in forum HTC One M7
    Replies: 3
    Last Post: 10-30-2013, 05:40 AM
LINK TO POST COPIED TO CLIPBOARD