Find the answer to your Linux question:
Results 1 to 5 of 5
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2009
    Posts
    104

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

  2. #2
    Just Joined! mrbruno's Avatar
    Join Date
    Jan 2013
    Location
    /MilkyWay/Sol/Earth/USA/NC/Raleigh
    Posts
    66
    I don't think you posted to the correct forum. Or even the correct website!! This is for script programming issues on Unix - not for Android app development!

  3. #3
    Linux Newbie
    Join Date
    Nov 2009
    Posts
    104
    If you take a look at “Programming / Scripting it states “Request help withC/C++, Perl, PHP, Python, Ruby, Bash Scripts or other Linux programming related issues”

    Do you know Android is an operating system based on the Linux Kernel??

  4. #4
    Just Joined! mrbruno's Avatar
    Join Date
    Jan 2013
    Location
    /MilkyWay/Sol/Earth/USA/NC/Raleigh
    Posts
    66
    Quote Originally Posted by jesusitoLinux View Post
    If you take a look at “Programming / Scripting it states “Request help withC/C++, Perl, PHP, Python, Ruby, Bash Scripts or other Linux programming related issues”

    Do you know Android is an operating system based on the Linux Kernel??
    Indeed! My point is that there are much more appropriate forums such as ones dedicated to ANDROID APP DEVELOPMENT.

  5. #5
    Linux Newbie
    Join Date
    Nov 2009
    Posts
    104
    Quote Originally Posted by mrbruno View Post
    Indeed! I don't think you posted to the correct forum .
    I do think this is a correct forum to post my question.

    I agree with you in that there are plenty of forums dedicated to Android, but I post in this forum because here people have helped me much better than others, and is my favorite forum.

    Please, before giving advice take a look at this:

    http://www.linuxforums.org/forum/lin...ums-rules.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •