Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6580431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:01:43+00:00 2026-05-25T16:01:43+00:00

Please read this first. How do I make a button invisible just after click?

  • 0

Please read this first.
How do I make a button invisible just after click?

Now I have created the visible button to vanish after clicking the button.

If i had button 1, button 2, button 3.

Example: I wanted the user to touch the button 3 before button 2 and button 1.
then has to touch button 1 then button 2.

If user touches button 1 first then it will take him to an activity class.

How do i make this happen?
(This is for a game I have under development)

Thank You!

Wahid

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:01:44+00:00Added an answer on May 25, 2026 at 4:01 pm

    You can manage visibility and enablity of button –

        b1.setEnabled(true);
        b2.setEnabled(true);
        b3.setEnabled(true);
        boolean pressed=false;
    
        b3.setOnClickListener(new OnClickListener() {
    
            @Override
            public void onClick(View v) {
    
                pressed=true;
                b1.setVisibility(View.GONE);                
            }
        });
    
        b1.setOnClickListener(new OnClickListener() {
    
            @Override
            public void onClick(View v) {
    
                if(pressed==false)
                {
                    //Start New Activity Here
                }               
            }
        });
    
        b2.setOnClickListener(new OnClickListener() {
    
            @Override
            public void onClick(View v) {
    
                pressed=true;
    
            }
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please read Update1 first! This is SSIS specific question. I have the following tasks:
Introduction first, question at the end. Please read carefully! I have a master-detail relation
Update: Please read this question in the context of design principles, elegance, expression of
I know this might be a no-brainer, but please read on. I also know
I am curious to know why this is happening. Please read the code example
Please read my update at the end of question after reading the answers: I'm
I'm trying to make my first game, a console tetris. I have a class
Background / Disclaimer First of all, please feel free to skip this entirely if
First of all - I have read teens of SO similar questions and other
Please read this entire question before you try to mark this as too controversial.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.