android-listview Questions

5

If you set the selectability of a preference item to false, you will notice that the dividers around that item will disappear. Do you know if there is a way to keep those dividers? I have looked at...
Bridgetbridgetown asked 26/8, 2013 at 13:37

4

I need to create listview like in this picture. The listview item go over each other like google chrome tabs.. I can move up or down listview item... Could anyone tell me a good advice or tell me e...
Kalgan asked 4/7, 2013 at 7:27

3

Solved

I'm displaying a list of contacts (name + picture) using the ListView. In order to make the initial load fast, I only load the names first, and defer picture loading. Now, whenever my background th...
Washedup asked 28/10, 2013 at 12:47

3

Solved

I am trying to set a OnCheckedChangeListener to a CheckBox but my application exits in the run time. I also tried to set listeners for my TextView and I still get the same result. Can anyone help? ...
Manriquez asked 7/4, 2012 at 18:50

2

Solved

I am using following code to create a Dialog aleart box with lists item from studentNames ArrayList.I am creating this ArrayList by reading childfile array.But when this code runs it just display a...
Ghetto asked 17/10, 2012 at 14:43

3

I want to add some animation to my ListView with SimpleCursorAdapter when my DB data changes. I am using SimpleCursorAdapter with LoaderManager I tried to add animation in getView method @Override...
Bronze asked 11/11, 2014 at 8:27

4

I need to find the height of android ListView with custom ListVAdapter. Each of ListView items can be of varying height. I have tried the following code which I found here: public static void setL...
Pergolesi asked 11/12, 2012 at 5:49

2

Scope: I am using a ViewPager inside a fragment(Schedule Fragment) which in turn shows 5 instances of a same fragment(ScheduleListSubFragment) containing different data in respective ListViews. An...

3

Solved

In each ListView item I have EditText. When I set android:focusable="false" for EditText then onItemClick on the ListView item is working, but EditText doesn't get cursor when I click inside. If ...
Clasping asked 23/8, 2012 at 10:49

5

Solved

I try to show something into listview using arraylist and simple adapter. I tried something like below but in my result shows the last names of the arraylist. What is my wrong i cant understand. f...
Andes asked 5/9, 2013 at 6:2

6

Solved

I add a ListView on runtime like this: MainMenue = getResources().getStringArray(R.array.Unit); // remove all controls LinearLayout formLayout = (LinearLayout)findViewById(R.id.submenue); for...
Stoker asked 3/6, 2012 at 9:27

9

Solved

I know there are a lot of similar questions out here but I couldn't get any of the provided solutions working in a simple sample app. The problem occurs when the softkeyboard is shown for the firs...

2

Solved

The xml is as follow. I want to implement the function like this: when I click the edittext, the soft input show. when I scroll(not scroll to OnScrollListener.SCROLL_STATE_IDLE state) the listvi...
Ingratiate asked 5/1, 2015 at 6:53

6

Solved

How to disable the particular list item in list-view in android? I mean if once i selected any one of item from a list-view,that item suppose to be disabled which means that item should not be sele...
Uproarious asked 29/7, 2013 at 8:19

11

Solved

My ListFragment code public class ItemFragment extends ListFragment { private DatabaseHandler dbHelper; private static final String TITLE = "Items"; private static final String LOG_TAG = "deb...
Gaptoothed asked 24/1, 2013 at 13:54

4

Solved

In my application I have a Touchlistener for my ListView. With the TouchListener I'm able to get the X and Y coordinates from the touch event. Now I want to get the clicked item from the ListView. ...
Thamos asked 29/6, 2013 at 19:51

2

I have a ListView which has an OnItemClickListener. On top of that, each row (CardView) has an OnTouchListener in order to implement a swiping gesture. The OnTouchListener reacts to ACTION_DOWN, A...

5

Solved

I am using a ripple effect on my navigation drawer. I have set it like this and applied it to my ListView: <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item and...

5

Solved

fairly new Android developer here. I've come across a strange problem that I'm not sure how to work around. I've read a lot of problems around here that sound like they are the same problem I am h...
Syllabogram asked 15/3, 2012 at 0:43

3

Solved

I have a custom ListView with my own adapter. I'm handling the click on a Button in my ListView's item, and I want the ListView to become invisible on this click. I have no idea how to get access ...
Turne asked 6/6, 2012 at 8:25

2

Solved

I defined a ripple drawable and set it as the background for the listview item view's background. It almost works fine but the ripple effect just sometimes does not show up upon press. Here is the...
Plummer asked 13/12, 2014 at 7:26

9

Solved

I have a custom ViewSwitcher in which I implemented touch events so I am able to scroll through screens using the touchscreen. My layout hierarchy looks like this: <ViewSwitcher> <Line...
Kook asked 16/6, 2011 at 15:40

4

Solved

I have a ListView with set CHOICE_MODE_MULTIPLE. I also have additional header to manage (un)selecting all the items. The question is : is it correct way to do that? Well it works, however I'm not ...
Stelu asked 2/2, 2011 at 15:11

7

I have a list of events which are seperated by month and year (Jun 2010, Jul 2010 etc.) I want to enable fast scrolling because the list is really long. How do I enable fast scroll on ListViews i...
Untinged asked 21/2, 2012 at 9:13

5

Solved

I have a list adaptor that i'm trying to set a custom xml for (item.xml) if i dont use inflation (direct identifying the textview through an application context), it works perfectly.. but then my l...
Maw asked 15/7, 2012 at 14:23

© 2022 - 2024 — McMap. All rights reserved.