文件名称:Linefzfb
-
所属分类:
- 标签属性:
- 上传时间:2016-07-06
-
文件大小:1.47mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
实现思路:
1.要用一个类来表示这9个点中的第一个点。里面保留有当前点的上下左右的各个位置等属性
2.自定义GroupView,用来装9个点,9个点的显示是通过ImageView。复写onLayout这个方法,让点按需求排列
3.定义一个可以画线的View,复写onTouchEvent方法,在这个方法里面进行画直线的操作
4.判断用户手指当前的位置,取出当前的位置去与那9个点中的每个点的位置进行比较,如果用户点的位置在某一个点之内,那么当那个点置换背景图片。-Realization thought:
1 to use a class to represent the first point in the 9 points. Which retains the current point of the upper and lower left and right of the various positions, etc.
2 custom GroupView, used to hold 9 points, 9 points of the display is through the ImageView. Copy the onLayout approach, make arrangement according to demand
3 the definition of a line drawing of View, carbon onTouchEvent method, draw line operation in this method.
4. Determine the fingers of a user s current location, remove the current position to compare with each point in the nine point position, if the location of the user within a certain point, so when the replacement of the background image.
1.要用一个类来表示这9个点中的第一个点。里面保留有当前点的上下左右的各个位置等属性
2.自定义GroupView,用来装9个点,9个点的显示是通过ImageView。复写onLayout这个方法,让点按需求排列
3.定义一个可以画线的View,复写onTouchEvent方法,在这个方法里面进行画直线的操作
4.判断用户手指当前的位置,取出当前的位置去与那9个点中的每个点的位置进行比较,如果用户点的位置在某一个点之内,那么当那个点置换背景图片。-Realization thought:
1 to use a class to represent the first point in the 9 points. Which retains the current point of the upper and lower left and right of the various positions, etc.
2 custom GroupView, used to hold 9 points, 9 points of the display is through the ImageView. Copy the onLayout approach, make arrangement according to demand
3 the definition of a line drawing of View, carbon onTouchEvent method, draw line operation in this method.
4. Determine the fingers of a user s current location, remove the current position to compare with each point in the nine point position, if the location of the user within a certain point, so when the replacement of the background image.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Line/
Line/.classpath
Line/.project
Line/.settings/
Line/.settings/org.eclipse.core.resources.prefs
Line/.settings/org.eclipse.jdt.core.prefs
Line/AndroidManifest.xml
Line/assets/
Line/bin/
Line/bin/AndroidManifest.xml
Line/bin/classes/
Line/bin/classes/com/
Line/bin/classes/com/seeyon/
Line/bin/classes/com/seeyon/line/
Line/bin/classes/com/seeyon/line/bean/
Line/bin/classes/com/seeyon/line/bean/Point.class
Line/bin/classes/com/seeyon/line/BuildConfig.class
Line/bin/classes/com/seeyon/line/MainActivity$1.class
Line/bin/classes/com/seeyon/line/MainActivity.class
Line/bin/classes/com/seeyon/line/R$attr.class
Line/bin/classes/com/seeyon/line/R$dimen.class
Line/bin/classes/com/seeyon/line/R$drawable.class
Line/bin/classes/com/seeyon/line/R$id.class
Line/bin/classes/com/seeyon/line/R$layout.class
Line/bin/classes/com/seeyon/line/R$menu.class
Line/bin/classes/com/seeyon/line/R$string.class
Line/bin/classes/com/seeyon/line/R$style.class
Line/bin/classes/com/seeyon/line/R.class
Line/bin/classes/com/seeyon/line/ScreenUtils.class
Line/bin/classes/com/seeyon/line/view/
Line/bin/classes/com/seeyon/line/view/ContentView.class
Line/bin/classes/com/seeyon/line/view/Drawl$GestureCallBack.class
Line/bin/classes/com/seeyon/line/view/Drawl.class
Line/bin/classes.dex
Line/bin/dexedLibs/
Line/bin/dexedLibs/android-support-v4-16a00996e66fcb646f47332f1eb60fa7.jar
Line/bin/javaapk.com-Line.apk
Line/bin/res/
Line/bin/res/crunch/
Line/bin/res/crunch/drawable-hdpi/
Line/bin/res/crunch/drawable-hdpi/gesture_node_highlighted.png
Line/bin/res/crunch/drawable-hdpi/gesture_node_normal.png
Line/bin/res/crunch/drawable-hdpi/ic_launcher.png
Line/bin/res/crunch/drawable-hdpi/sky.png
Line/bin/res/crunch/drawable-mdpi/
Line/bin/res/crunch/drawable-mdpi/ic_launcher.png
Line/bin/res/crunch/drawable-xhdpi/
Line/bin/res/crunch/drawable-xhdpi/ic_launcher.png
Line/bin/res/crunch/drawable-xxhdpi/
Line/bin/res/crunch/drawable-xxhdpi/ic_launcher.png
Line/bin/resources.ap_
Line/gen/
Line/gen/com/
Line/gen/com/seeyon/
Line/gen/com/seeyon/line/
Line/gen/com/seeyon/line/BuildConfig.java
Line/gen/com/seeyon/line/R.java
Line/ic_launcher-web.png
Line/libs/
Line/libs/android-support-v4.jar
Line/proguard-project.txt
Line/project.properties
Line/res/
Line/res/drawable-hdpi/
Line/res/drawable-hdpi/gesture_node_highlighted.png
Line/res/drawable-hdpi/gesture_node_normal.png
Line/res/drawable-hdpi/ic_launcher.png
Line/res/drawable-hdpi/sky.png
Line/res/drawable-ldpi/
Line/res/drawable-mdpi/
Line/res/drawable-mdpi/ic_launcher.png
Line/res/drawable-xhdpi/
Line/res/drawable-xhdpi/ic_launcher.png
Line/res/drawable-xxhdpi/
Line/res/drawable-xxhdpi/ic_launcher.png
Line/res/layout/
Line/res/layout/activity_main.xml
Line/res/layout/item.xml
Line/res/menu/
Line/res/menu/main.xml
Line/res/values/
Line/res/values/dimens.xml
Line/res/values/strings.xml
Line/res/values/styles.xml
Line/res/values-sw600dp/
Line/res/values-sw600dp/dimens.xml
Line/res/values-sw720dp-land/
Line/res/values-sw720dp-land/dimens.xml
Line/res/values-v11/
Line/res/values-v11/styles.xml
Line/res/values-v14/
Line/res/values-v14/styles.xml
Line/src/
Line/src/com/
Line/src/com/seeyon/
Line/src/com/seeyon/line/
Line/src/com/seeyon/line/bean/
Line/src/com/seeyon/line/bean/Point.java
Line/src/com/seeyon/line/MainActivity.java
Line/src/com/seeyon/line/ScreenUtils.java
Line/src/com/seeyon/line/view/
Line/src/com/seeyon/line/view/ContentView.java
Line/src/com/seeyon/line/view/Drawl.java
Line/说明.htm
Line/.classpath
Line/.project
Line/.settings/
Line/.settings/org.eclipse.core.resources.prefs
Line/.settings/org.eclipse.jdt.core.prefs
Line/AndroidManifest.xml
Line/assets/
Line/bin/
Line/bin/AndroidManifest.xml
Line/bin/classes/
Line/bin/classes/com/
Line/bin/classes/com/seeyon/
Line/bin/classes/com/seeyon/line/
Line/bin/classes/com/seeyon/line/bean/
Line/bin/classes/com/seeyon/line/bean/Point.class
Line/bin/classes/com/seeyon/line/BuildConfig.class
Line/bin/classes/com/seeyon/line/MainActivity$1.class
Line/bin/classes/com/seeyon/line/MainActivity.class
Line/bin/classes/com/seeyon/line/R$attr.class
Line/bin/classes/com/seeyon/line/R$dimen.class
Line/bin/classes/com/seeyon/line/R$drawable.class
Line/bin/classes/com/seeyon/line/R$id.class
Line/bin/classes/com/seeyon/line/R$layout.class
Line/bin/classes/com/seeyon/line/R$menu.class
Line/bin/classes/com/seeyon/line/R$string.class
Line/bin/classes/com/seeyon/line/R$style.class
Line/bin/classes/com/seeyon/line/R.class
Line/bin/classes/com/seeyon/line/ScreenUtils.class
Line/bin/classes/com/seeyon/line/view/
Line/bin/classes/com/seeyon/line/view/ContentView.class
Line/bin/classes/com/seeyon/line/view/Drawl$GestureCallBack.class
Line/bin/classes/com/seeyon/line/view/Drawl.class
Line/bin/classes.dex
Line/bin/dexedLibs/
Line/bin/dexedLibs/android-support-v4-16a00996e66fcb646f47332f1eb60fa7.jar
Line/bin/javaapk.com-Line.apk
Line/bin/res/
Line/bin/res/crunch/
Line/bin/res/crunch/drawable-hdpi/
Line/bin/res/crunch/drawable-hdpi/gesture_node_highlighted.png
Line/bin/res/crunch/drawable-hdpi/gesture_node_normal.png
Line/bin/res/crunch/drawable-hdpi/ic_launcher.png
Line/bin/res/crunch/drawable-hdpi/sky.png
Line/bin/res/crunch/drawable-mdpi/
Line/bin/res/crunch/drawable-mdpi/ic_launcher.png
Line/bin/res/crunch/drawable-xhdpi/
Line/bin/res/crunch/drawable-xhdpi/ic_launcher.png
Line/bin/res/crunch/drawable-xxhdpi/
Line/bin/res/crunch/drawable-xxhdpi/ic_launcher.png
Line/bin/resources.ap_
Line/gen/
Line/gen/com/
Line/gen/com/seeyon/
Line/gen/com/seeyon/line/
Line/gen/com/seeyon/line/BuildConfig.java
Line/gen/com/seeyon/line/R.java
Line/ic_launcher-web.png
Line/libs/
Line/libs/android-support-v4.jar
Line/proguard-project.txt
Line/project.properties
Line/res/
Line/res/drawable-hdpi/
Line/res/drawable-hdpi/gesture_node_highlighted.png
Line/res/drawable-hdpi/gesture_node_normal.png
Line/res/drawable-hdpi/ic_launcher.png
Line/res/drawable-hdpi/sky.png
Line/res/drawable-ldpi/
Line/res/drawable-mdpi/
Line/res/drawable-mdpi/ic_launcher.png
Line/res/drawable-xhdpi/
Line/res/drawable-xhdpi/ic_launcher.png
Line/res/drawable-xxhdpi/
Line/res/drawable-xxhdpi/ic_launcher.png
Line/res/layout/
Line/res/layout/activity_main.xml
Line/res/layout/item.xml
Line/res/menu/
Line/res/menu/main.xml
Line/res/values/
Line/res/values/dimens.xml
Line/res/values/strings.xml
Line/res/values/styles.xml
Line/res/values-sw600dp/
Line/res/values-sw600dp/dimens.xml
Line/res/values-sw720dp-land/
Line/res/values-sw720dp-land/dimens.xml
Line/res/values-v11/
Line/res/values-v11/styles.xml
Line/res/values-v14/
Line/res/values-v14/styles.xml
Line/src/
Line/src/com/
Line/src/com/seeyon/
Line/src/com/seeyon/line/
Line/src/com/seeyon/line/bean/
Line/src/com/seeyon/line/bean/Point.java
Line/src/com/seeyon/line/MainActivity.java
Line/src/com/seeyon/line/ScreenUtils.java
Line/src/com/seeyon/line/view/
Line/src/com/seeyon/line/view/ContentView.java
Line/src/com/seeyon/line/view/Drawl.java
Line/说明.htm
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.