2011-05-24 77 views

回答

4

您不应该使用EditText作为阅读目的。使用TextViewScrollView

<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> 
1

你可以简单地在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>