文件名称:Linefzfb
- 所属分类:
- android开发
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2016-07-07
- 文件大小:
- 1.47mb
- 下载次数:
- 0次
- 提 供 者:
- shilia*******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实现思路:
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
....\.classpath
....\.project
....\.settings
....\.........\org.eclipse.core.resources.prefs
....\.........\org.eclipse.jdt.core.prefs
....\AndroidManifest.xml
....\assets
....\bin
....\...\AndroidManifest.xml
....\...\classes
....\...\.......\com
....\...\.......\...\seeyon
....\...\.......\...\......\line
....\...\.......\...\......\....\bean
....\...\.......\...\......\....\....\Point.class
....\...\.......\...\......\....\BuildConfig.class
....\...\.......\...\......\....\MainActivity$1.class
....\...\.......\...\......\....\MainActivity.class
....\...\.......\...\......\....\R$attr.class
....\...\.......\...\......\....\R$dimen.class
....\...\.......\...\......\....\R$drawable.class
....\...\.......\...\......\....\R$id.class
....\...\.......\...\......\....\R$layout.class
....\...\.......\...\......\....\R$menu.class
....\...\.......\...\......\....\R$string.class
....\...\.......\...\......\....\R$style.class
....\...\.......\...\......\....\R.class
....\...\.......\...\......\....\ScreenUtils.class
....\...\.......\...\......\....\view
....\...\.......\...\......\....\....\ContentView.class
....\...\.......\...\......\....\....\Drawl$GestureCallBack.class
....\...\.......\...\......\....\....\Drawl.class
....\...\classes.dex
....\...\dexedLibs
....\...\.........\android-support-v4-16a00996e66fcb646f47332f1eb60fa7.jar
....\...\res
....\...\...\crunch
....\...\...\......\drawable-hdpi
....\...\...\......\.............\gesture_node_highlighted.png
....\...\...\......\.............\gesture_node_normal.png
....\...\...\......\.............\ic_launcher.png
....\...\...\......\.............\sky.png
....\...\...\......\drawable-mdpi
....\...\...\......\.............\ic_launcher.png
....\...\...\......\drawable-xhdpi
....\...\...\......\..............\ic_launcher.png
....\...\...\......\drawable-xxhdpi
....\...\...\......\...............\ic_launcher.png
....\...\resources.ap_
....\gen
....\...\com
....\...\...\seeyon
....\...\...\......\line
....\...\...\......\....\BuildConfig.java
....\...\...\......\....\R.java
....\ic_launcher-web.png
....\libs
....\....\android-support-v4.jar
....\proguard-project.txt
....\project.properties
....\res
....\...\drawable-hdpi
....\...\.............\gesture_node_highlighted.png
....\...\.............\gesture_node_normal.png
....\...\.............\ic_launcher.png
....\...\.............\sky.png
....\...\drawable-ldpi
....\...\drawable-mdpi
....\...\.............\ic_launcher.png
....\...\drawable-xhdpi
....\...\..............\ic_launcher.png
....\...\drawable-xxhdpi
....\...\...............\ic_launcher.png
....\...\layout
....\...\......\activity_main.xml
....\...\......\item.xml
....\...\menu
....\...\....\main.xml
....\...\values
....\...\......\dimens.xml
....\...\......\strings.xml
....\...\......\styles.xml
....\...\values-sw600dp
....\...\..............\dimens.xml
....\...\values-sw720dp-land
....\...\...................\dimens.xml
....\...\values-v11
....\...\..........\styles.xml
....\...\values-v14
....\...\..........\styles.xml
....\src
....\...\com
....\...\...\seeyon
....\...\...\......\line
....\...\...\......\....\bean
....\...\...\......\....\....\Point.java
....\...\...\......\....\MainActivity.java
....\...\...\......\....\ScreenUtils.java
....\...\...\......\....\view