All Questions
Tagged with visibility listview
19
questions with no upvoted or accepted answers
1
vote
1
answer
64
views
ListView: setvisibility() forces refreshing all the rows
I have a ListView with rows with different layouts. So I'm using the pattern of ViewHolder.
If the user clicks on a row, one sub-layout of the same row must be shown/hidden.
viewHolder.btn1....
1
vote
1
answer
128
views
Android gridview adapter called on visibility change
I set a VISIBLE gridView to be INVISIBLE and its adapter is called again (using a ViewHolder class), even though there is no use for that, and there is no call for notifyDataSetChanged...
I logged in ...
1
vote
0
answers
249
views
Android View setVisibilty(View.Gone) is not working on Lollipop
I have a hearder_view which is header of a main list view. My header_view, contains another list view and textview(s) in it.
When user taps on header_view, I am setting the visibility of header_view'...
1
vote
1
answer
601
views
Updating a single row in a listview to show a hidden textview
I am trying to update a single row (two textviews) in a listview by changing the visibility of the second textview from "gone" to "visible".
Here is the XML for the custom layout:
<LinearLayout ...
0
votes
1
answer
241
views
How to change the item color and do some action when the item of the listview is visible in the viewport in flutter?
I have generated a list of items by using for loop and then add those items in listview in the tabbarview.
In the listView, there are items (containers) and when that particular item is seen fully in ...
0
votes
1
answer
155
views
setting the visibility to gone if a listitem is empty
I have a problem that I've tried to resolve for some time with the tips I've found from googling on this issue.
My SimpleAdapter looks like this:
@Override
protected void onPostExecute(Void ...
0
votes
0
answers
163
views
Empty view not showing for Listview
in my android app I have the following layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" ...
0
votes
1
answer
56
views
child in listview list item becomes null p.e. when view recycled
Button views visibility is supposed to change onClick, but when view recycled, the said view comes up null. Seems to be when state of following item visibility is different than its previous in list. ...
0
votes
0
answers
36
views
setVisibility of checkbox inside list fails after accessing textview in main activity
In my OnItemLongClick , I need to set my visibility of checkbox from GONE to VISIBLE.
bookList.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
@Override
...
0
votes
0
answers
807
views
Visibility of element within ListView not working correctly
I have a ListView, bound to an ObservableCollection, with a template that contains views that are made visible/invisible through user interaction. However, the visibility switching does not work as ...
0
votes
1
answer
2k
views
setVisibility(View.Gone) work but the view still own the space
I make a CustomAdapter extends BaseAdapter.In it's getView() method , I use ViewHolder. And I set a clickListener with a TextView to set a view (call it A)gone and another view (call it B)visible , ...
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'...
0
votes
2
answers
984
views
ListView making textview visible on going out of screen visibility
I have a listview which contains custom layout having 2 textviews (TV1 and TV2) and 1 button. The button is to set the visibility of the textview(TV2) to be VISIBLE or GONE. The button is working fine....
0
votes
3
answers
1k
views
change listview's button visibility in an activity
I have a ListView which has a button inside its each rows, I declare the Button inside my ListView adapter, this Button is invisible but I need to change the Button view to visible for some cases.
as ...
0
votes
1
answer
127
views
Error in getView() when I focus an EditText
In my ListView I have many rows, each with a TextView and a Button. If I click on the TextView, this two Views are made invisible(GONE) and I show an EditText and another Button. This last Button ...