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
vote
3 answers

Can't scroll ListView inside ListView in Android

While trying to create news feed in my app, I've created custom ListView Adapter. My single ListView item has an ImageView, WebView and ListView. So I have a ListView inside a ListView. The problem is, when I try to scroll the inner ListView, the…
B. Hurray
  • 382
  • 4
  • 16
1
vote
1 answer

Android custom listadapter always deleting the last item

Good day, I am trying to refresh my knowledge in android programming by creating a simple memo app with custom adapter list. My problem is, even I call "NotifyDataSetChanged();", the value deleted in my list is always the last one. Though when I…
MaChee Neraid
  • 603
  • 1
  • 7
  • 17
1
vote
1 answer

Android- Google places api autocomplete with recycler view?

I am new to Android and trying to develop an app which has a map feature along with places auto complete.I am using google places Api to make my own custom autocomplete with a Recycler view. Everything's working fine except the Recycler view…
1
vote
1 answer

Fragment crash by set adapter with getActivity

I do not understand something about fragments. When i set a adapter with getActivity() or getContext().getApplicationContext() and i start the app, the app crashes. my test project (without fragments with the same code) works. Fragment: public class…
1
vote
1 answer

Dynamic type of arraylist and custom adapter

I have similar 5 class. Each class "Code" , "Name" property. I use custom adapter for list them and I want to use 1 adapter for all. Is this possible ? I jam in there : holder.txtCode.setText(list.get(position).getCode() ????); …
Nazli
  • 13
  • 3
1
vote
5 answers

Random Color for each row in a list view from array of colors

I am setting the background color for each row in my customadapter as public View getView(int position, View convertView, ViewGroup parent) { if (inflater == null) inflater = (LayoutInflater) activity …
Shiva Acharjee
  • 183
  • 7
  • 21
1
vote
2 answers

Custom Adapter starts before ArrayList is ready

I'm making a list of links and for that I have made a custom adapter, but the list is not ready when the adapter starts so I get the following error: java.lang.RuntimeException: Unable to start activity ComponentInfo{}:…
TWOcvfan
  • 388
  • 1
  • 3
  • 19
1
vote
2 answers

notifyDataSetChanged is not working for Thread

I am fetching messages from the server and storing in local db by using Service. I need to create new Thread for volley response if I won't do so the UI lags so much but the listview is updating. Now after creating new Thread the UI is not lagging…
1
vote
2 answers

How can I add this custom info window in google maps app instead of the default one?

This is code. I have created a custom adapter for info window that should replace the default one. I've set the map to custom adapter but it's still showing the old one. I'm a beginner in java. So it would be helpful to know how to modify the code…
Nobody
  • 397
  • 1
  • 5
  • 25
1
vote
3 answers

android studio: how to update data of a list View made using custom Adapter

I have a list view made using custom Adapter & contains 2 text view in each row, I want to update data of rows , when I long pressed on row.
ulti72
  • 79
  • 1
  • 9
1
vote
0 answers

Expandable Listview - Checking CheckBox in group and child

I am in developing an expandable listview with checkbox in group and child. My Goal is when checkbox in group is checked, so the checkbox in child is checked too. But now I have problem: if the checkbox in group is checked, the child will be checked…
flo
  • 51
  • 5
1
vote
1 answer

Show slight tint overlay on Custom Adapter On Long Click

I have a customer adapter which is used to displays a list of items. I want to show a light white colored tint over the whole custom adapter whenever the user long clicks an item to give a sense of selection (I also plan to place an image over it…
1
vote
1 answer

Passing image Id to custom listview adapter

How can I pass an Image resource Id to my custom adapter? I have a check box in an activity called routedetails . When the checkbox is checked I want to display a check mark next to that item in the listview. But to do this I need to pass the…
zsh5032
  • 141
  • 1
  • 10
1
vote
2 answers

Recyclerview inside a Scrollview not calling the Custom Adapter Function (onBindViewHolder)

While scrolling the page, onBindViewHolder() is not calling. mAdapter.notifyDataSetChanged() is not updating the data correctly because of Scrollview. I checked only 3 Checkbox in Recycler. After the loading of 2nd set of data and calling the…
Abish R
  • 1,537
  • 3
  • 18
  • 36
1
vote
0 answers

ShareDaialog in listview in customadapter

every element in the listview contains name image and description there is a share button on every item on listview that share through facebook i`m using this code in getview function and it give me error in this what should i suppose to use instead…
user23
  • 26
  • 7