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

Custom object with Custom Adapter

I am trying to make an app, which will plot my custom value_item layout on the listview with help of custom adapter. My value_item layout consist of 3 textviews aligned horizontally. But when I try to plot the layout in the listview, only the third…
Love Babbar
  • 161
  • 4
  • 12
-1
votes
2 answers

Custom Adapter scroll do not save state of group button of Listview in Android (Status does not save when I scroll down.)

Status does not save when I scroll down. public class OnooltActivity2 extends AppCompatActivity implements View.OnClickListener { ListView simpleList; String[] questions; ArrayList array = new ArrayList(); …
-1
votes
2 answers

Unable to make CustomAdapter work in a Loop using Fragments

I'm trying to fill make the data show in my Listview, however when i click on the fragment there is nothing on the list. I've tried move the setAdapter inside the loop but it did not work. I'm running out of ideas about how to make it work Has…
user6246272
-1
votes
2 answers

Populating a listview with arrayList of custom objects

I've been trying my hand at android for a few weeks now but hit a snag with populating a listview with custom objects. I've tried several tutorials on stack overflow and youtube but when the app is run it crashes at list.setAdapter(adapter). But I…
Ivaldir
  • 185
  • 12
-1
votes
1 answer

Custom Adapter ListView strange behaviour

I want to implement a listview were you can search for items and click on them. Here everything works fine. Now I have some items in the view were I want to set the alpha value to make them look like they cant be clicked. To show the problem I…
J.Ney
  • 201
  • 1
  • 2
  • 11
-1
votes
1 answer

Custom list view, SQLite

So I've got two activities: Main that is adding objects (Image and two Strings) to Custom List and second that is displaying this list. I've got this two classes: public class Activity_4 extends AppCompatActivity { ListView listView; myAdapter…
Charles
  • 1
  • 1
-1
votes
1 answer

How to Switch Activities using a Custom ListView Adapter?

I'm trying to use a Custom ListView Adapter to switch to different activities, but am having trouble doing so, as there is an error that I can't seem to get rid of. Relevant code Category Table: public class CategoryTable extends AppCompatActivity…
-1
votes
1 answer

how to populate custom listview from sqlite database?

I have created an android app in which i have to fetch data from sqlite database and set it on custom listview. Problem is that data is not shown. my code is same as a required for showing output.
-1
votes
2 answers

Android ListView display a single array into 2 columns

I have a single array like ABCD and I want to display it in two columns using ListView like A B C D onClick event should return the position in the array. Rather avoid to use 2 separate ListView. Can someone point me to the right direction?
alberto
  • 115
  • 4
  • 19
-1
votes
2 answers

How do I make my checkbox checked by default in my custom adapter?

In my custom adapter I have an array list of phone numbers, checkedContactsAsArrayList, which I get from my php. In my Android App it looks something like this: [+12345,+23456,+34567] I make a string, contactToCheck, from each value of…
CHarris
  • 2,693
  • 8
  • 45
  • 71
-1
votes
2 answers

ListView Custom ArrayAdapter - Changes textbutton from Button OnClickListener

I want to change textbutton on button onclicklistener but for every 5 row textbutton display same result. I just want change text button for 1 button clicked xml layout childview
-1
votes
2 answers

first and last item of listView are same

I want to display list using custom arrayadapter, the problem is my first and last item are same actually there are four items in my ArrayList but fourth item is not displaying and instead it's showing the first item and sometimes vice versa.here is…
Aashir
  • 11
  • 5
-1
votes
1 answer

listview effecting multiple rows 4th,7th,10th

i have a custom listview and custom adapter. each row has multiple items inside it, when i click on like button it change the color of imageview but it also effect the 4th,7th and 10th row. after searching on internet i learned that i have to use…
Tushar kalsara
  • 59
  • 1
  • 1
  • 5
-1
votes
1 answer

Populate listview along with text and onitemclick intent to new layout containing another listview along with text based on the selection

I need a listview containing cities along with their area count (ie) Bangalore(10) Delhi(5) Mumbai(15) one by one likethis. Onclicking each cities i need a another listview containing those areas along with the count of shops in that area..(ie)…
s.vijay
  • 31
  • 8
-1
votes
1 answer

Loading Pictures from URL to imageviews in a ListView

I have an android Listview with custom adapter. Each item in the listview carries a news picture in an imageview, and the image needs to be loaded using its URL. My code is below. When I run it, I only get the pictures of the first few items. When I…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83