Android ScrollView用法
来源:互联网 发布:希拉里邮件门 知乎 编辑:程序博客网 时间:2024/05/08 19:04
今天试着使用了一下Android的滚轮 以下是一个小小的测试 读取测试文件
主要是使用scrollTo函数和getScrollY()
程序点击BUTTON按钮 则向下滚到2222处 并显示
main.xml
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout
android:id="@+id/widget38"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<LinearLayout
android:id="@+id/widget32"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_x="0px"
android:layout_y="0px"
>
</LinearLayout>
<ScrollView
android:id="@+id/sv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_x="0px"
android:layout_y="20px"
>
<TextView
android:id="@+id/txtView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="hello,user!"
android:textSize="20sp"
>
</TextView>
</ScrollView>
<Button
android:id="@+id/test"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
android:layout_x="230px"
android:layout_y="2px"
>
</Button>
</AbsoluteLayout>
- Android ScrollView用法
- Android ScrollView用法
- Android中ScrollView用法介绍
- Android中ScrollView的用法
- Android ScrollView用法实例汇总
- Android下ScrollView的用法
- Android控件之ScrollView用法实例分析
- android下拉刷新scrollview的用法pullToRefreshScrollview
- 【ScrollView】ScrollView用法
- ScrollView用法
- ScrollView用法
- ScrollView用法
- ScrollView用法
- ScrollView用法
- android(11)(ScrollView的简单用法)
- android TextView 带滚动条,和ScrollView 用法(暂时觉得ScrollView滑动速度比较快)
- scrollview--android
- Android--ScrollView
- 堆和栈的理论知识
- i.MX51 Boot Process
- C#和本机 C++ 代码的互用性--(较好的解释了_gc 和 c++/CLR 的关系问题)
- windows mobile 学习1
- BOOL和bool的区别
- Android ScrollView用法
- 基本绝缘,附加绝缘,双重绝缘和加强绝缘的区别
- linux命令 打包,压缩与解压缩
- 关于char, wchar_t, TCHAR, _T(),L,宏 _T、TEXT,_TEXT、L
- 爱的神话
- ArcEngine,C#数据删除几种方法以及性能比较
- log explorer使用 教程
- 宣传册尺寸
- steps3d blog