Hello Community, I am having a hard time figuring out what adapter should I use to accomplish the following.
Currently, I'm using an Array Adapter that is connected to an ArrayList. It is populating a simple_list_item_1 type of ListView with the information found in the Array. My list was very functional, until I realized that I needed to populate an existing TextView field with an Int[] Array. After doing some reading I realized that ArrayAdapter will only let me populate from 1 ArrayList. Here is what my ListView looks like: _______________________________ | | | TextView1 TextView3 | | TextView2 | |______________________________| | | | TextView1 TextView3 | | TextView2 | |______________________________| | | | TextView1 TextView3 | | TextView2 | |______________________________| I am currently Overriding my getView so that I can control my list on a per row basis. TextView1 comes from the ArrayList TextView2 comes from an IF statement (no auto populate required) TextView3 needs to come from an int Array. The following are code snippets for my Adapter: Adapter call: Java: public ArrayAdapter<String> aa; aa = new IconicAdapter(this); myListView.setAdapter(aa); Subclassing and extending Adapter: Java: class IconicAdapter extends ArrayAdapter<String> { Activity context; IconicAdapter(Activity context) { super(context, R.layout.custom_layout, R.id.custom_textfield, arrLIST); this.context=context; } public View getView(int position, View convertView, ViewGroup parent) { How would I need to modify my code in order to achieve this? Appreciate your help, Best Regards, Alex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---