android-listview Questions

7

Solved

I ran my app on a Nexus 5 (Android 5) but I encountered the problem that the soft NavigationBar at the bottom overlaps the last item of my ListView. I've tried to add fitsSystemWindows to my style ...
Rosiorosita asked 31/12, 2014 at 15:52

14

The following error occurs when I attempt to inflate a layout within a ListView: requestLayout() improperly called by android.widget.TextView{...} during layout: running second layout pass I am ...
Wilcher asked 6/7, 2014 at 18:28

11

Solved

Please am trying to implement a filter on my listview. But whenever the text change, the list disappears.Please Help Here are my code. The adapter class. package com.talagbe.schymn; import java.ut...
Ginelle asked 15/7, 2014 at 22:29

6

Solved

I'm trying (in vain) to add margins to my ListView items. I have tried adding margin values to my RelativeLayout below but no matter what I do all I seem to get is a 1px line between each item. Wh...
Metsky asked 11/3, 2013 at 15:30

12

Solved

I know, this question was asked before, but I haven't seen a working answer for it. Is there any way to hide some items in a ListView without changing source data? I tried to set visibility of th...
Prevision asked 18/2, 2011 at 12:53

5

Solved

I have a list view with two text view and one edit text in each row , list view setOnItemClickListener() is not working. Here My Java Code. public class CreateChallan extends Activity { ListVie...
Troy asked 28/3, 2014 at 6:31

4

Friends, I want to find all available WiFi networks and display them in a list I have tried as below. But it's not working. I have edited my code, and now I got the result but with all the result t...
Kiloliter asked 11/9, 2013 at 12:19

12

I have searched more on websites and got many suggestions like below Changing background with custom style to set the corner radius and padding ( Getting image as rectangle and background as roun...
Ultramicroscope asked 28/7, 2015 at 11:48

8

Solved

I want my screen to be scrollable so I put everything in a Listview. Now I want to show another Listview inside to show details of a List. When I try this an error is thrown - " Expanded widgets m...
Reims asked 25/11, 2018 at 7:5

26

Solved

How to refresh an Android ListView after adding/deleting dynamic data?
Annaleeannaliese asked 12/2, 2010 at 9:31

10

Solved

A ListView in my application has many string elements like name, experience, date of joining, etc. I just want to make name bold. All the string elements will be in a single TextView. my XML: &lt...
Moraceous asked 11/6, 2012 at 12:9

7

Is there anyway to prevent double tap on ListView in Android? I found this when i accidentally tapped item on ListView and it opened up two new window. is there any way to prevent it from opening a...
Dillon asked 10/2, 2014 at 20:27

14

Solved

I have this ListView that just needs to show data. So I don't want to make it clickable. First I've tried changing XML listview to: <ListView android:layout_width="match_parent" android:layo...
Lustihood asked 30/7, 2013 at 11:14

3

Solved

I'm trying to make the listrows in my ListView Widget clickable by using the setOnClickFillInIntent method but whenever I click a ListItem nothing happends. Here are some key parts of my code: Int...

18

Solved

In Android applications such as Twitter (official app), when you encounter a ListView, you can pull it down (and it will bounce back when released) to refresh the content. I wonder what is the bes...
Purdy asked 3/1, 2011 at 9:51

7

Solved

I've got a problem. Before modification in my XML file, my listview was able to work perfectly. But now, after some modifications in xml, its not working properly. My listview is custom. So, i've c...
Loveland asked 15/2, 2013 at 8:53

8

Solved

I am developing an application,In my application,I am using Listview for displaying data using dom parsing,I want to footer in listview,when i click footer additional more data add to list view,I a...
Fayre asked 24/11, 2010 at 9:29

6

Solved

I am developing an app for android TV. I have a listview with an ImageButton + Textviews as children. As TV does not take touch events but uses D-PAD or trackball remote I have to get focus on all ...
Limey asked 6/3, 2013 at 14:15

1

What I want is for every update I make in the firebase database to be reflected in the app too without completely restarting it I previously used notifyDataStateChange in an app that contains a rec...

21

Solved

My Cardview inside Listview is not showing shadow in Android L(Nexus 5). Also the round edges are not properly shown. Here is the code for Listview's Adapter View : <?xml version="1.0" encoding...

6

Solved

I have a number of elements in a ListView that scroll off the screen. I would like there to be blank space at the end of the View. That is, the user should be able to scroll past the last element...
Sauers asked 13/11, 2012 at 18:11

4

Solved

I'm having some troubles while trying to remove an item from the list view on long click. Below is the code: public class MListViewActivity extends ListActivity { private ListView lv; private Str...
Perry asked 15/1, 2013 at 15:5

23

Solved

I am downloading a JSON string and converting it to JSONArray. Im putting it into a listview and need to be able to delete from that listview later, and since JSONArray has no .remove method (Thank...
Doited asked 11/6, 2013 at 5:54

2

Solved

i want to have json file from my sqlite and save it in asset.myJson.json. following is my codes,i want to see result in myJson.json. please help me how to import data to myJson.json. private JSONA...
Stylography asked 10/12, 2013 at 6:38

16

Solved

I've got a view that is effectively is a button. Here is its XML layout (add_new.xml) <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/re...
Improvisator asked 6/9, 2012 at 14:17

© 2022 - 2024 — McMap. All rights reserved.