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
4
votes
2 answers

Chris Banes PullToRefreshListView with Custom Adapter Error

I'm Settings up a Custom ListView. The pull-to-refresh feature comes straight from https://github.com/chrisbanes/Android-PullToRefresh The ListView displayes Images, so i created a custom Adapter: class mAdapter extends BaseAdapter{ public…
4
votes
2 answers

How to Refresh Custom Adapter List instantly in Android?

I am trying to get a list title, What I want is when I type in Edittext on home page then add into list after clicking on Ok button. Right now I don't know where to put my refresh method that I am calling from customAdapter class on Homepage…
Shweta
  • 1,145
  • 5
  • 18
  • 35
4
votes
2 answers

Change Gridview item visibility

I have a Gridview and Custom adapter. in my adapter, i have a static ViewHolder instance. static class ViewHolder { TextView _model,tPrice,pPrice; ImageView picture; } This is my ViewHolder. When the user clicked a button in the fragment, I…
Twinsens
  • 417
  • 6
  • 23
4
votes
1 answer

Pull to refresh and load in listview

I need to implement pull to refresh and load in listview.I have used custom adapter to create the listview.How could i implement pull to refresh and load using the adapter class. Could anybody help me?
user2134412
4
votes
1 answer

Android ListView Issues in Android 2.X

I have created a Custom Array Adapter to populate the List View and when the Activity Loads the List View text Disappears. PlacesListAdapter.java public class PlacesListAdapter extends ArrayAdapter implements Filterable { public…
4
votes
2 answers

Getting Custom List Adapter to properly inflate multiple linear layouts

I'm a little new to android and am trying to figure out these custom list adapter. So I have an activity that extends BaseListActivity and a function like: public void inflate(){ ArrayList words = new ArrayList(); …
pat
  • 1,005
  • 4
  • 12
  • 29
3
votes
1 answer

Android ArrayAdapter tell all other views to refresh themselves

I need all of the other views in my arrayadapter to check their attributes and return to a default attribute at certain times use case: listview items (a)(b)(c)(d) , when you touch (a) it's background turns black. This is done in the…
CQM
  • 42,592
  • 75
  • 224
  • 366
3
votes
2 answers

How to change color and font on ListView after reading firebase DB

How to handle the problem of showing empty view for ListView because I don't know which data I have to put when I'm reading data from my firebase DB and display it in the ListView. and I'm using CustomListAdapter to change font color and the…
MB_Coder
  • 765
  • 1
  • 7
  • 14
3
votes
3 answers

Android ListView with Custom Adapter shows only last item

I am using a ListView to show some data that comes from a JSON. The JSON has 3 objects. I am using a Custom Adapter for the list view. Here is the layout of list view
Sriman
  • 788
  • 9
  • 25
3
votes
0 answers

Why is performFiltering() called twice in custom AutocompleteTextview adapter

I created a custom AutoCompleteTextView adapter. The first time performFiltering() is called, it filters the results and returns an instance of FilterResults (with the correct values). The PublishResults() method is called afterward by the system,…
John Ward
  • 910
  • 2
  • 10
  • 21
3
votes
3 answers

Java - Create reference to two models in a custom adapter

I have two models called Buyer and Car, and a custom layout called custom_row to display the rows of a ListView. public class CustomAdapter extends BaseAdapter { Context c; ArrayList buyers; public CustomAdapter(Context c,…
Lorek Bryanson
  • 195
  • 1
  • 7
  • 22
3
votes
2 answers

android Unable to get all editext values using in listview inside custom dialog

I have one listview inside the Custom Dialog. In that list i have one Text field and one Edittext for each row. I am using editTextWatcher for handling all edittext values on exact position. Up to this working fine. I have one save button on that…
Preet Jay
  • 309
  • 4
  • 8
3
votes
3 answers

How to customize an adapter in Android?

I am making a simple Android app that takes the name, email and contact number of a user and saves these (including an id) in the phone's memory (via sqlite). A "Show All" page displays the details of all the user in the database in a ListView using…
h8pathak
  • 1,342
  • 3
  • 17
  • 29
3
votes
0 answers

Fast search through custom base adapter

I have a list and want to perform fast search in that list through custom base adapter. followed this link but this is not for base adapter. fast Search android As I cannot override set adapter method in my custom base adapter. I just want like this…
3
votes
1 answer

CustomAdapter not displaying the arraylist items in the list

I am just fiddling around and trying to parse the JSON data from sample url into my app.After parsing i want to display item on a list .I am using custom adapter.List is showing up empty with no data inside.But debugging shows i am getting data…
user3847870
  • 368
  • 1
  • 6
  • 21