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

All Questions

0 votes
1 answer
174 views

FliCard and ListView A strange visibility bug in Android

I am trying to implement a FlipCard behavior in a ListView for my items and the bug is that my convertView don't update its visibility state according to the visibility I set in the getView method. It'...
Mathias Seguy Android2ee's user avatar
2 votes
2 answers
169 views

How to remove listview dividerHeight after setting view.setVisibility as GONE

I am using ViewHolder pattern and Custom Cursor Adapter. But when i use setVisibility Gone a view, dividerHeight of row not realase space! how can fix it ? thanks
Online98's user avatar
0 votes
1 answer
537 views

Not able to set the visibility of a button inside a listview programmatically

I am trying to set the visibility of a button based on a certain condition in a listview. Context : The listview has parameters for response to a post . It contains title,description etc of the ...
maya's user avatar
  • 159
1 vote
2 answers
1k views

How to display fully visible Items in top of the Listview after scrolling?

how to proceed forward in the listview. i am having listitem consists of 30 items which displaying only images. In visible screen we can able to see minimum 1 1/2 images per screen(ie., one full ...
Ashok's user avatar
  • 839
1 vote
1 answer
760 views

When I Change visibility of a linear layout and add to list all past items visibility will be changed

i have an android program that simulate chat. for it i use a list and items of list are in a XML file named activity_chat_conversation in this layout i have to linear layout that in each of them i ...
Yekta Mghani's user avatar
0 votes
3 answers
1k views

Change visibility of a button on a row in a listview

I'm using a listview with adapter that extends BaseAdapter. Each row in the listview has multiple views, and I want that if the value of a variable is "yes" a picture of the row is visible and if the ...
Sergio76's user avatar
  • 3,946
0 votes
2 answers
704 views

Invisible Delete button of my listview from all rows in android

I am trying to show and hide a delete button in each row of my ListView using a button click. For this, I tried using the code below: SavedHomeBaseAdapter extends BaseAdapter { private ...
Lokesh's user avatar
  • 5,310
0 votes
7 answers
1k views

How to set the visibilty of button in a custom ListView?

I have a custom ListView with a button, so when I click on a button it should disappear and it is disappearing but when I scroll down and come back the button is again appearing and a different button ...
Saad's user avatar
  • 309
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
1 vote
1 answer
7k views

Android: Changing Visibility of an item inside all listview rows

I have a ListView in my application which can, after user requests it, be re-arrangeable via the drag of an imageview at the start of each listview's row. I present the user with the listview in a ...
daniel_c05's user avatar
  • 11.5k
0 votes
2 answers
2k views

Setting all elements in a custom adapter listview to Visible/Invisible

I am trying to make a Button change the visibility of a single ImageButton in all of my Listview Elements. The problem i'm having is finding the right element to access, because i don't have an easy ...
Anders Vedal Pettersen's user avatar
2 votes
3 answers
5k views

Android - Make ImageView Visible When ListItem is selected

I have a listview and each item has a title, some info, and a couple ImageViews I'm using as edit/delete buttons. I don't want to show these "buttons" unless the user selects the row. I can make the ...
Jeff's user avatar
  • 43