Questions tagged [custom-arrayadapter]
69 questions
0
votes
1 answer
Change state of checkbox in listview with custom adapter from code
I have a listview in main activity with a custom adapter class which has a text view and a checkbox in it. I can get the checked items from the code but when I set uncheck all the checkboxes from the code, it wouldn't change on the Android device…

Marie Mirzazade
- 69
- 1
- 8
0
votes
0 answers
Update Arraylist with new record
i want to update a new row automatically when there is new record in database how should i proceed using this custom array list method please help
I am using arraylist.add(some_value)
Thanks in advance

Rob
- 23
- 1
- 8
0
votes
0 answers
Firebase Database + ArrayAdapter Not Updating suddenly in my Android App
I am a newbie and recently learned about the Firebase. Actually, I have ListView + ArrayAdapter, where I am showing the list of Candidate. When I start the app, current user's default data(Image + Name) is entered into the ListView and is showing as…

Yash
- 1,787
- 1
- 22
- 23
0
votes
1 answer
How to get icons from OpenWeatherMap onto Screen
So I am using the OpenWeatherMap Api to create a sun spotter app, so the issue I have right now is that, I have all the icons in my drawable folder, the issue is I want to display all the icons right now I have ti set up like this:
I am using that…

Zubair Amjad
- 621
- 1
- 10
- 29
0
votes
1 answer
Android Custom Adapter out of bound exception
While coding an android app in Kotlin I came across this error:
I am using the OpenWeatherMapApi and from the API I am trying to grab the Forecast Data. And I was able to pull the Forecast data thanks to okhttp3 and Gson but now my issue is…

Zubair Amjad
- 621
- 1
- 10
- 29
0
votes
0 answers
Android Sqlite BaseAdapter Search view and list error accord
I am trying to display list view which show database values and and need search those item and when click it take that list item database id. I tried this code, but my app get crashed.
My Database
This is my database class which get result from the…

Sahan Pasindu Nirmal
- 433
- 4
- 13
- 36
0
votes
1 answer
send data from ArrayAdapter to MainActivity withot renew MainActivity
i create a list of my song with CustomArrayAdapter and placed it into MainActivity .
MediaPlayer and SeekBar are in MainActivity .
i want to send music number from my CustomArrayAdapter to MainActivity and play it but when i use Intent , new…

M K
- 15
- 4
0
votes
1 answer
Spinner with custom array adapter
I am trying to populate a spinner from a custom array adapter. Everything works perfectly except when you click on the spinner to choose a new value it displays a long line of code for each item. However, after clicking on the long line of code…

L.Lieb
- 21
- 2
- 5
0
votes
1 answer
ListViewAdapter shuffles items
So I have a listview pulling data from a Room based SQLite database. It is reading the data just fine it seems, but when the page loads I will get the first ~10 entries (the size of the display), and when I attempt to scroll down on the listview it…

lostScriptie
- 347
- 1
- 3
- 11
0
votes
2 answers
Intent in Custom Adapter
Hi i Need to add Intent in my onClick,in adapter to be connected with my Arraylist,and pass diferent link for diferent item in listview.My code is below so what changes do i need to make?How can i connect Intent with my adapter and which commands i…

Bata Kos
- 85
- 8
0
votes
2 answers
Android: Spinner not working properly on 4.4.x
I'm adding a Spinner programmatically, using a Custom Array Adapter class (which extends ArrayAdapter) and a Custom Layout for my Spinner (which consists of an ImageView and a TextView per row).
Everything works fine, except for Android Kit Kat: If…

Flash
- 1,134
- 10
- 12
0
votes
1 answer
Unable to clear data in ArrayAdapter by using adapterName.clear()
I'm using PreferenceFragment and I want that every time I change the value of a PreferenceScreen's widget the results should be displayed according to that in the ListView. Everything is working fine except when I change the value of any…

Neeraj Sewani
- 3,952
- 6
- 38
- 55
0
votes
1 answer
Delete an item from the listview and realm
I'm trying to delete an item from listview (arrayadapter) when delete button is clicked but it crashes after it's being deleted from the realm database.
@Override
public View getView(final int position, @Nullable View convertView, @NonNull…

Muslem Omar
- 1,021
- 12
- 12
0
votes
0 answers
Custom ListViews,ArrayLists,ArrayAdapters
I'm trying to build an Attendance Manager app for students and am using a custom ListView to display subject names and minimum attendance when tapped on.
These are the Issues I'm facing::
1) I want my first list item to be an "Add a subject item"…

Yash Randive
- 51
- 5
0
votes
3 answers
Custom Filter for AutoCompleteTextView returns wrong string on click
I wrote a custom ArrayAdapter with a custom Filter for my AutoCompleteTextView. It shows everything correctly, but when I filter the suggestions and click on an item, it takes the string of the item that was at this position in the suggestion list…

Florian Walther
- 6,237
- 5
- 46
- 104