閱讀584 返回首頁    go 阿裏雲 go 技術社區[雲棲]


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

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

    <ScrollView	android:layout_width="wrap_content" android:layout_height="wrap_content">
    	<TextView  
		    android:layout_width="fill_parent" 
		    android:layout_height="wrap_content"
		    android: />
    </ScrollView>

 

最後更新:2017-04-03 05:40:39

  上一篇:go Android開發6——布局中的wrap_content和fill_parent以及match_parent
  下一篇:go Android開發2——創建測試項目