资源简介
android 动态加载数据
代码片段和文件信息
package com.ipjmc.scroller;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.Scroller;
public class CustomView extends LinearLayout {
private static final String TAG = “CustomView“;
private Scroller mScroller;
private GestureDetector mGestureDetector;
public CustomView(Context context) {
this(context null);
}
public CustomView(Context context AttributeSet attrs) {
super(context attrs);
setClickable(true);
setLongClickable(true);
mScroller = new Scroller(context);
mGestureDetector = new GestureDetector(context new CustomGestureListener());
}
//调用此方法滚动到目标位置
public v
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
-rw-rw-r-- 482 2012-09-16 18:56 ScrollerDemo\src\com\ipjmc\scroller\MainActivity.java
-rw-rw-r-- 2913 2012-09-16 18:55 ScrollerDemo\src\com\ipjmc\scroller\CustomView.java
-rw-rw-r-- 1723 2012-09-16 18:04 ScrollerDemo\res\drawable-xhdpi\ic_launcher.png
-rw-rw-r-- 3199 2012-09-16 18:04 ScrollerDemo\res\drawable-xhdpi\ic_action_search.png
-rw-rw-r-- 1363 2012-09-16 18:04 ScrollerDemo\res\drawable-hdpi\ic_launcher.png
-rw-rw-r-- 3120 2012-09-16 18:04 ScrollerDemo\res\drawable-hdpi\ic_action_search.png
-rw-rw-r-- 972 2012-09-16 18:04 ScrollerDemo\res\drawable-mdpi\ic_launcher.png
-rw-rw-r-- 3030 2012-09-16 18:04 ScrollerDemo\res\drawable-mdpi\ic_action_search.png
-rw-rw-r-- 780 2012-09-16 18:04 ScrollerDemo\res\drawable-ldpi\ic_launcher.png
-rw-rw-r-- 548 2012-09-16 18:55 ScrollerDemo\res\layout\activity_main.xm
-rw-rw-r-- 85 2012-09-16 18:04 ScrollerDemo\res\values\st
-rw-rw-r-- 235 2012-09-16 18:04 ScrollerDemo\res\values\strings.xm
-rw-rw-r-- 90 2012-09-16 18:04 ScrollerDemo\res\values-v11\st
-rw-rw-r-- 104 2012-09-16 18:04 ScrollerDemo\res\values-v14\st
-rw-rw-r-- 240 2012-09-16 18:04 ScrollerDemo\res\menu\activity_main.xm
-rw-rw-r-- 349252 2012-09-16 18:04 ScrollerDemo\libs\android-support-v4.jar
-rw-rw-r-- 815 2012-09-16 18:55 ScrollerDemo\.project
-rw-rw-r-- 781 2012-09-16 18:04 ScrollerDemo\proguard-project.txt
-rw-rw-r-- 770 2012-09-16 18:55 ScrollerDemo\AndroidManifest.xm
-rw-rw-r-- 12712 2012-09-16 18:04 ScrollerDemo\ic_launcher-web.png
-rw-rw-r-- 356 2012-09-16 18:12 ScrollerDemo\.classpath
-rw-rw-r-- 563 2012-09-16 18:04 ScrollerDemo\project.properties
drwxrwxr-x 0 2012-09-16 18:05 ScrollerDemo\src\com\ipjmc\scroller
drwxrwxr-x 0 2012-09-16 18:55 ScrollerDemo\src\com\ipjmc
drwxrwxr-x 0 2012-09-16 18:58 ScrollerDemo\bin\classes
drwxrwxr-x 0 2012-09-16 18:04 ScrollerDemo\res\drawable-xhdpi
drwxrwxr-x 0 2012-09-16 18:04 ScrollerDemo\res\drawable-hdpi
drwxrwxr-x 0 2012-09-16 18:04 ScrollerDemo\res\drawable-mdpi
drwxrwxr-x 0 2012-09-16 18:04 ScrollerDemo\res\drawable-ldpi
drwxrwxr-x 0 2012-09-16 18:04 ScrollerDemo\res\layout
............此处省略15个文件信息
- 上一篇:Android登陆弹出界面
- 下一篇:UI设计实现右侧类似抽屉画出的效果
相关资源
- Android 设置免打扰(与手机系统交互
- 仿赶集生活android客户端的介绍启动界
- android不错的下拉刷新效果(支持各种
- android 应用启动的时弹出的悬浮带有关
- android 左右侧滑抽屉菜单
- android 点赞+1效果
- android画图
- android 手机上调用插件打开网页
- Android登陆弹出界面
- android 线性布局新手入门
- android 移动PathMenu 菜单
- 用于记录女生生理期,以便女生自我
- android 自定义radiogroup实现-listview+rad
- android 获取联系人信息
- android 自定义Switch控件 (兼容低版本
- android 模拟qq发送表情功能
- Android webView和js交互的Demo
- andriod滚轮选择生日
- android 友推分享
- android SDK 离线版chm文档(含大量)
- android listview实现复选框(checkboxlist)
- android EditText加减demo
- android 管理
- 书籍《精通android游戏开发》pdf
- android ExpandableTextView
- android Imageloader 显示网络图片 源码
- android 菜单键选择背景颜色
- android 仿html table布局可横向 纵向滚动
- android 图片高斯图片模糊算法
- android activity 切换效果
评论
共有 条评论