All Questions
Tagged with android android-listview
15,038
questions
0
votes
1
answer
49
views
Disable ViewCell long press loading animation on Android .Net Maui
I want to disable the loading animation shown on an Android native ViewCell when the user long presses it. I was able to disable the highlighting of the ViewCell on click by implementing the following ...
0
votes
0
answers
10
views
Dirty item view being used twice in my custom implementation of BaseAdapter
In my custom implementation of BaseAdapter I have views being hidden and overwritten on the basis of their position. One such condition is based on the last element(The ID will always be -1):
if(...
0
votes
2
answers
47
views
updating listview when data is removed from the arrayadapter
Im creating a listView and setting a custom arrayAdapter to it in my main activity. Using an onClickListener within the getView method of the adapter to try and remove the item clicked. Its being ...
2
votes
0
answers
35
views
ListView Items Not Displaying but Responding to Clicks in Fragment
I am using Android Studio with Java to develop an application that includes an activity containing a fragment (let's call it PromotionsFragment). In this fragment, I have implemented a sticky headers ...
0
votes
0
answers
23
views
How to properly implement a ListView inside a RecyclerView?
In each RecyclerView element, only the first ListView element is displayed.
I'm making an application for passing tests. There may be a different number of answers to each question. There will be an ...
0
votes
3
answers
38
views
java android listview setOnLongClickListener
To function long click, the override function is changed and there are only out of date references.
I am also use click listner.
but the onLongClick override funcion don't have position variable.
Can ...
0
votes
0
answers
21
views
Saving contents of a listview as files
I want to make a notepad type application.
I'm using a ListView linked to an ArrayAdapter to display a String array where you can add or delete notes and it does just that.
To save the contents of the ...
-1
votes
1
answer
43
views
listview not showing in dialog (JAVA, Android)
I'm trying to show a dialog to the user with a list in it. It won't show up on the dialog no matter what I try.
CODE:
this is in TaskInputActivity where I create the dialog and the adapter for the ...
1
vote
1
answer
34
views
Listview - Getting error while linking the items correctly in Android Java
I have linked properly the List-Adapter and the other list-item components.
It didn't getting the android:id of activity_main_cake_items.xml and giving this error.
Cannot resolve symbol 'listviewCakes'...
0
votes
1
answer
55
views
Android Material 3 Light theme LIstView items text hidden
I am learning Android here. My aim is to display the Cursor I get from calling SQLiteDatabase.query() in a ListView. Using a ContentProvider. I cannot see the text of the list items although I am ...
0
votes
0
answers
19
views
AppWidget Listview Items with weird height after setting layout_width and height as "match_parent" or "wrap_content"
Currently, I'm trying to create a collection widget using listview with every item equal to the width and height of the 3x2 widget displayed on the screen. The items looked fine when I inputted the ...
0
votes
0
answers
14
views
Android unable to get the position of filtered listview
i am having an error getting the exact position of my listview after i filter my adapter.
my activity oncreate is.
@Override
protected void onCreate(Bundle savedInstanceState) {
super....
1
vote
1
answer
58
views
Android Studio - Java - Difficulty Highlighting ListView Item Background Color
Introduction:
I am encountering an issue with highlighting the background color of ListView items in my Android application. Despite my attempts to modify the background color programmatically, the ...
0
votes
1
answer
24
views
Android component to impelent a listview with tabbed headers
Is there any standard Android material view that is the best fit for the implementation of such a layout?
In this layout, I mean to have a tab group on top when one of them is touched/clicked then ...
0
votes
1
answer
48
views
Retrofit API call returning NULL data
I am calling an API using retrofit and the it is returning null.
Model class
data class Employee(
val id: Int,
val employee_name: String,
val employee_salary: Int,
val employee_age: ...