Questions tagged [android-listview]

a subclass of AdapterView which shows items in a vertically scrolling list.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

How to Create a seperate and custom ScrollBar with Up and Down Button

Currently I am developing one Android application which works in Android automotive OS. In which I want to show the list of items in RecyclerView. But to scroll the RecyclerView Items I need to have a ...
-1 votes
0 answers
33 views

Why are my list view items not visible in android studio?

This code below is an Activity file. And the code below that is a CustomAdapter of BaseAdapter file package com.example.ascentacademy_quiz_app; import androidx.annotation.Nullable; import androidx....
  • 41
0 votes
0 answers
25 views

The Android list widget that refreshes every second, after being placed in the background for a period of time, it will flash when it is reopened

enter image description here Related question: Android widget with list view is refreshing items with ugly short "flashing" effect This guy had the same problem as me, and the code was ...
0 votes
1 answer
20 views

How to click on a button inside list element of a ListView?

So I have recyclerview here, and I want to delete a specific element by clicking on that element's delete button (here, the trash icon is the image button). How do I do it?
  • 41
0 votes
0 answers
14 views

ListView content not displaying after switching to another fragment

I have navigation drawer used to navigate through my application. When I switch to fragment with ViewPagers containing three ListViews, everything is displayed normally. The problem appears when I ...
2 votes
1 answer
44 views

How to submit ListView checkbox values using a footer button?

I have a ListView which is bound to some data I have in the viewmodel. In the ListView, each row is a check box and the name of a symptom (e.g. coughing). At the end of the ListView, in the footer, I ...
0 votes
1 answer
148 views

.Net Maui ListView is not appearing in Android

The problem is that listview header and content is not appearing on my android device and android emulator, so please what is the fix for that? <?xml version="1.0" encoding="utf-8&...
0 votes
0 answers
24 views

How to Create a Chronological Feed from a List in Android

I have a list called listObjects that is continually updated through actions in an activity in my app, new items are added every .1 second or so. I'm looking to publish a sequential feed of all the ...
  • 165
1 vote
1 answer
59 views

Cannot capture listview itemselected

I'm trying to capture the item clicked on in a listview. Everything I've seen here deals with Xamarin Forms, I am NOT using Xamarin Forms. I build my listview and display it fine, but I cannot ...
0 votes
1 answer
27 views

Listview not clickable when adding an ImageButton (android - xml)

I have a layout for a listview item. I added an ImageButton to the layout, as follows: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://...
0 votes
0 answers
32 views

Print list view from Array Adapter in Android Studio

I'm trying to print a return statement (exercises) to a list view so that I can see it on the screen. When I use the listView.setAdapter(adapter) code, there is an error that Cannot resolve symbol ...
0 votes
4 answers
47 views

List<StudentModel> studentDetails = []; here StudentModel is class in flutter and i don't know how this line of code work

class StudentModel { final String name; final String age; StudentModel({required this.name, required this.age}); } this is StudentModel class I didn't understand how the values will store in this ...
0 votes
0 answers
31 views

How to clip ListView items' ripple effect to the ListView's parent, when that parent has rounded corners?

I've created a PopupWindow with a rounded background, like this: val popupWindow = PopupWindow(requireContext()) val roundedBackground = ResourcesCompat.getDrawable(resources, R.drawable....
  • 15
0 votes
0 answers
21 views

How make more than one EditText as a single List item of ListView in android in Java?

I want to add ListView item Dynamically on user choice. In the every ListView Item, I want to show more than two editText. I mean, if user enter one for example, there will be shown one listView Item ...
0 votes
0 answers
42 views

A ListView in a ViewPager2 does not refresh when updated offscreen and re-displayed

I've noticed this issue crop up in a few projects recently so I've made a simple example project which duplicates the problem (on my device, a samsung galaxy tab active2). The code is at: https://...
  • 7,751
0 votes
0 answers
17 views

When i change fragment, my Listview hold the items but my spinner inside the items get resetted

