在我的应用程序中有条件&条件屏幕。我将条款&条件信息放在EditText
字段中。我们怎样才能把scrollview放在android的EditText字段中?
我需求量的:
我想把ScrollView
内EditText
阅读条款和条件文本(文本既然是MODR我需要ScrollView
在EditText
场)。我怎样才能做到这一点?
在我的应用程序中有条件&条件屏幕。我将条款&条件信息放在EditText
字段中。我们怎样才能把scrollview放在android的EditText字段中?
我需求量的:
我想把ScrollView
内EditText
阅读条款和条件文本(文本既然是MODR我需要ScrollView
在EditText
场)。我怎样才能做到这一点?
您不应该使用EditText
作为阅读目的。使用TextView
内ScrollView
:
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="false"
android:text="@string/terms_and_conditions" />
</ScrollView>
你可以简单地在TextView中显示您的条件和条款,并使用滚动,你可以把你的TextView的滚动型是这样的:
<ScrollView android:id="@+id/scrollTerms"
android:layout_width="match_parent"
android:layout_heigth="match_parent"
>
<TextView android:id="@+id/txtTerms"
android:layout_width="match_parent"
android:layout_heigth="wrap_content"
android:text="put your terms and conditions here ..."
>
</ScrollView>