Android(安卓)TextView自动换行
16lz
2022-06-17
如果单单使用TextView的话是不能自动换行的怎么办呢?看下面的布局文件就明白怎么实现自动换行了。
<TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:stretchColumns="1" android:shrinkColumns="1"> <TextView android:id="@+id/textView1_serial_write" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="left" android:textColor="@android:color/black" android:textSize="25sp" /> </TableLayout>
更多相关文章
- Android(安卓)BaseExpandableListAdapter 教程
- Android(安卓)proguard(混淆)模板
- android 实现自定义隐藏式菜单
- 构建更好的应用--Xamarin平台
- Android实现指定区域截屏的实现
- ActionBarSherlock
- Android-开发常用代码汇总
- android ScrollView嵌套RecyclerView只显示一条数据的解决办法
- 浅谈Java中Collections.sort对List排序的两种方法