Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
887 views

How to make visible only one listitem at a time in recyclerview?

I am using RecyclerView and it has two TextViews; one for a question and one for an answer. Following is the view for reference. By default, I set the answer TextView to invisible to the user. Now if ...
Nilima 's user avatar
-1 votes
3 answers
431 views

Visibility in an OnClickListener

I have these TextViews on ImageViews. When you click an ImageView, the text on that particular ImageView should appear and the rest of the TextViews on the other ImageViews should disappear. How can I ...
Fishie's user avatar
  • 7
0 votes
2 answers
72 views

ImageButton is not visible after other layout is set to visible on real device

I have an ImageButton which will be moved after it was clicked (onClickListener is implemented) and an LinearLayout which will be set to visible when the ImageButton clicked (also in its onClick ...
Tobias Lukoschek's user avatar
-6 votes
5 answers
159 views

how to validate view visibility on button click listener

I am using this code for validation and only invisibility view is working . mute.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mute = (...
Mohammad Arman's user avatar
0 votes
1 answer
2k views

How to hide and show multiple layouts?

I have 3 relative layouts with visibility set to GONE and 3 buttons. I want that when I press one button to show me a a specific layout and when I press another button to show me a different layout ...
shobo yo's user avatar
5 votes
3 answers
2k views

Android View is still getting OnClick() even by set its visibility to GONE

I know there are few questions regard this issue but all of them are using animation. I have no animation at all in my activity. I have a TextView that by default is visible and is set to Gone based ...
Hesam's user avatar
  • 53.2k
-1 votes
1 answer
179 views

Setting the ImageButton as invisible and retaining it when home/back Button of the phone is pressed or orientation changes is not working?

In my application I have a ImageButton inside an EditText. When the ImageButton is clicked In my application I have a ImageButton inside an EditText. When the ImageButton is clicked I make it ...
user2688158's user avatar
1 vote
1 answer
2k views

In Android Visibility.GONE is set for parent Layout, one Button is in it. Will Click event fire for that button?

Basically I have a screen. There are 3 Overlay screens Say A,B and C. I used fragments. All 3 screen layouts are in fragment and layouts visibility set 'View.GONE' by default. On main screen there is ...
Sanket Patel's user avatar
  • 1,150
0 votes
2 answers
547 views

Child Layout visibility gone on another child layout click event

My parent Linearlayout1 contains two child Frame Layouts: FrameLayout1 and FrameLayout2. The FrameLayout1 is on top of FrameLayout2 but only covers the half of FrameLayout2. I replaced FrameLayout1 ...
sjain's user avatar
  • 23.3k
0 votes
1 answer
872 views

Adding Children to LinearLayout and Setting Visibility

I am having a LinearLayout whose visibility is directly affected by the click of a TextView. This LinearLayout has more TextViews dynamically added inside. My LinearLayout viewQuickLinks starts out ...
buczek's user avatar
  • 2,050
0 votes
2 answers
102 views

Listview visibility

I am trying to make a listview visible when the user clicks on a layout. I have added setOnClickListener to the layout. But when I click the layout, the listview is not visible. Could you please help ...
Vyshakh's user avatar
  • 632
0 votes
1 answer
2k views

Hiding and Showing Tables in android

I have created two tables, one on the left side and one in the center of the screen. When you start the application the table on the left is set to visible and the table in the center is set to ...
user31610's user avatar
0 votes
2 answers
2k views

Error in changing button visibility onClick

I have a button which is called Check, I want it to be invisible and visible as I click each time on it, as If its visible and I clicked it will become invisible and verse vies ! But my code doesn't ...
Android Developer's user avatar