android-arrayadapter
How to add ArrayList<My class> in ArrayAdapter for spinner?
private ArrayAdapter spn_1; ArrayList<My Class> result; spn_1 = new ArrayAdapter(this, android.R.layout.simple_spinner_item, result);[详细]
2023-03-12 08:49 分类:问答Android - ListView within a ListView does not expand to show all items
I have a listview of items that have a listview as a child.My problem is that the child listview does not expand to show all items.[详细]
2023-03-11 06:23 分类:问答Adding a "Child" or SubItem to ExpandableListView
I can\'t find instructions to add a child item to my expandable list anywhere. All I can find is 50 questions on how to change the background color.[详细]
2023-03-11 05:13 分类:问答how can i put different colors in ListView
i want to get the different colors in each row of the list view but current only one color is shown so how can i do this[详细]
2023-03-10 09:26 分类:问答Spinner items selection radio missing
When my items contains English and/or numeric signs, it shows the radio selection near the item, but when it doesn\'t contains any English and/or numeric signs (contains only Hebrew in my example) it[详细]
2023-03-09 02:51 分类:问答Using a custom list adapter with the AutoCompleteTextView and still keeping the functionality of the auto complete working the same
So say I use the following adapter for the AutoCompleteTextView: public class RosterAdapter extends ArrayAdapter<Player> {[详细]
2023-03-08 15:03 分类:问答Listview shows wrong images
I have a ListView with an ArrayAdapter holding rows with a Image and a String. This worked fine until I decided that the loading of the images was to slow so I could not load the images before showing[详细]
2023-03-07 17:06 分类:问答what is android.R.layout.simple_list_item_1?
In all the examples I\'ve seen they just use \"android.R.layout.simple_list_item_1\" when creating an ArrayAdapter.[详细]
2023-03-07 16:11 分类:问答Android Compound Controls - Inflate from XML
I have created a compound control that I am reusing in multiple activities. This control contains a bunch of TextViews and Buttons, and most importantly a ListView. I define the XML in a layout file a[详细]
2023-03-07 13:20 分类:问答Custom ArrayAdapter getView provides wrong position
So I\'m getting an error because my Custom ArrayAdapter getView method provides a position that is outside of the number of items in my list. For instance, when I have one item it returns a position o[详细]
2023-03-07 01:12 分类:问答