Questions tagged [custom-adapter]

A custom-adapter is an interface which provides the ability to define non-standard iterators for specific data representations.

A custom-adapter is often used to integrate custom data structures with a view in an MVC framework.

References

990 questions
2
votes
2 answers

Custom Adapter for ListView

I'm trying to make a customized ListView, that should display a note title and the time and date the note was created, each in separate TextView, while each Note title also colored by the color value stored in the DB. So I created a custom adapter…
Igal
  • 5,833
  • 20
  • 74
  • 132
2
votes
1 answer

getView showing wrong images in a custom adapter?

I have a list with a custom adapter and a custom row. The problem is that when I scroll the listview, the images are at the wrong positions... Here is the custom row xml:
Omar
  • 7,835
  • 14
  • 62
  • 108
2
votes
2 answers

Unable to get id of a view in bindview override of cursoradapter

I am using custom adapter that extends CursorAdapter for displaying data in listview. To display particular phone number, I want an id so I try to get it on a click event. I have set the click listener in bind method as…
user181291
  • 719
  • 1
  • 5
  • 7
1
vote
1 answer

Error in wrapping a custom adapter around cwac-endless adapter

I'm using a custom adapter and wrapping it around the cwac-endless adapter. The problem is that the wrapping condition is being ignored and the method inside the cacheInBackground() is being called infinitely. I'm attaching the concerned code.Please…
Dinesh Venkata
  • 1,087
  • 1
  • 9
  • 22
1
vote
1 answer

How can I use a custom adapter with the cwac-endless adapter?

I want to add the endless adapter functionality to my custom adapter. How can I use this combination? Thank you.
Dinesh
  • 181
  • 1
  • 3
  • 17
1
vote
2 answers

Custom adapter: get item number of clicked item in inflated listview

I have a custom baseadapter which does some lazy loading of some images, and then inflating the layout so I end up with a listview where I have both image and text in one row. When the user presses one item of the listview, say for example item 0…
gosr
  • 4,593
  • 9
  • 46
  • 82
1
vote
2 answers

Application force close, when trying to set one TextView on customListAdapter

I want to set text in TexView, actually i store number in array list but,it always force close. so, i try just set manually though, it still force close. I have no idea why others textview able to set but, amountStr cannot be set. Thanks you in…
April Smith
  • 1,810
  • 2
  • 28
  • 52
1
vote
1 answer

ListView ArrayAdapter filtering - duplicate items

I trying to filter listview with custom adapter. When I start typing on edittext the list view should be filtered. Below is the code of adapter. The custom object has overridden method toString which return the name of the facebook user. I didn't…
user738686
  • 147
  • 2
  • 12
1
vote
2 answers

Sometimes my icons in my list view are not showing

My problem is that I have implemented a custom arrayadapter, that fetches images from an url and sets them to an imageview. It works, sort of. Sometimes some of the images are not showing up. Somtimes it's only one image, somtimes it's three and in…
1
vote
2 answers

empty view on ListActivity not working

I'm pulling my hair out trying to figure this out. From all the tutorials I've read, the way I have this setup should work. I have a ListActivity that is using a custom adapter to display some data. I'd like to display a "no items found" message…
Kris B
  • 3,436
  • 9
  • 64
  • 106
1
vote
2 answers

How to automatically update ListView with custom adapter when item is deleted from database

I created a ListView for which I implemented a custom adapter. Additionally I connected it to a SQLite database, which contains the content for the ListView. I have one ListView with several items. Every item consists of a TextView and an ImageView…
Nicole
  • 13
  • 2
1
vote
2 answers

Android set elements of listview cell WITHOUT custom listview adapter

I want to do something like mylistview.setElementsofView(0).getElementById.setColor("black"); currently the only way I know of doing this is setting up a custom list view adapter, setting up constructors, do conditional checks to see if view is…
CQM
  • 42,592
  • 75
  • 224
  • 366
1
vote
3 answers

What happens if my RecyclerView adapter is reinitialized several times?

I have some recycler view code in a function that gets called several times as bluetooth devices are scanned. My code is working but I am wondering what unseen effects are occurring from having my recycler view initialization code in a function that…
1
vote
1 answer

Changing Layout file on custom adapter depending on activity (Android)

I want to change the layout file that is used depending on which activity is running. I have two activities which need a grid view and both are very similar so I thought I should be able to use the same adapter. The only thing that needs changing is…
1
vote
0 answers

Custom listview adapter with textview, checkbox and image button

I just want the existing functions to be retained, but also to save the CheckboxStatus. row: