android-listview Questions

4

Solved

I've created a ListView populated by the data returned from a query. It works, but in the LogCat I've got the message: Cursor Window: Window is full: requested allocation 444 bytes, free space 363...
Central asked 20/11, 2013 at 11:16

8

Solved

I am creating a list of cards to display using the RecyclerView, where each card has a button to remove that card from the list. When i use notifyItemRemoved() to remove the card in the RecyclerVi...
Analisaanalise asked 28/1, 2015 at 10:2

12

Can somebody please give me an example code of removing all ListView items and replacing with new items? I tried replacing the adapter items without success. My code is populateList(){ results ...
Hovel asked 1/4, 2010 at 6:44

10

I have a layout consists of a Parent RecyclerView with a sub Recyclerview in it i know that it is not good to put a list inside another list but i have to so that i can use the sub list features l...
Utoaztecan asked 13/5, 2015 at 18:10

9

Solved

I'm currently developing a physics app that is supposed to show a list of formulas and even solve some of them (the only problem is the ListView) This is my main layout <?xml version=&quot...
Platypus asked 13/11, 2013 at 4:38

3

Solved

I'm trying to make a simple listView with string objects only inside dialog; the problem is the list item is not width match_parent as i set: the list view is the root element: <?xml version...
Supplication asked 24/7, 2015 at 11:57

8

Solved

I've got a method in which i have a list of values: /** * ISO * */ public void getISO(View view) { // Open dialog with radio buttons List<String> supported_isos = preview.getSupportedI...
Parks asked 11/9, 2015 at 10:5

8

I'm creating a list of editable items (received from backend). I'm using the "new" recyclerview for this. There a couple of possible viewTypes in my recyclerview: checkbox spinner edittext The...

13

I have set mButton.setClickable(false); in my code but still this button is invoked by global button.setOnClickListener of my code. EDIT: sorry for the delayed update. Below is the details view w...

9

I have two listviews, but they don't scroll. How do I correct this? Here is my layout.xml <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/...
Piercy asked 3/12, 2012 at 8:34

6

Solved

I am trying to implement an endless scroll listview but when I call notifyDataSetChanged() the whole list refreshes then the scroll position goes back to the top. Is this the normal behavior? how ...
Immensurable asked 17/7, 2013 at 9:6

3

Solved

I'm trying to display JSON results in a textview (that resides within a listview). One of the Results is a URL which has to be displayed as "View results". I'm using the following code to display t...
Glim asked 21/2, 2012 at 15:37

3

Solved

Eg:- I want to go through the methods which are in ListActivity class. In Eclipse when we right click the particular class then in some options we can see all the methods of that class. How can I...
Herdsman asked 16/11, 2015 at 10:1

6

Solved

I've found loads of different ways of accomplishing this but I'm not sure what's the best for my scenario. This is my Java code for the listview: ListView lv; lv = (ListView) findViewById(R.id.fa...
Ricketts asked 19/9, 2013 at 14:4

11

Solved

I am using a RecyclerView and fetching objects from an API in batches of ten. For pagination, I use EndlessRecyclerOnScrollListener. It's all working properly. Now all that's left is to add a prog...

0

I use this code to update the listview of my project but i get duplicates by using the listview.invalidateViews(); method. Also i tried the notifyDataSetChanged method by calling it from the custom...
Tolan asked 27/3, 2021 at 2:12

5

Solved

Im new on android please help me to auto hide after scrolling the listview here is my code but could not get right solution xml file : <ListView android:id="@+id/offline_list" android:layou...
Coffey asked 28/5, 2014 at 5:1

5

Solved

I want to write a ListView in basic format but I get an error: UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView and: androidview.LayoutInfalater.inflat...
Ranchman asked 20/2, 2013 at 11:5

26

Solved

I've searched around for solutions to this problem, and the only answer I can find seems to be "don't put a ListView into a ScrollView". I have yet to see any real explanation for why though. The o...
Consensual asked 16/8, 2010 at 18:0

13

In an ExpandableListView, is there a way to hide the group indicator for groups with no children?
Tasker asked 10/11, 2010 at 13:45

5

Solved

from an answer to one of my other questions I found an Google Demo of a ListView subclass that allows item reorder. The demo works great, but I am having some trouble to understand how the it wor...
Daube asked 19/6, 2014 at 8:40

8

Solved

In my Android project, I have a ListView with rows containing SwitchCompat items (AppCompat for Switch widget). My problem occurs when I scroll into the list and getView(...) method of MyAdapter i...
Cauthen asked 26/11, 2014 at 0:20

6

<TextView android:id="@android:id/empty" style="@style/FacebookFont" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:t...
Turnkey asked 11/4, 2013 at 13:18

5

Solved

I'm trying to put together a shopping list app, based on input fields, ArrayList, and ListView. The app will be based on Fragments. However, I have encountered a problem and I do not know how to so...

4

I have a simple selector for my ListView <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@draw...
Warwickshire asked 10/2, 2012 at 1:30

© 2022 - 2024 — McMap. All rights reserved.