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
-1
votes
1 answer

Unable to start component activity Component Info Null Pointer Exception

I'm not sure how to find the line number in the Logcat output. Also, with this latest Android Studio version, the regular logcat doesn't work, so I have to start the Android Device Monitor to get a look at it. And I can only snag a png, so sincere…
-1
votes
1 answer

Loading in Android ListView stucked like forever

I'm new to android programming and I'm practicing in making a Facebook app. I got this ListView and which i will be using to display some information i got from facebook. But the problem is when the Listview starts to load the datas its stucked in…
d0tzz
  • 25
  • 7
-1
votes
1 answer

Can someone tell me why this Android Code doesn't work?

I am trying to make a custom listview with Textview and checkbox the list will be made such that the user adds an item to the list by writing it on a custom dialog box. My code is as follows: package ayush.lists; import…
-1
votes
1 answer

Call a function after completion of Loading the Custom Adapter in Listview

And the ListView if the default ListView Whose Id is android:id="@android:id/list" And here is the code that i use to set Adapter getListView().setAdapter(mAdapter); I want to call a method after this Adapter is fully loaded.
Amit Sharma
  • 91
  • 1
  • 1
  • 5
-1
votes
1 answer

OnItemClick doesn't work with custom adapter

I have a ListView with Custom Adapter. I have seen this thread where people asked if the items in the custom view had a clickable item. And Yes, I have a clickable ImageView in the listrow. So clicking anywhere else(other than that ImageView) should…
Seshu Vinay
  • 13,560
  • 9
  • 60
  • 109
-1
votes
2 answers

how to get value of item in Gridview using custom Adapter

I have a custom adapter for GridView Adapter I want to get an specific value from the selected Item such as "stamp ID" I was developing this to display only the stamps long time ago and now I want to be able to click on one stamp to send him to…
Ahmad Saleh
  • 879
  • 2
  • 10
  • 20
-1
votes
1 answer

Indenting ListView items Android

I am trying to indent listView row by certain factor. For this, I used view.layout() and view.setX() method but they don't work or result in forceclose. Is there a way to achieve this result. Here is my code: @Override public View getView(int…
Naruto
  • 1,710
  • 7
  • 28
  • 39
-1
votes
1 answer

resource not found error in android app

I am getting a resource not found issue in an app I am playing with, the id does exist in the view, and the correct view is being used. I have deleted the R file and regenerated but that hasn't helped. It compiles and appears the resource is found…
collusionbdbh
  • 701
  • 1
  • 6
  • 18
-1
votes
1 answer

Comparing the dates in a custom Adapter class (Null Pointer Exception)?

I have a custom adapter. I try to compare the current date and the entered date in it. But ı got null pointer exception. I can't figure out why is the reason of this exception. My LogCat is below and the line with the problem is that "((ViewGroup)…
cgbs
  • 83
  • 3
  • 13
-1
votes
3 answers

Null Pointer Exception in Custom Adapter While Setting the Colors of Listview Rows

I want to implement a to-do list application. I have three activities: one main activity, one adding activity and one editing activity. In my main activity there is a add button and a listview that shows the to-do items. When I click add button,…
cgbs
  • 83
  • 3
  • 13
-1
votes
1 answer

how to set list item to fullscreen in single activity android?

Actually I have bunch of images and I am passing those images to my custom array adapter to be present in a list view, I am getting a wonderful presentation of images in list view. But what I want is to show one image to be appear in full screen in…
Sagar Shah
  • 4,272
  • 2
  • 25
  • 36
-1
votes
3 answers

My Android-App doesn't Display ListView with custom Adapter

i'm writing an android app that should fetch song data from a parse.com database and display it with a custom Listview. I tried it the way Nitin suggested but still dont get any listview displayed. Here is the new code: package de.android; import…
Paul Lich
  • 174
  • 2
  • 14
-1
votes
1 answer

How to create a Custom Adapter for List Items that have buttons etc. *SIMPLE WAY*

I came across a number of these which answered the question but didn't exactly structure the classes in a matter I found expandable, a lot of the time it would override functions especially as I was using an SimpleCursorAdapter rather than a…
Peter Fox
  • 1,809
  • 2
  • 20
  • 34
-1
votes
1 answer

listview checkbox with on checkchangelistner

I have seen many examples but none is according to my problem...in my case i have a custom listview with custom adapter the checkboxex are primarily hidden and when option menu button is clicked the checkboxes get visible and the focusability is…
Raja Babar
  • 53
  • 3
  • 11
-1
votes
1 answer

Listview Custom Adapter

I'm using SimpleCursorAdapter to retrieve data from a SQLite database and using a custom layout and a listview to display two strings from the database. Now I have two questions: Do I have to create a custom adapter if I want to display a star in…