I'm not 100% sure, but I think it would do only most of it. I need
each row to contain 17 individual "cells", each with multiple widgets
(like an imageview and a textview). Then I need each one of those 17
"cells", in each of 32 rows, to be clickable, so that I can record
some data and change the background of the "cell" when clicked.
So would something like this work?:
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="1">
<TableRow>
<View
android:layout_height="20px"
android:background="#FFFFFF">
<TextView
android:text=id="@+id/week1"
... />
<ImageView
android:id="@+id/icon1"
.../>
</View>
... (repeat for views 2-17)
</TableRow>
... (repeat for rows 2-32)
</TableLayout>
Couple concerns/questions about this:
- Isn't this a lot of static XML for something that seems to be
calling out for a more data-driven grid-like view?
- If this is the answer, how can I trap a click for each of the Views
(not just widget within a view), and know exactly what row and
"column" of this thing has been clicked?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en