Android TextView 设置滚动条(纯xml)
2014-01-05 15:59
555 查看
<ScrollView
android:id="@+is/scrollView_id"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:scrollbars="vertical" >
<TextView
android:id="@+id/outputText"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<!--
<TextView
android:id="@+id/outputText"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0" />
-->
</ScrollView>
android:id="@+is/scrollView_id"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:scrollbars="vertical" >
<TextView
android:id="@+id/outputText"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<!--
<TextView
android:id="@+id/outputText"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1.0" />
-->
</ScrollView>
相关文章推荐
- Socket通信——Android手机客户端和电脑服务器通信小例子
- 【Android】【报错】java.net.SocketException: socket failed: EACCES (Permission denied)
- Android中自带的RSA加密算法和JAVA中的区别
- 使用adb命令连接模拟器,在5037端口未被占用情况下仍报端口错误
- Android中回调函数机制解析
- Android 游戏与应用开发最佳学习路线图
- 高仿大众点评滑动效果
- Android中的三种XML解析方式
- android缩放大图片加载
- Android当中4种常用的对话框
- Android 之 ProgressBar用法介绍
- Android 之 PendingIntent用法介绍
- Android高手进阶之自定义View,自定义属性(带进度的圆形进度条)
- Android 之 ImageSwitch图片转换器
- Android自定义属性,format详解
- Android XML文件的代码提示
- android不规则图片按钮
- Android源代码下载
- Android开发必备库
- 一种基于Android智能手机的远程视频监控的设计[图]