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
0 answers

Failure getting entry for in package 0

I try to design an interface on Android. I create a custom adapter which has textview and switch..When I run the program, it gives a warning which is below. 11-22 16:37:33.492: W/ResourceType(31712): Failure getting entry for 0x010802c8 (t=7 e=712)…
aysbtl_
  • 339
  • 1
  • 3
  • 18
2
votes
3 answers

How Android Custom Adapter works?

I'am trying to use a custom listView in my application and i have some questions about its working principles.When i implemented a custom adapter,how its methods(especially the getView method)work without calling them from any other class ?
Tartar
  • 5,149
  • 16
  • 63
  • 104
2
votes
4 answers

Android - delete a row from list view on button click

i am creating an application in which data is got from a barcode scanner which identifies from an id, and show detail from the database through a web service. i am currently using custom list which has a text view and a button, the data which i want…
Ozi
  • 57
  • 1
  • 1
  • 6
2
votes
3 answers

Checkbox state change in activity

I am trying to change the state of a CheckBox (which is being placed inside a ListView with a custom Adapter) from the activity. Is that even possible? I am trying to get the View of the CheckBox using it's tag but it is returning null. …
ClaireG
  • 1,244
  • 2
  • 11
  • 23
2
votes
2 answers

Using hashMaps in custom adapters for listView

The following is the code that I am currently using for a listView: private class Asyncprojectlist extends AsyncTask{ JSONArray JSar; JSONObject JSob; String project_title, project_sector; @Override …
Rakeeb Rajbhandari
  • 5,043
  • 6
  • 43
  • 74
2
votes
2 answers

Use CustomAdapter to change how ListView is displayed

My XML that I would like to use for custom adapter:
Si8
  • 9,141
  • 22
  • 109
  • 221
2
votes
3 answers

search a value from sqlite database and retrieve in listview

How to find the exact data in sqlite database and retrieve it in a listactivity? I tried like this but I didn't get the value. search = (EditText) findViewById(R.id.alertsearch); search.addTextChangedListener(new TextWatcher(){ @Override …
ajey
  • 466
  • 3
  • 7
  • 19
2
votes
2 answers

edit typface on customListAdapter

I have to change the typeface on a custom list adapter. I've a problem, because i can't get the current context. getassets() not exist for the class getApplicationcontext() not exist for the class getBaseContext() not exist for the class i'm…
Lele
  • 703
  • 3
  • 15
  • 34
2
votes
2 answers

not able to populate list from json android

I am trying to populate list object from an api. This is one method jsonresult. protected void onPostExecute(String result) { JSONArray con; //String tag_name="tests"; //String tag_id="ID"; …
Ron
  • 89
  • 8
2
votes
2 answers

Customized ListView with TextView, TextView, RadioGroup in Android

I'm developing an application with ListView for Student Marklist creation. In this application, the List have 10 students. There are four grades provided for the exam which was conducted to those Students. One student can adapt only one grade from…
2
votes
1 answer

How to change layout of only selected listview row with in onitemclicklistener of listview

I need to create ListView like Samsung Contact List. And I need to show custom layout for that row while that row is swiped. And also need to show contact detail at background of that row. Please give me some ideas or reference. Thank…
SathishKumar
  • 1,644
  • 1
  • 14
  • 28
2
votes
0 answers

capturing touch events without consuming them

I've got a big headache and spent a few hours to solve my problem withou any reasonable results. I use a custom adapter (extending ArrayAdapter) to show listview items. This adapter implements OnTouchListener. There's also a background selector…
peterp
  • 171
  • 1
  • 1
  • 9
2
votes
1 answer

Listening to Click on ListView with a Custom Adapter

I am developing an Android app, which retrieves some images from the internet and put them on a ListView. When one of the images is clicked, another activity is created with some details about the image. The problem is that I am not being able to…
rlc
  • 5,809
  • 5
  • 38
  • 46
2
votes
4 answers

android listview with custom adapter freezes activity

I want to do something similar to the EditContact activity (add various numbers to contact with a simple add button). My first approach was to create custom layouts which I dynamically add to the activitie layout ( Activity with dynamicly added…
float
  • 1,265
  • 5
  • 22
  • 38
2
votes
2 answers

Android Media Player cannot play multiple audio files

I have created a list view which contains a list of images defined by the ImageView tag. When the user clicks on each image in the list view I would like to play the audio associated with that image. With the code I have below when I click on the…