I'm new to kotlin and to android, I'm writing an app that has a fragment that contains a ListView (the LV's items have 2 spinner inside) and another fragment that send data to populate the ListView (...
0 votes
0 answers
36 views

How to choose a category in food ordering app which opens that particular section?

I'm making a food ordering application on java using Android Studio IDE. I have designed my application in a way that it has a section called categories in which I have implemented a recyclerView to ...
0 votes
1 answer
20 views

Textview data is not being updated when called inside from function in ListView Adapter

Textview data is not being updated when called inside from function in ListView Adapter. Please help in setting binding.tvQ.text class CustomPizzaListAdapter (private val context: Context, private val ...
1 vote
0 answers
39 views

Value of RatingBar getting changed dynamically on scroll

I'm displaying a list of food orders using a RecyclerView. Each view item has a RatingBar, so client can submit rating for the order. Problem: When client scrolls down and goes back up, the value of ...
  • 138
0 votes
0 answers
32 views

Retrieving data from listview multiple checkbox

Here's what im trying to do now. There will be a button on the activity page called btnSearch. When i click onto it, a dialog box will pop up that will inflate the xml called SearchDialog for multiple ...
0 votes
1 answer
18 views

Listview-android total not reflecting correctly when item in removed from listview

Whenever items from listview are added or deducted the total should be updated. When I add items from listview the grand total is correct but when items are deslected the price of the product shd be ...
  • 241
0 votes
1 answer
26 views

Android hide listview by clicking outside of it

I want to collapse or hide the listview on click of anywhere on the screen. The code is partially working. Whenever I click in the top and bottom section of the screen listview is hidden but if I ...
  • 241
1 vote
1 answer
86 views

How to make notification OnItemchange when a new item is displayed in the list

i made an app using java and retrofit2 to fetch datas from the server.My listview can only display 30 item. when a new item is displayed in the listView the last one is removed automatically and the ...
0 votes
0 answers
23 views

googlemap shows two markers rather than one

on mapReady, i want only one marker with its address. but it shows two markers. i do not understand why. i have all address list that i will display on the marker for each locations and positions. the ...
0 votes
0 answers
25 views

How to update a ListView Item on Click event?

I would like to change the text of a ListView Item that the user has selected and display the updated text as soon as the user clicks on the Item. I'm making the update on both my TextView as well as ...
  • 99
0 votes
0 answers
33 views

How to Dismiss the created Alert in listview item button click in Xamarin.android

AlertDialog.Builder alert = new AlertDialog.Builder(m_context); View layout = m_context.LayoutInflater.Inflate(Resource.Layout.editLabelPopupLayout, null); alert.SetView(layout)...
0 votes
0 answers
19 views

How to set Background color to alternate rows in a ListView?

I'm trying to set a Background color for alternate items in my ListView. I'm doing the following in my Custom ArrayAdapter class: override fun getView(position: Int, convertView: View?, parent: ...
  • 99
0 votes
0 answers
137 views

Android SearchView setOnQueryTextListener not working on Fragment in Kotlin

I have a fragment which has a listview displaying a list of strings and a searchbar widget in order to search for any string in the list. I tried calling the setOnQuertTextListener function as follows ...
0 votes
1 answer
69 views

Android TV ListView does not return to previously selected item

enter image description hereI am trying to get ListView returning to the previously selected item. I have a screen split in two parts, where on the left part is a ListView and on the right part is ...
0 votes
0 answers
12 views

Listview not navigable on physical device

my listview (e.g. Widget.Material.Light.ListView.DropDown) is on the emulator only navigable by arrow keys on the physical device not at all navigable How can i change a setting to overcome this ...
0 votes
1 answer
19 views

Calling a remove method from custom adapter always deletes last item in ListView

When I want to delete a specific item from my ListView with custom adapter my last item always gets deleted and if I create a new item dynamically, it still contains the previous Spinner value. This ...
0 votes
0 answers
17 views

Crashes when scrolling fast in fileslist android studio

I'm building a video player app, when I scroll fast my video list in any folder app crashes and goest to MainActivity (Previous activity) where folderList my code is posted below. please anyone know ...
0 votes
0 answers
60 views

Scaling Header ScrollView (Listview)

I am developing profile screen using Compose UI, it has sticky scaling avatar as header base on scrolling position of the below list, the avatar will be scaled up/down when the first item of the list ...
  • 1,406
0 votes
0 answers
104 views

ANDROID - How do I refresh a listview inside a widget?

I am building an android app with eclipse and I have a widget that displays a listview that has a button in each for for capturing row item and saving to sqlite db. I am trying to figure out how to ...
0 votes
0 answers
38 views

how to set default view on android demo app [mlkit vision-quickstart for android]

I'm trying to make the following modifications to the vision quickstart demo app: remove Java/Kotlin selection window (middle), defaulting to Java open directly into Chooser Activity (right) What I'...
  • 13
0 votes
1 answer
37 views

Reduce ListView height when there are fewer items

I have ListView to be used in the app widget. The list view has a fixed height of some 140 dp to accommodate 3 items, now when there is only one item to show, there is space left below the item. I ...
  • 1,025
0 votes
0 answers
22 views

How not updated listview and viewpager on scroll?

When i click button, scroll listview my button always set button visibility undo. In viewpager when i scroll views with videos they always reset loading video. How i can disable this? code adapter ...
0 votes
1 answer
36 views

When I click on search view the list view appear on the my layout and the layout design in the scrollview in android studio

When I click on search view the list view appear on my layout and the layout design in the scrollview in Android Studio. What should I do to make it so that list view run on the scrollview layout? (I ...
0 votes
1 answer
133 views

Xamarin Entry inside ListView

I have a problem with the Entry inside a ListView. The error returned is that the Entry does not have the Focus assigned. Inside my ListView I have Labels when clicking triggers the Tap event, in this ...
  • 2,156
0 votes
1 answer
46 views

ListView is full ,But It gives a Null Pointer Exception While trying to change Backround Color

I have a list view which is made from strings. There are two items in it. // System.out.println("X->"+listView.getLastVisiblePosition()+"Y->"+listView.getFirstVisiblePosition(...
  • 27
0 votes
0 answers
19 views

Android notifyDataSetChanged behave differently

I have two different applications, that update a list in both cases. App1 addButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { ...
  • 524
1 vote
1 answer
235 views

Android Studio Add item in list view from a second Activity

So actually when you have first Activity you can add something and in the second Activity there is a listView which gets the item added. In my case I want to push an add button, then a second Activity ...
0 votes
0 answers
39 views

How to detect touch on empty ListView

I have an empty listView and I want to detect when user click on this empty listView, but I cannot figure out how to do this a good way. setOnClickListener is not supported for ListView and ...
  • 33
0 votes
0 answers
161 views

How to make ListView to scroll horizontally in android studio?

I have a Listview and array of data which will shows in Listview vertically. But I want to make that Listview to scroll horizontally. How to do that. xml <ListView android:id="@+id/...
-3 votes
2 answers
127 views

How to send a data from listview screen to form screen using flutter

I am trying to send a data from ontap listview screen to form screen like image below. I have searched many references on google but I can't find any references that can help me, if you can provide ...
0 votes
0 answers
34 views

Android: List of items(String, CustomDataClasses) scrolls down when radio button is clicked

I have a list of Strings that I populated that within a RecyclerView inside a ViewPager2. Scrolling down to extreme bottom of the list as in image 1 and clicking on radioButton, the list scrolls down ...
2 votes
2 answers
732 views

FLUTTER+SQL: display Data from Database in ListViewBuilder

Im using MS SQL and I want to read data and display it in a ListViewBuilder, but Im having some difficulties. I dont know how to find itemCount (biggest problem) I dont know how to display Data in ...
  • 39
0 votes
1 answer
57 views

How to get value of a clicked item of a listview of a fragment in model view fragment of android, using java

I have a model view fragment which is having a list view and a textview. What I am wanting, is, whenever an item of the list view is clicked, its clicked item will be shown in the textview. The ...
0 votes
1 answer
40 views

How to get the selected CardView in a ListView?

I have a ListView of CardViews. As you can see in the picture below, my cards have a vertical ImageView on the edge with gray default background. I want to change the color of that ImageView's ...
0 votes
0 answers
54 views

Searching In ArrayAdapter using getFilter() not working properly

I have an ArrayList<String> which contains items like bye.hello ... com.something ... blabla.what in a listview and when I search for (something) (for example) It does not show me anything , ...

1
2 3 4 5
312