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 8901367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:20:12+00:00 2026-06-15T01:20:12+00:00

Hi I am facing problem with the following scenarios 1) I have a common

  • 0

Hi I am facing problem with the following scenarios

1) I have a common header with icons for all the screens..in one of the screen I have a list view ..when I click on the list it fires an intent ,it is a login screen and when i enter the password an icon should appear on the header…what i did is initially i made the icon invisible in layout and below is my login code..

ImageView imgView = (ImageView)findViewById(R.id.image1); 

           btnLogin.setOnClickListener(new OnClickListener() {
                public void onClick(View v) {

                    String password = etPassword.getText().toString();
 if(password.equals("1234")){
                        lblResult.setText("password successful.");
                        imgView.setVisibility(View.VISIBLE);


                    } else {
                        lblResult.setText("wrong password");}

                    finish();}

but its not working..where I am wrong..

2) I have 4 images on header..and i set visibility on and off on middle icon ..when icon is invisible i want the remaining icons side by side ..but now i am getting a blank space between the icons how can i remove that space.
Any suggestions is appreciated.

  • 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-15T01:20:13+00:00Added an answer on June 15, 2026 at 1:20 am
    now i am getting a blank space between the icons how can i remove that space.
    

    View.GONE This view is invisible, and it doesn’t take any space for layout purposes.

    View.INVISIBLE This view is invisible, but it still takes up space for layout purposes.

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

Sidebar

Related Questions

I'm facing the following problem: I have one module in my webapp that needs
Im facing following problem I have created mentioned condition, but when I choose y
I'm facing following problem actually: I'm using Spring with jQuery. I have Controller: @Controller
I am creating a website and am facing the following problem. I have 2
I am learning facelets and Seam and I'm facing the following problem: I have
I am facing the following problem : I have a namespace Exception\* , which
I am facing the following problem. Let's say I have a file, which contains
I am facing the following problem: I have a HTML document where I want
Hi i'm facing the following problem, i have to re-write an existant code to
I am working on CUDA and facing the following problem. I have a following

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.