android-arrayadapter Questions
2
Solved
I am currently using an array adapter. All the examples that I came across online use a separate layout for the array adapter. I wanted to know if it had a default layout. My code is something like...
Swamp asked 24/3, 2013 at 10:18
3
Solved
I'm trying to filter a listview with arrayadapter. The arraydapter parameter is a String[][]. The problem is that anything happens. I must override the Filter interface? In that case plase, can som...
Drummond asked 10/5, 2012 at 10:32
3
I'm trying to refactor my app to use ViewBinding. I've gone through all the fragments and activities; however, I have an ArrayAdapter that I'm unsure of the proper convention to use view binding to...
Bandwidth asked 5/8, 2021 at 17:25
6
Solved
I'm trying to use in my Android Application the notifyDataSetChanged() method for an ArrayAdapter but it doesn't work for me.
I found as answer here, that notifyDataSetChanged() should run in the...
Freehanded asked 8/9, 2010 at 15:27
2
Solved
I am trying to to create a Spinner inside a Fragment but I am getting error in the ArrayAdapter constructor call. I don't know why, but it has a red underline. Other than that, there is no error. W...
Gish asked 18/1, 2018 at 16:11
5
Solved
I'm retrieving a list of strings from a webservice and I want to list them up on a AutoCompleteTextField regardless of the built-in AutoCompleteTextField filters.
How do I do that? is there a way ...
Shophar asked 14/12, 2011 at 22:40
4
Here's a sample code of using spinner in android :
Spinner spinner = (Spinner) findViewById(R.id.spinner);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array....
Peria asked 26/5, 2012 at 8:54
4
Solved
I am getting an error when trying to set my view to display the ListView for the file I want to display(text file). I am pretty sure it has something to do with the XML. I just want to display the ...
Glebe asked 14/2, 2012 at 16:59
4
Solved
I'm having some troubles while trying to remove an item from the list view on long click. Below is the code:
public class MListViewActivity extends ListActivity {
private ListView lv;
private Str...
Perry asked 15/1, 2013 at 15:5
6
Solved
I have a ListView of items that need to be checkable/uncheckable. I have set up an ArrayAdapter that is currently using android.R.layout.simple_list_item_multiple_choice as the row, and everything ...
Talya asked 9/11, 2011 at 6:45
5
Solved
How can I use the properties of a custom object in a Listview. If I implement an ArrayAdapter with a list of Strings it displays fine in Listview but when I use a list of custom objects, it just ou...
Tactician asked 14/12, 2014 at 23:42
9
I'm trying to smoothly scroll to last element of a list after adding an element to the arrayadapter associated with the listview.
The problem is that it just scrolls to a random position
arrayadap...
Rachael asked 11/7, 2012 at 11:38
5
Solved
Kotlin ArrayAdapter Error: None of the following functions can be called with the arguments supplied
I am new to Kotlin for Android development. While following along a tutorial project, I needed to use ArrayAdapter with a custom class. Building the project failed with error.
The MainActivity....
Surf asked 23/10, 2018 at 12:14
9
Solved
My questions are:
What is exactly the function of the LayoutInflater?
Why do all the articles that I've read check if convertview is null or not first? What does it mean when it is null and what ...
Alessi asked 12/4, 2012 at 8:38
2
I have some basic piece of code on a Welcome Activity that simply binds List adapter as usual:
final ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(this, android.R.layout.sim...
Hexad asked 23/1, 2017 at 15:48
5
Solved
I am still playing around with my calendar, I already nearly managed to integrate the https://github.com/SundeepK/CompactCalendarView into one of my fragments. There is just one error left, i did s...
Pibroch asked 21/12, 2015 at 3:29
5
Solved
I'm trying to filter my ListView which is populated with this ArrayAdapter:
package me.alxandr.android.mymir.adapters;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Co...
Pd asked 27/4, 2010 at 1:35
1
public class MainActivity extends AppCompatActivity {
ArrayList<String> list = new ArrayList<>();
ArrayAdapter<String> adapter;
ArrayList<String> data1 = new ArrayList...
Devotional asked 25/8, 2015 at 3:59
5
Solved
I have implemented AutoCompleteTextView as follows:
MainActivity.java
...
public static String[] myData=new String[]{"Africa (AF)","America (AFM)","Apple (AMP)"};
text=(AutoCompleteTextView)v.f...
Cyclotron asked 3/10, 2015 at 18:33
4
Solved
I have ArrayAdapter with this items structure:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout ... >
<TextView
android:id="@+id/itemTextView"
... />
</RelativeLayou...
Chippewa asked 21/2, 2012 at 15:56
8
Solved
So I'm trying to sort a simple ArrayAdapter for ListView. Here's what I've tried:
ListView lv;
String[] months = {
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",...
Murderous asked 30/10, 2013 at 8:0
4
I got the following warning:
Custom view com/example/view/adapter/SomeAdapter is missing
constructor used by tools: (Context) or (Context,AttributeSet) or
(Context,AttributeSet,int)
in my cl...
Concertante asked 12/6, 2013 at 10:22
3
Solved
i have use the https://github.com/Diolor/Swipecards and it works perfect if data is static but it is not working with AsyncTask
Now i want to bind the adapter with json data. but it is not worked....
Hudis asked 25/7, 2015 at 11:24
11
Solved
I'm using ListActivity with my own ArrayAdapter class. When I override the methods ArrayAdapter.areAllItemsEnabled() and ArrayAdapter.isEnabled() the divider between some cells in the list view dis...
Nominal asked 21/3, 2011 at 8:5
3
Solved
AutoCompleteTextView displays it's suggestions in a dropdown in the portrait mode.I would like to display suggestions either in a dialog or in a dropdown in the landscape mode,here the EditText and...
Quixotism asked 11/11, 2013 at 12:42
1 Next >
© 2022 - 2025 — McMap. All rights reserved.