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

ListView.setAdapter Null Pointer exception While adapter.getCount show all records and Listview is also not Null

I have an app which populates ListView with a custom adapter and an overflow menu item in the list. From the MainActivity, the custom adapter is called and it calls a class OnAlbumOverflowSelectedListener which implements onClickListner. In its…
-2
votes
1 answer

Why is my ListView showing in one fragment and not the other?

To summarize, I'm building a social media app that displays: A Newsfeed that shows posts from all user profiles in a given account A Timeline that shows posts from a specific user profile in the account I've built a custom BaseAdapter to populate…
John Mack
  • 95
  • 1
  • 7
-2
votes
1 answer

CustomAdapter not working in a Fragment

Here is my custom adapter. When I use this adapter with listview or gridview in fragment, It shows the list on page but not clickable. I cant use setOnItemClickListener with this adapter. What's wrong this code? please help... public class…
clk
  • 17
  • 3
-2
votes
1 answer

How to display color and font on ListView

How to solve the problem of display the 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 how to fix the problem of mList variable when the data came from firebase DB…
andios
  • 61
  • 9
-2
votes
2 answers

When creating a custom adapter can you only use it for an activity or can I use a fragment?

I am new to xamarin, and I am trying to create a list in a fragment and pass it to my main activity. but i am getting a null when i call my adapter. Here is my onCreateView in my fragment. public override View OnCreateView(LayoutInflater inflater,…
user8425576
-2
votes
1 answer

Android ListView with Custom Adaptor crashing App

I am trying to populate a listview with an icon and a piece of text that is received from a class which has member variables for both of these items. The app crashes each time the list view is revealed in the activity, and I can't see what is wrong…
JDGale8
  • 35
  • 6
-2
votes
1 answer

Removing Last Item From Android ListView Crashes The App

This is the error I am getting: Process: com.painlessshopping.mohamed.findit, PID: 21324 java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.view.ViewGroup.getContext()' on a null object reference …
Yamaha T64312
  • 103
  • 10
-2
votes
3 answers

getView() method of custom adapter never gets called

I've read various SO threads on the topic but none of them seem to apply to my code. I'm trying to populate a fragment with a ListView with my custom NearbyAdapter. However, my getView() method never gets called (as demonstrated by my logs not…
misaochan
  • 890
  • 2
  • 8
  • 25
-2
votes
1 answer

Search View with my custom adapter

i am trying to make a search view with this adapter: public class NotesAdapter extends BaseAdapter implements Filterable { /** * Wrapper para notas. Util para cambiar el fondo de los item seleccionados. */ Paint paint = new Paint(); public static…
-2
votes
2 answers

List View custom row

i have list view with 2 rows, I would like that the first row contains a text and a spinner, and the second row contains a text and an editText...someone can help me with the method getview?
-2
votes
1 answer

Not being able to fetch more than one image from Parse.com over the network

I created custom listview to display three blocks of textviews and an imageview. All of which are fetched from Parse.com. The string data is fetched properly but only one image is getting fetched in a session. Sometimes, no images are fetched. But…
-2
votes
1 answer

displaying sqlite data using customloader and custom adapter

I want to display sqlite data in listview using CustomAdapter. The following link helps in displaying only single item in the list. Please help me to display more than one item in a single row. http://www.phloxblog.in/?p=1890
mayank
  • 3
  • 1
-2
votes
1 answer

How to get Android custom adapter element position

How to retrieve position of an element from a custom adapter based on element name.. I have a cityAdapter that contains city name and id in key value format. I am trying to retrieve position by the following code SpinnerModel model=new…
Debdutta
  • 25
  • 6
-2
votes
3 answers

custom adapter with nine patch images

I am trying to make a chat application in android using xmpp. I am able to do chat with simple array adapter but when i am trying to set custom adapter on the listview then i am getting error in my code. please help me. where i am going wrong. My…
nav123
  • 11
  • 3
-2
votes
3 answers

Create CustomAdapter for listView with different row layouts

I want to add different rows to a ListView. In first row I want to show a textView. In second Two imageViews and third row Single textView. Then a list of text with icon. I know this is possible using custom CustomAdapter. But not understanding how…
user2686960
  • 25
  • 10
1 2 3
65
66