Hi,
I have a question. I am having a List View which uses a complicated
RelativeLayout for the view of its item.
Say for each item in the list view I am using the following relative
layout. Now I want to assert on value of "StoryText" Text View. How do
I do that?
If it where simple TextView I would have done
assertEquals("Item1",stringAt("listView.0.text"));
but I want to access the StoryText in side the relative layout. how do
I do that?
<RelativeLayout android:id="@+id/StoryLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
xmlns:android="
http://schemas.android.com/apk/res/android"
android:orientation="horizontal">
<ImageView android:id="@+id/StoryImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:padding="5px"></
ImageView>
<TextView android:paddingLeft="10px" android:id="@+id/StoryText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/StoryImage" android:layout_alignTop="@
+id/StoryImage"
android:layout_marginLeft="2px"></TextView>
</RelativeLayout>
Cheers,
Rohit