Good Morning,
I seem to be missing one piece of information (still learning on my first Android app) connecting an ArrayAdapter to a view. I create a Class we'll call MyInfoClass which is just some properties for holding data. I populate the class with rows of data and in the end I have an ArrayList(MyInfoClass>. So far so good, everything looks great, and values are as I expect them in the Debug perspective.
I also have an XML layout that has some TextViews on it. I want to use this layout for displaying the different "sets of data" held in ArrayList(MyInfoClass>. I understand that to do this I would use an ArrayAdapter and I do so with the following line:
ArrayAdapter<MyInfoClass> X = new ArrayAdapter<MyInfoClass>(this, R.layout.main, R.id.txtvw_PrevLift, ld_data);
(ld_data is the ArrayList(MyInfoClass> object)
My confusion comes from...well from not knowing what I'm doing, but anyway it comes from not understanding how to connect the properties of MyInfoClass to their corresponding TextView. The ArrayAdapter documentation doesn't show a constructor that takes a List of TextView id's????
Thank You for your help. JB
To help clear up my confusion I don't bind to a list....maybe I should? I was just wanting to have an entire view represent one row of data. I've trimmed alot of code for readability but here is my view. Some of the text views are static labels and other would get populated. The buttons are for navigation back and forth.
<RelativeLayout....>
<ImageView
android:id=.../>
<TextView
android:id=.../>
<ImageView
android:id=.../>
<TextView
android:id=.../>
<TextView
android:id=.../>
<TextView
android:id=.../>
<Button
android:id=.../>
<Button
android:id=.../>
</RelativeLayout>