I tried to combine image and text inside layout. I create layout inside scrollview which, scrollview itself inside ListView. It appear text can be scrolled (because have long text) and problem solved. But new problem appear when i try to click on item in listview. Looks like it cannot be clicked. because when i remove scrollview that wrap text, it can call listener event for item inside it.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@color/hijau_tua"
>
<ImageView
android:id="@+id/flag"
android:layout_width="125dp"
android:layout_height="80dp"
android:layout_gravity="top"
/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<TextView
android:id="@+id/txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:textSize="15dp"
/>
<TextView
android:id="@+id/cur"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:textSize="12dp"
/>
</LinearLayout>
</ScrollView>
That's the layout to display image and textview. I wrap it (TextView) inside ScrollView. (and still, i click one of items, no respond.)
Please point me for the problem. Thank you