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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:09:13+00:00 2026-06-14T08:09:13+00:00

I have a imageveiw initially it should be in hidden mode, <ImageView android:id=@+id/custom android:layout_width=wrap_content

  • 0

I have a imageveiw initially it should be in hidden mode,

<ImageView
    android:id="@+id/custom"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center_vertical|right"    
    android:src="@drawable/custom1" />

and I created a login page ..whenever my login is successful I should show the image.

  • 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-14T08:09:14+00:00Added an answer on June 14, 2026 at 8:09 am

    Try this

    Your xml

    <ImageView
                android:id="@+id/custom"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical|right"    
                android:src="@drawable/custom1" />
    

    You can set here on xml like this

    android:visibility="visible"
    

    or

    android:visibility="invisible"
    

    or

    android:visibility="gone"
    

    Java program

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

    set your ImageView like this

    imgView .setVisibility(View.VISIBLE);
    
    imgView .setVisibility(View.INVISIBLE);
    
    imgView .setVisibility(View.GONE);
    

    Difference between INVISIBLE and GONE.

    INVISIBLE – The widget will be invisible but space for the widget will be shown.

    GONE – Both space and widget is invisible.

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

Sidebar

Related Questions

I have this ImageView in my layout: <ImageView android:layout_width=fill_parent android:layout_height=wrap_content android:contentDescription=@string/image_divider android:paddingBottom=8dp android:paddingTop=4dp android:scaleType=fitXY
I have an ImageView <ImageView android:id=@+id/auto android:layout_width=wrap_content android:layout_height=wrap_content android:layout_margin=10sp android:src=@drawable/auto /> How can I
I have ImageView declared at xml: ... <ImageView android:id=@+id/image android:layout_width=wrap_content android:layout_height=wrap_content android:maxHeight=60dip android:maxWidth=60dip android:scaleType=centerCrop
In my view i have ImageView.If i click ,it should open nextview. Please help
My layout have ImageView(iv) and TextView(tv). I want to let the tv right of
I have four imageview in sequence on a screen setting with custom background images.
I have a custom ImageView('CustomImageView') and an Edit-text in a linear layout of an
I have a layout(with a background image) containing an imageview and few Textviews. Initially,
I have custom ImageView: public class ShadowedImageView extends ImageView { private Paint mPaint; public
I Have Imageview with Image in my Android app. I want that the point

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.