Dear All,

I have a SimpleAdapter like this:

        listAdapter = new SimpleAdapter(History.this,
                        HistoryArray,
                        R.layout.list_history,
                        new String[] {"var1", "var2"},
                        new int[] {R.id.var1, R.id.var2});
        list.setAdapter(listAdapter);

and the view is:

        <TextView
                android:layout_height="wrap_content"
                android:layout_width="fill_parent"
                android:id="@+id/var1"
                android:textSize="14dip"
                android:background="#FFF"
                >
        </TextView>
        <TextView
                android:layout_height="wrap_content"
                android:layout_width="fill_parent"
                android:id="@+id/var2"
                android:textSize="12dip"
                android:background="#FFF"
                >
        </TextView>

how to change the @+id/var2 background in the runtime?

Many thanks.

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to