好吧,我在这里有一个ScrollView和一个TextView,我加载了不同的Stings - 它可以在一个屏幕上,或者你必须向下滚动这个TextView 50屏幕。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".AllPr"
>
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="5sp" >
<TextView
android:id="@+id/alltextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:text="TextView" />
</ScrollView>
</RelativeLayout>
我设置的文字是通过Spannable 我的问题 - 是否有任何方法可以找出用户现在可以看到的文本,如果是 - 我可以找到哪个文本被设置为粗体文本因为我需要的是标题