登录
首页 » Android » android launcher源码

android launcher源码

于 2022-05-06 发布 文件大小:138.38 kB
0 114
下载积分: 2 下载次数: 1

代码说明:

1.Launcher.java:launcher中主要的activity。 2.DragLayer.java:launcher layout的rootview。DragLayer实际上也是一个抽象的界面,用来处理拖动和对事件进行初步处理然后按情况分发下去,角色是一个controller。它首先用onInterceptTouchEvent(MotionEvent)来拦截所有的touch事件,如果是长按item拖动的话不把事件传下去,直接交由onTouchEvent()处理,这样就可以实现item的移动了,如果不是拖动item的话就把事件传到目标view,交有目标view的事件处理函数做相应处理。如过有要对事件的特殊需求的话可以修改onInterceptTouchEvent(MotionEvent)来实现所需要的功能。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 简单音乐播放器
    简单的音乐播放器,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    2022-08-15 10:54:31下载
    积分:1
  • listviewheSQLitezhishi
    注意:本项目是基于android studio开发的,eclipse可能无法直接使用。 本项目是一个简单的基于安卓的记事本项目源码,添加或删除数据的时候会出现显示bug(实际数据不会受到影响),bug体现在添加或删除一条数据以后会在listview里面会展示复制一遍操作后的数据。而不会清除原有的列表文本。新手朋友可以拿这个项目来试试手感,顺便看看能不能独立解决这个问题。 本项目涉及的知识点有: 1、SQLite的基本使用,增删查改 2、listview,adapeter的基本使用 3、activity生命周期 4、intent、bundle传递参数 5、AlertDialog的基本使用(Note: this project is based on the development of studio eclipse, Android may not be able to directly use. This project is a simple Notepad program source code based on Android, add or delete data will appear when the display bug (actual data will not be affected), bug reflected in add or remove a data will be in inside the listview will show copy again after the operation data. And will not clear the original list of text. Novice friends can take this project to try to feel, by the way to solve this problem can not be solved independently. The knowledge points involved in this project are: 1, the basic use of SQLite, CRUD 2, listview, the basic use of adapeter 3, activity life cycle 4, intent, bundle transfer parameters 5, the basic use of AlertDialog)
    2016-07-25 11:25:09下载
    积分:1
  • 客户端首页广告栏位循环 并支持点击
    客户端首页广告栏位循环 并支持点击
    2015-01-19下载
    积分:1
  • android 下拉滑动刷新List
    android 下拉滑动刷新List
    2014-09-15下载
    积分:1
  • JavaOpenGL
    it is a book java open GL for android. Book for beginner.
    2012-05-14 22:59:04下载
    积分:1
  • 循环结构程序设计.pdf
    【实例简介】循环结构程序设计.pdf
    2021-12-21 00:31:29下载
    积分:1
  • 华大USB HID例程
    【实例简介】HC32F460的USB例程
    2021-06-24 00:31:20下载
    积分:1
  • EnumSetTest
    Enum Set Test Source Code for Andriod.
    2013-10-28 23:36:35下载
    积分:1
  • 别踩白块app源码(android)
    别踩白块的Android studio实现
    2020-06-21下载
    积分:1
  • Android 解析xml文件
    本篇将通过一个实例介绍一下下XmlResourceParser解析xml文件的具体方法
    2023-08-05 01:20:03下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载