我有一个页面,它由 LinearLayout 标签内的几个 TextView 组成。如何在单击屏幕滚动到特定 TextView 时创建链接。例如,第一个链接会将屏幕滚动到@string/faq01,第二个链接将滚动到@string/faq02,等等。
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="10sp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20sp"
android:text="@string/links"
android:textSize="18sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20sp"
android:text="@string/faq01"
android:textSize="18sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20sp"
android:text="@string/faq02"
android:textSize="18sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20sp"
android:text="@string/faq02"
android:textSize="18sp"/>
</LinearLayout>