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

  • Home
  • SEARCH
  • 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 8888813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:06:55+00:00 2026-06-14T22:06:55+00:00

I have a relativelayout within a scrollview with 12 buttons. On each button clicked

  • 0

I have a relativelayout within a scrollview with 12 buttons. On each button clicked an image displays all works well, however i can see the image in the background but still have all the button on top of the image. Is there a way of hiding these buttons? I don’t really want to use a sliding drawer but if i have to i will. Thanks in advance

Okay so this is my class:

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE); 
    this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); 
    setContentView(R.layout.campfacilities);
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
    final ImageView imageView = (ImageView) findViewById(R.id.img1);

    Button next = (Button) findViewById(R.id.aimage);

 next.setOnClickListener(new View.OnClickListener() {
                public void onClick(View view) {
                imageView.setImageDrawable(getResources().getDrawable(R.drawable.image1));
            }

        });

How would i then implement the

button.setVisibility(View.GONE);
  • 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-06-14T22:06:56+00:00Added an answer on June 14, 2026 at 10:06 pm

    You can simply set the buttons visibility gone like this

    button.setVisibility(View.GONE);
    

    and to show that button again

    button.setVisibility(View.VISIBLE);
    

    Thanks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a relativelayout with 30 buttons within a scrollview. What I would like
I have a RelativeLayout within a ScrollView , I am trying to move the
I have a dialog with this content: <RelativeLayout android:layout_width=wrap_content android:layout_height=wrap_content > <ScrollView android:layout_width=fill_parent android:layout_height=wrap_content
I have a RelativeLayout and in this RelativeLayout there are 4 Button s. Outside
I want to have left and right buttons on my views within the ViewPager.
I have a TextView and 3 Buttons centered in a RelativeLayout , and the
Im hiding a button from within a handler (This is after i have made
I have a RelativeLayout completely created within java, not using xml layout. I have
I have a RelativeLayout containing a pair of side-by-side buttons, which I want to
I have 2 LinearLayouts and a button within a relative layout. They should look

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.