skip to Main Content

I have a linear view in front of some buttons with a background and my problem is that I can still click the buttons on the back of the view even though I can’t see them. is there a way I can make the view "solid" so I won’t be able to click through its background/borders?

2

Answers


  1. Chosen as BEST ANSWER

    Solved! I just made the view clickable thus making it "solid" and stopping anyone from clicking stuff behind it


  2. I am not sure why you are not just deleting the buttons but one way you can go about it is disenabling the buttons from your java file using

    myButton.setEnabled(false);

    or in your xml file using:

        <Button
    android:enabled="false"
    />
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search