Android開發15——給TextView加上滾動條

本文出自 “IT徐胖子的專欄” 博客,請務必保留此出處http://woshixy.blog.51cto.com/5637578/1086755



給TextView加上滾動條非常簡單,只需要把TextView標籤放在ScrollView標籤中

  1. <ScrollViewandroid:layout_width="wrap_content"android:layout_height="wrap_content">

  2. <TextView

  3. android:layout_width="fill_parent"

  4. android:layout_height="wrap_content"

  5. android:id="@+id/txtViewHtml"/>

  6. </ScrollView>


本文出自 “IT徐胖子的專欄” 博客,請務必保留此出處http://woshixy.blog.51cto.com/5637578/1086755


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章