hi, try using .. public void setImageResource (int resId) this works same as and:src
On Feb 23, 7:39 am, HBBob <[email protected]> wrote: > I have a simply ListView, I want to set the "<ImageView android:src" > based on the value of > "<TextView android:id="@+id/line_1". How can I do this? Thanks in > advance. > > <ImageView > android:id="@android:id/android:list" > android:layout_width="wrap_content" > android:layout_height="fill_parent" > android:layout_marginRight="6dip" > android:src="@drawable/icon" /> > <LinearLayout > android:orientation="vertical" > android:layout_width="0dip" > android:layout_weight="1" > android:layout_height="fill_parent"> > > <TextView > android:id="@+id/line_1" > android:layout_width="fill_parent" > android:layout_height="20dip" > android:textSize="15sp" > android:layout_weight="1" > android:gravity="center_vertical" > />...... > > Thanks -- 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

