这样做的诀窍:
<linearLayout androID:ID="@+ID/linearLayout01"androID:layout_wIDth="fill_parent" androID:layout_height="fill_parent"androID:orIEntation="vertical" xmlns:androID="http://schemas.androID.com/apk/res/androID"><ScrollVIEw androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_weight="1"> <TextVIEw androID:ID="@+ID/TextVIEw01" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:text="Lorem ipsum dolor sit amet,consectetur adipiscing elit. In auctor varius ligula quis imperdIEt. Cras at arcu eget ligula lacinia aliquam. Donec ultricIEs neque eu nisl elementum sed luctus leo porta. Nunc gravida molestIE soDales. Nam sit amet lacus a odio dictum dignissim. Pellentesque nec tincIDunt urna. Praesent mattis dignissim ante,eu placerat leo placerat vel. Curabitur nec consequat nisl. Donec dAPIbus ante ID enim faucibus ut scelerisque risus sollicitudin. Vestibulum ipsum sAPIen,molestIE vel dignissim eleifend,ultricIEs vitae libero. Nullam sAPIen libero,posuere non ornare sed,tristique non nisi. Proin eu nunc sAPIen,vitae euismod neque. Fusce scelerisque purus sit amet leo accumsan scelerisque varius ligula interdum. Maecenas non mauris vitae lacus vehicula pulvinar sed quis dui. Nullam ultricIEs mollis tortor vel dictum. Phasellus tincIDunt dui ID odio soDales tincIDunt. Curabitur malesuada dAPIbus neque,non malesuada augue tempus at. Integer et nulla et arcu sollicitudin semper. "></TextVIEw></ScrollVIEw><ScrollVIEw androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_weight="1"> <TextVIEw androID:ID="@+ID/TextVIEw02" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:text="Lorem ipsum dolor sit amet,non malesuada augue tempus at. Integer et nulla et arcu sollicitudin semper. "></TextVIEw></ScrollVIEw><ScrollVIEw androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_weight="1"> <TextVIEw androID:ID="@+ID/TextVIEw03" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:text="Lorem ipsum dolor sit amet,non malesuada augue tempus at. Integer et nulla et arcu sollicitudin semper. "></TextVIEw></ScrollVIEw>
alt text http://img341.imageshack.us/img341/7319/scrollviews.png
总结以上是内存溢出为你收集整理的在android中滚动查看textview全部内容,希望文章能够帮你解决在android中滚动查看textview所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)