android-listview Questions

4

Solved

I have a listView with a custom adapter. When something happens (a click in a child) I do some calculation things and modify the child View. IF some condition has been fulfilled then other child un...
Phthalocyanine asked 25/4, 2012 at 15:31

5

private class getArticles extends AsyncTask<Void, Void, Void> { String url; getArticles(String paramUrl) { this.url = paramUrl; } @Override protected void onPreExecute() { super.o...
Mallissa asked 7/9, 2015 at 19:17

1

Solved

I'm trying to remix the base Android advice for adding items to a ListView in a Xamarin application, but so far I'm failing. In Xamarin Studio, I've created an Android App targeting Latest and Gre...
3d asked 14/9, 2015 at 14:21

2

Solved

The following code for setting custom fonts slows down my whole app. how do i modify it to avoid memory leaks and increase the speed and manage memory well? public class FontTextView extends TextV...

4

Solved

I want to disable the Selector from my ListView. That's when I click any items there will be no indication that it has been clicked. I tried this in my ListView tag: android:listSelector="@null" a...
Liris asked 9/7, 2011 at 7:22

3

Solved

So I have a ListView with an empty list catch in the XML. It works fine. I set the TextView on the ID to be the empty list for different cases, so I need to be able to programatically change that t...
Ottie asked 9/7, 2011 at 12:11

3

Solved

I create one Listview, in my Listview I have two Buttons and one Edittext. In my Edittext I want to increase the value of Edittext as per Button's click. I followed so many tutorials, but still it'...
Garrygarson asked 28/8, 2015 at 5:53

3

Background Suppose I have these elements in the activity: actionbar (actually a Toolbar) tabs (using TabLayout ) ViewPager, with fragments. each fragment has ListVIew/RecyclerView. I wish to h...

3

Solved

I'm using loader in my ListView fragment, and it's getting recreated on pressing "back" button. Can you tell me how to handle this senario? Here is my ListView fragment code. Here I have a boolean...

5

The image below shows the height of the rows are not same. I want the rows to have the same height. In my program I'm getting the data from the XML service which I parsed and displays the result o...
Runofthemine asked 30/4, 2012 at 7:5

3

Solved

I've a custom adapter for my ListView I want to add project names as the headers to my work requests. Adding a single header works just fine but I'm not sure how to add multiple headers using addHe...
Intervenient asked 25/6, 2012 at 20:58

3

Solved

This is a populating a listview on a fragment from a database: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { LinearLayout Layout5 = (Linear...
Ilk asked 15/2, 2012 at 0:42

3

Solved

I am trying to create an activity with a listview and a send message at bottom. The problem is that when the keyboard is shown, instead of pushing the bottom content, is just hiding it. I tried usi...
Cornwall asked 21/4, 2013 at 16:54

3

Solved

I am trying to implement a list with videos like vine or Instagram app. Where they play video plays when list item is shown or fully visible and video pauses when list item gets hided. I am using t...

3

Solved

Update: I created a repository with less code to make it a bit easier to understand. I'm trying to create a widget. I made it like described here: https://mcmap.net/q/606008/-implement-listview-in...

6

Solved

The border displays a default color (that's orange on my Nexus S) while scrolling a ListView to the limit. How to change that color? I really don't know how to explain it. Just look at this pictur...
Spiderwort asked 15/10, 2011 at 12:23

0

Both ListView (or AbsListView to be precise) and RecyclerView call setFocusableInTouchMode(true) in their constructors. In my understanding (based partially off this ancient post by Romain Guy) an...
Molecule asked 2/8, 2015 at 0:36

5

Solved

This is my listview click event: lv1.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> a, View v, int position, long id) { Object o = l...
Fairground asked 12/12, 2013 at 11:6

1

Solved

Short version: Is there a way to make a newly created view receive DragEvents of an already running drag-and-drop operation? There's How to register a DragEvent while already inside one and hav...
Oared asked 23/4, 2015 at 13:56

3

Solved

I need to set visible all these three items 1. ActionBar 2. ListView 3. EditText (at Bottom) When i click on EditText, it pushed the background image and squeezed it. i saw some tutorials and us...
Anabiosis asked 17/6, 2014 at 7:38

1

I have a CustomListView, when I longClick on a row, the layout of that row changes to a different listRow Layout. So far, everything is working, however, the layout of the new view is compressed. H...

4

In my application I have three fragment with ViewPager. one of this fragments i have simple Arraylist as ListView from phones contact list and i'm trying to filter that after typing into edittext. ...
Raper asked 28/6, 2015 at 5:26

1

Solved

I'm trying to get the selected item within my list view to stay highlighted when I select it but for some reason it won't do that the moment the selected item is not in view. E.g. When I select Ite...
Guan asked 15/7, 2015 at 22:10

3

Solved

I managed to figure out how to create a custom shape (with a dashed stroke) by creating a file called dash.xml inside of the /app/res/drawable/ folder: <?xml version="1.0" encoding="utf-8"?>...
Parturient asked 8/11, 2010 at 0:35

2

Solved

I've created custom dialog and want to bind it to my list item. I want this dialog to behave like context menu when long click on list item. In other words, I don't want this dialog to appear in t...
Lissotrichous asked 13/7, 2015 at 5:8

© 2022 - 2024 — McMap. All rights reserved.