A concrete BaseAdapter that is backed by an array of arbitrary objects.
0
votes
2answers
24 views
Android spinners: How to write java code for them?
I am trying to make a GPA calculator. I have a bunch of spinners in two columns. 7 in each. I have put in an array of strings to be displayed in the drop down list. Now, I want to write code in java ...
0
votes
0answers
7 views
SmartImageView and Custom ListAdapter - First few items' imageViews not drawing?
I need some help with a ListView.
Background:
I've created a ListAdapter that extends ArrayAdapter -
Each of the items in the list has 2 SmartImageView's and I fetch the URL names in an asynctask ...
0
votes
2answers
15 views
How to put another adapter inside my custom adapter (info from one object)
How do I fill my listview that is inside a custom adapter row already. Is this the right way?
I have an organization object. And this organization can have more contacts.
So I want to create for ...
1
vote
2answers
28 views
arrayadapter for spinner not working in fragment, requires resource id
i am getting an error that ArrayAdapter does not have resource id, however the resource id is used here and i used similar code in an activity with no problem however this is in a fragment. is there ...
0
votes
0answers
8 views
The getview() method just execute one time in a custom ArrayAdapter
The getview() method just execute one time in a custom ArrayAdapter
In my project I have to display a list of cities. The Spinner represent the first row correctly. But, remain data display as object ...
1
vote
0answers
47 views
I cant seem to get my listView for android working
I am working along with a book (The big nerd ranch guide, Android) and i am trying to get a listView working. It has worked in the past and i dont believe i have changed any code, but when i run my ...
2
votes
4answers
47 views
The constructor ArrayAdapter<String>(AddNewUnit, int, String) is undefined
I'm new to android and Java and I faced this problem and I search for answer but I don't find any thing.
I'm trying to get some data from database and put it in spinner but I faced this problem:
The ...
0
votes
1answer
14 views
Why do “unlocked” items appear disabled after scrolling?
I've written a custom adapter (LevelAdapter because I am showing a list of levels of a game) that populates a ListView fragment from a list of dummy objects. Each dummy object possesses a boolean ...
0
votes
1answer
16 views
Android custom list view filter
I know there are tons of tutorials and this has been asked before but after following a few tutorials this one in particular (tutorial) I keep getting a force close. The list filters sorta but ...
0
votes
2answers
28 views
How can I get notifyDataSetChanged() to start working?
I'm trying to change a spinners values based on the selection of an item in another spinner. The values used to populate both spinners are in an xml file called array. The array file looks something ...
0
votes
1answer
30 views
Images GridView doesn't invalidate
I've been trying to update my Images GridView.
The images get updated only if I set the adapter again. Setting the adapter again makes my activity scroll back to top and I try to avoid that.
Here's ...
1
vote
0answers
39 views
+50
Add background image to individual fragments
I have an app with multiple fragments and I would like to know how to add a background that is different for each fragment. The layout I am using has scrollable tabs which all use the same xml file. I ...
0
votes
1answer
31 views
processing in ArrayAdapter
i am trying to show the contents using a list activity in android.
I am getting a list from backend. now i want to fetch each list value and see whether that item is shown in red color or in green ...
0
votes
1answer
26 views
ArrayAdapter's getView and AndroidAnnotations
I extend the ArrayAdapter class that have getView(...) method. Inside it I write something like this:
public class MyArrayAdapter<T> extends ArrayAdapter<String> {
...
@Override
...
0
votes
1answer
42 views
getting String from ArrayList
I am getting data from database and putting it into a array.Array contain CODE (int) and DESCRIPTION (String).Code is in the gridview and i want that if someone clicks on a code then realted ...