Javascript 滚动视图上文本区域的滚动文本
我面临的问题是滚动文本区域的文本。我有下面的代码结构 1-滚动视图作为垂直布局。 2-在此滚动视图上保留视图。 3-在此视图上保留文本区域Javascript 滚动视图上文本区域的滚动文本,javascript,android,titanium,Javascript,Android,Titanium,我面临的问题是滚动文本区域的文本。我有下面的代码结构 1-滚动视图作为垂直布局。 2-在此滚动视图上保留视图。 3-在此视图上保留文本区域 在此结构中,文本滚动不平稳。如果需要水平滚动查看文本,请在xml文件中尝试此操作 <HorizontalScrollView android:layout_width="wrap_content" android:layout_height="wrap_content"> <TextView . . . . </Hor
在此结构中,文本滚动不平稳。如果需要水平滚动查看文本,请在xml文件中尝试此操作
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
. . . .
</HorizontalScrollView>
我想您正在寻找此代码。
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/headerlayout"
android:layout_above="@+id/bottomlayout"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/text_aboutus"
android:layout_marginTop="10dp"
android:padding="10dp"
android:text="@string/text_data"
android:textSize="13sp"
android:textColor="#000" />
</ScrollView>
你需要用一些代码更新你的问题。我需要钛合金Appcelerar上的代码
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/headerlayout"
android:layout_above="@+id/bottomlayout"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/text_aboutus"
android:layout_marginTop="10dp"
android:padding="10dp"
android:text="@string/text_data"
android:textSize="13sp"
android:textColor="#000" />
</ScrollView>