Questions tagged [custom-arrayadapter]

69 questions
0
votes
1 answer

Problem creating custom ArrayAdapter AndroidStudio

I am trying to create a custom ArrayAdapter that filters by "contains" instead of by "startswith". I have seen that there are similar questions, what's more, I made my custom ArrayAdapter out of those posts (like this one AutoCompleteTextView not…
0
votes
1 answer

Delete corresponding Item from Database on click of 'delete' button in ListView from Custom ArrayAdapter in Fragment

I am creating a demo Android app which has a ListView displaying in a fragment. Each List item has a text and a delete button, and the items are stored in SQLite database. I am having trouble understanding how to delete the corresponding item from…
0
votes
1 answer

Is there an error in my getFilter() method?

I am working on a basic android app that manages contacts. I am using a custom adapter and a custom listview. I have a class ContactItem that represents each contact. Every contact of the listview is a ContactItem instance. When I implemented my…
0
votes
1 answer

I have this array class that is not removing items after re-running my recyclerview

The below class is used in an array. package com.example.ShivitoMGO; public class RoomTable { public String RoomName,UpDown,minmaxint; } Main Activity static ArrayList CountCheck = new ArrayList<>(); public void…
0
votes
1 answer

Custom arrayadapter that is of type custom model is returning only one value

I have the following custom array adapter of my custom model - public class ColorAttributeArrayAdapter extends ArrayAdapter { private List titles; private Context context; private…
Alon Shlider
  • 1,187
  • 1
  • 16
  • 46
0
votes
1 answer

custom ArrayAdapter showing only one object

I have the following custom arrayadapter - public class ColorAttributeArrayAdapter extends ArrayAdapter { private List titles; private Context context; private MarketApiCalls…
0
votes
0 answers

implementing onClickListener inside a custom ArrayAdapter for a Spinner view

I have the following custom ArrayAdapter - public class ColorAttributeArrayAdapter extends ArrayAdapter { private List titles; private Context context; private OnAttributeItemClicked listener; private MarketApiCalls…
0
votes
1 answer

How to create a custom ViewHolder to spinner like in a RecyclerView?

I want to create the following-like layout spinner - what I currently have - my code - private MiniProductModel selectedProduct; private Map> selectedProductAttributesMap; . . . . @Override public void…
0
votes
1 answer

While Scrolling the listview in my android app the data is disappearing.I am using the listview inside a Fragment

I am working with a listview inside a fragment of bottomnavigation. Whenever the listview row going outside the Screen it values resets. I have tried to implement Recyclerview.Viewholder in my code its showing some errors and i dont know how to…
0
votes
1 answer

ListItem not responding to clickEvents in ArrayAdapter in Android?

"I was trying to create Toast message when user clicks on Description TextView and Like ImageButton. But the list_item is not responding to touch Events " "I went through many other people answering about changing focus.But none of them are…
0
votes
1 answer

Listview's getView() isn't working properly when using 2 different kinds of listitem

I have a custom Array adapter for a Listview, i am using it for contacts, since i wanted the listview to be more organized i wanted to add a header for the 1st letter of the Contact's name This is my current progress: @NonNull @Override …
0
votes
2 answers

How to handle a custom ArrayAdapter in an Android MVP project?

I have an Android MVP project. I want to keep out any Android references out of the presenter. This way, I can keep UI separated in the Activity/View. There is a ListView in the Activity which uses a custom ArrayList in the adapter (MyAdapter). This…
xlog
  • 103
  • 13
0
votes
1 answer

False colors / no images are set by adapter in layout what to do?

The wrong colors look like you see in the image (in the square) I made an adapter for a custom GridView item but the false colors are shown. I checked already but it passes the right color Integers to the adapter so I think the mistake should be in…
0
votes
2 answers

Android ArrayList search filter changing index when using OnItemCLick

This is a weird problem, almost seems like a bug. So i am using an arraylist and a customlistview that extends ArrayAdapter. arraylist populates the customlistview, i implemented a search box in the actionbar that filters the custom adapter, which…
0
votes
4 answers

Listview show only last item over and over

I am new to android development. I enrolled Udacity course and I get to where I have to use a costume arrayAdapter to display a listView of data (text) I nailed most of it but i have a problem with data displayed which is : when I launch my activity…