0
私はスクロールバーを持つリストビューを持っています。リストビュー内では、各項目/行には2つのテキストビューがあり、そのうちの3つ目のテキストビューはスクロール可能です。リストビュー内でのTextViewのスクロール
アレイアダプタを使用してデータをリストビューに設定しています。
しかし、私はテキストビューをスクロールできません。
私のリストビューは、次のようになります -
<ListView android:id="@+id/list" android:layout_width="480dip" android:cacheColorHint="#00000000"
android:layout_height="60dip" android:scrollbarFadeDuration="1000000"/>
私はそれがfosuble作るしようとしているが、それはうまくいきませんでした
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/rowlayout_row2"
android:orientation="horizontal" android:weightSum="1.0"
android:gravity="center">
<TextView android:id="@+id/textview1"
android:layout_width="0dip" android:gravity="center"
android:layout_weight="0.3" android:layout_height="wrap_content"
android:textColor="#5C5C5C" android:text="Commenmts "
android:textSize="12dip" android:typeface="sans" android:paddingTop="3dip"
android:paddingLeft="3dip" />
<TextView android:id="@+id/review_data_id" android:scrollbars = "vertical"
android:layout_width="0dip" android:gravity="left" android:maxLines="2"
android:layout_weight="0.6" android:layout_height="wrap_content"
android:layout_toRightOf="@+id/textview1" android:textColor="#5C5C5C"
android:textSize="12dip" android:typeface="sans" android:paddingTop="3dip"
android:paddingLeft="3dip" />
</LinearLayout>
私はビューを膨らませるために使用しています
私のXMLは..です
提案に感謝します。 – amiekuser