Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 1 of 1
  1. Thread Author  Thread Author    #1  

    Default layout covering another layout

    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!!

Similar Threads

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

Posting Permissions