文件名称:SlideCutListView
介绍说明--下载内容来自于网络,使用问题请自行百度
本款Android源码实现两种功能演示,一是使用Scroller实现漂亮的ListView左右滑动效果,另外是删除Item效果,虽然是一些小技巧,但对于学习android的界面编写挺有帮助。在当前界面滑动的ListView,内部定义了一个滑动类,在这个滑动类中标记出item滑出屏幕的方向,向左或者向右,用一个枚举值来标记,并包括分发事件,主要做的是判断点击的是那个item, 以及通过postDelayed来设置响应左右滑动事件;
往右滑动,getScrollX()返回的是左边缘的距离,就是以View左边缘为原点到开始滑动的距离,所以向右边滑动为负值,根据手指滚动itemView的距离来判断是滚动到开始位置还是向左或者向右滚动,手指拖动itemView滚动, deltaX大于0向左滚动,小于0向右滚。-This paragraph demonstrates Android source code for two functions, one is to use Scroller sliding around ListView achieve beautiful results, in addition to delete Item effect, although some tips, but for learning to write android interface quite helpful. In the current interface sliding ListView, sliding inside the class definition of a mark in this class, the direction of the item slide slide the screen to the left or to the right, marked with an enumeration value, and include the distribution of events, mainly to do Click the judgment is that item, as well as to set up in response to sliding around events through postDelayed
Right slide, getScrollX () returns the distance from the left edge to the left edge is to the origin of View to the start of sliding distance, so the slide to the right is negative, according to the distance of the finger rolling itemView scroll to determine the start position or scroll left or right, drag your finger itemView rolling, deltaX scroll left is gre
往右滑动,getScrollX()返回的是左边缘的距离,就是以View左边缘为原点到开始滑动的距离,所以向右边滑动为负值,根据手指滚动itemView的距离来判断是滚动到开始位置还是向左或者向右滚动,手指拖动itemView滚动, deltaX大于0向左滚动,小于0向右滚。-This paragraph demonstrates Android source code for two functions, one is to use Scroller sliding around ListView achieve beautiful results, in addition to delete Item effect, although some tips, but for learning to write android interface quite helpful. In the current interface sliding ListView, sliding inside the class definition of a mark in this class, the direction of the item slide slide the screen to the left or to the right, marked with an enumeration value, and include the distribution of events, mainly to do Click the judgment is that item, as well as to set up in response to sliding around events through postDelayed
Right slide, getScrollX () returns the distance from the left edge to the left edge is to the origin of View to the start of sliding distance, so the slide to the right is negative, according to the distance of the finger rolling itemView scroll to determine the start position or scroll left or right, drag your finger itemView rolling, deltaX scroll left is gre
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SlideCutListView/.classpath
SlideCutListView/.project
SlideCutListView/.settings/org.eclipse.jdt.core.prefs
SlideCutListView/AndroidManifest.xml
SlideCutListView/bin/AndroidManifest.xml
SlideCutListView/bin/classes/com/example/slidecutlistview/BuildConfig.class
SlideCutListView/bin/classes/com/example/slidecutlistview/MainActivity$1.class
SlideCutListView/bin/classes/com/example/slidecutlistview/MainActivity.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$attr.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$drawable.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$id.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$layout.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$menu.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$string.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$style.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R.class
SlideCutListView/bin/classes/com/example/slidecutlistview/SlideCutListView$RemoveDirection.class
SlideCutListView/bin/classes/com/example/slidecutlistview/SlideCutListView$RemoveListener.class
SlideCutListView/bin/classes/com/example/slidecutlistview/SlideCutListView.class
SlideCutListView/bin/classes.dex
SlideCutListView/bin/dexedLibs/android-support-v4-64e40abe7d72907c3b6c986a2e149b16.jar
SlideCutListView/bin/dexedLibs/android-support-v4-697bc69dbef2908df6b6e0f7928330fd.jar
SlideCutListView/bin/dexedLibs/android-support-v4-7aaf9ee3f51761c5835fd47809095b3a.jar
SlideCutListView/bin/dexedLibs/android-support-v4-7b360f1a6a538f2cf0874c33b67823dc.jar
SlideCutListView/bin/dexedLibs/android-support-v4-a18e4f26741405bd3fb9ace528ac486f.jar
SlideCutListView/bin/dexedLibs/android-support-v4-fbfe5839f28e35ae53dd2a813a64f849.jar
SlideCutListView/bin/jarlist.cache
SlideCutListView/bin/MainActivity.apk
SlideCutListView/bin/res/drawable-hdpi/ic_launcher.png
SlideCutListView/bin/res/drawable-hdpi/reader_item_divider.png
SlideCutListView/bin/res/drawable-ldpi/ic_launcher.png
SlideCutListView/bin/res/drawable-mdpi/ic_launcher.png
SlideCutListView/bin/res/drawable-xhdpi/ic_launcher.png
SlideCutListView/bin/resources.ap_
SlideCutListView/bin/SlideCutListView.apk
SlideCutListView/gen/com/example/slidecutlistview/BuildConfig.java
SlideCutListView/gen/com/example/slidecutlistview/R.java
SlideCutListView/ic_launcher-web.png
SlideCutListView/libs/android-support-v4.jar
SlideCutListView/proguard-project.txt
SlideCutListView/project.properties
SlideCutListView/res/drawable-hdpi/friendactivity_comment_detail_list2.9.png
SlideCutListView/res/drawable-hdpi/ic_launcher.png
SlideCutListView/res/drawable-hdpi/reader_item_divider.png
SlideCutListView/res/drawable-ldpi/ic_launcher.png
SlideCutListView/res/drawable-mdpi/ic_launcher.png
SlideCutListView/res/drawable-xhdpi/ic_launcher.png
SlideCutListView/res/layout/activity_main.xml
SlideCutListView/res/layout/listview_item.xml
SlideCutListView/res/menu/activity_main.xml
SlideCutListView/res/values/strings.xml
SlideCutListView/res/values/styles.xml
SlideCutListView/res/values-v11/styles.xml
SlideCutListView/res/values-v14/styles.xml
SlideCutListView/src/com/example/slidecutlistview/MainActivity.java
SlideCutListView/src/com/example/slidecutlistview/SlideCutListView.java
SlideCutListView/bin/classes/com/example/slidecutlistview
SlideCutListView/bin/classes/com/example
SlideCutListView/gen/com/example/slidecutlistview
SlideCutListView/src/com/example/slidecutlistview
SlideCutListView/bin/classes/com
SlideCutListView/bin/res/drawable-hdpi
SlideCutListView/bin/res/drawable-ldpi
SlideCutListView/bin/res/drawable-mdpi
SlideCutListView/bin/res/drawable-xhdpi
SlideCutListView/gen/com/example
SlideCutListView/src/com/example
SlideCutListView/bin/classes
SlideCutListView/bin/dexedLibs
SlideCutListView/bin/res
SlideCutListView/gen/com
SlideCutListView/res/drawable-hdpi
SlideCutListView/res/drawable-ldpi
SlideCutListView/res/drawable-mdpi
SlideCutListView/res/drawable-xhdpi
SlideCutListView/res/layout
SlideCutListView/res/menu
SlideCutListView/res/values
SlideCutListView/res/values-v11
SlideCutListView/res/values-v14
SlideCutListView/src/com
SlideCutListView/.settings
SlideCutListView/assets
SlideCutListView/bin
SlideCutListView/gen
SlideCutListView/libs
SlideCutListView/res
SlideCutListView/src
SlideCutListView
SlideCutListView/.project
SlideCutListView/.settings/org.eclipse.jdt.core.prefs
SlideCutListView/AndroidManifest.xml
SlideCutListView/bin/AndroidManifest.xml
SlideCutListView/bin/classes/com/example/slidecutlistview/BuildConfig.class
SlideCutListView/bin/classes/com/example/slidecutlistview/MainActivity$1.class
SlideCutListView/bin/classes/com/example/slidecutlistview/MainActivity.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$attr.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$drawable.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$id.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$layout.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$menu.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$string.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R$style.class
SlideCutListView/bin/classes/com/example/slidecutlistview/R.class
SlideCutListView/bin/classes/com/example/slidecutlistview/SlideCutListView$RemoveDirection.class
SlideCutListView/bin/classes/com/example/slidecutlistview/SlideCutListView$RemoveListener.class
SlideCutListView/bin/classes/com/example/slidecutlistview/SlideCutListView.class
SlideCutListView/bin/classes.dex
SlideCutListView/bin/dexedLibs/android-support-v4-64e40abe7d72907c3b6c986a2e149b16.jar
SlideCutListView/bin/dexedLibs/android-support-v4-697bc69dbef2908df6b6e0f7928330fd.jar
SlideCutListView/bin/dexedLibs/android-support-v4-7aaf9ee3f51761c5835fd47809095b3a.jar
SlideCutListView/bin/dexedLibs/android-support-v4-7b360f1a6a538f2cf0874c33b67823dc.jar
SlideCutListView/bin/dexedLibs/android-support-v4-a18e4f26741405bd3fb9ace528ac486f.jar
SlideCutListView/bin/dexedLibs/android-support-v4-fbfe5839f28e35ae53dd2a813a64f849.jar
SlideCutListView/bin/jarlist.cache
SlideCutListView/bin/MainActivity.apk
SlideCutListView/bin/res/drawable-hdpi/ic_launcher.png
SlideCutListView/bin/res/drawable-hdpi/reader_item_divider.png
SlideCutListView/bin/res/drawable-ldpi/ic_launcher.png
SlideCutListView/bin/res/drawable-mdpi/ic_launcher.png
SlideCutListView/bin/res/drawable-xhdpi/ic_launcher.png
SlideCutListView/bin/resources.ap_
SlideCutListView/bin/SlideCutListView.apk
SlideCutListView/gen/com/example/slidecutlistview/BuildConfig.java
SlideCutListView/gen/com/example/slidecutlistview/R.java
SlideCutListView/ic_launcher-web.png
SlideCutListView/libs/android-support-v4.jar
SlideCutListView/proguard-project.txt
SlideCutListView/project.properties
SlideCutListView/res/drawable-hdpi/friendactivity_comment_detail_list2.9.png
SlideCutListView/res/drawable-hdpi/ic_launcher.png
SlideCutListView/res/drawable-hdpi/reader_item_divider.png
SlideCutListView/res/drawable-ldpi/ic_launcher.png
SlideCutListView/res/drawable-mdpi/ic_launcher.png
SlideCutListView/res/drawable-xhdpi/ic_launcher.png
SlideCutListView/res/layout/activity_main.xml
SlideCutListView/res/layout/listview_item.xml
SlideCutListView/res/menu/activity_main.xml
SlideCutListView/res/values/strings.xml
SlideCutListView/res/values/styles.xml
SlideCutListView/res/values-v11/styles.xml
SlideCutListView/res/values-v14/styles.xml
SlideCutListView/src/com/example/slidecutlistview/MainActivity.java
SlideCutListView/src/com/example/slidecutlistview/SlideCutListView.java
SlideCutListView/bin/classes/com/example/slidecutlistview
SlideCutListView/bin/classes/com/example
SlideCutListView/gen/com/example/slidecutlistview
SlideCutListView/src/com/example/slidecutlistview
SlideCutListView/bin/classes/com
SlideCutListView/bin/res/drawable-hdpi
SlideCutListView/bin/res/drawable-ldpi
SlideCutListView/bin/res/drawable-mdpi
SlideCutListView/bin/res/drawable-xhdpi
SlideCutListView/gen/com/example
SlideCutListView/src/com/example
SlideCutListView/bin/classes
SlideCutListView/bin/dexedLibs
SlideCutListView/bin/res
SlideCutListView/gen/com
SlideCutListView/res/drawable-hdpi
SlideCutListView/res/drawable-ldpi
SlideCutListView/res/drawable-mdpi
SlideCutListView/res/drawable-xhdpi
SlideCutListView/res/layout
SlideCutListView/res/menu
SlideCutListView/res/values
SlideCutListView/res/values-v11
SlideCutListView/res/values-v14
SlideCutListView/src/com
SlideCutListView/.settings
SlideCutListView/assets
SlideCutListView/bin
SlideCutListView/gen
SlideCutListView/libs
SlideCutListView/res
SlideCutListView/src
SlideCutListView
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.