├── demo ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ └── styles.xml │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ └── layout │ │ │ ├── activity_main.xml │ │ │ └── fragment_guideview.xml │ │ ├── java │ │ └── cn │ │ │ └── lemon │ │ │ └── guideview │ │ │ ├── MainActivity.java │ │ │ └── GuideViewFragment.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── guideview ├── .gitignore ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── cn │ │ └── lemon │ │ └── view │ │ ├── Direction.java │ │ └── GuideView.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── demo.png ├── netease_demo.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── README.md ├── gradlew.bat ├── gradlew └── LICENSE.txt /demo/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /guideview/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':demo', ':guideview' 2 | -------------------------------------------------------------------------------- /demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhazhaxin/GuideView/HEAD/demo.png -------------------------------------------------------------------------------- /netease_demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhazhaxin/GuideView/HEAD/netease_demo.png -------------------------------------------------------------------------------- /demo/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | GuideView 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhazhaxin/GuideView/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhazhaxin/GuideView/HEAD/demo/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhazhaxin/GuideView/HEAD/demo/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhazhaxin/GuideView/HEAD/demo/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhazhaxin/GuideView/HEAD/demo/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhazhaxin/GuideView/HEAD/demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /guideview/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /demo/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /demo/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri May 18 18:38:33 CST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 7 | -------------------------------------------------------------------------------- /demo/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /demo/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /demo/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # Intellij 36 | *.iml 37 | .idea/workspace.xml 38 | 39 | # Keystore files 40 | *.jks 41 | /.idea 42 | /local.properties -------------------------------------------------------------------------------- /demo/src/main/java/cn/lemon/guideview/MainActivity.java: -------------------------------------------------------------------------------- 1 | package cn.lemon.guideview; 2 | 3 | import android.app.FragmentTransaction; 4 | import android.os.Bundle; 5 | import android.support.v7.app.AppCompatActivity; 6 | 7 | public class MainActivity extends AppCompatActivity { 8 | 9 | @Override 10 | protected void onCreate(Bundle savedInstanceState) { 11 | super.onCreate(savedInstanceState); 12 | setContentView(R.layout.activity_main); 13 | 14 | FragmentTransaction transaction = getFragmentManager().beginTransaction(); 15 | transaction.replace(R.id.frame_layout, new GuideViewFragment()); 16 | transaction.commit(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /demo/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in F:\SoftWare\android-sdk-windows/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /guideview/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in F:\SoftWare\android-sdk-windows/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /guideview/src/main/java/cn/lemon/view/Direction.java: -------------------------------------------------------------------------------- 1 | package cn.lemon.view; 2 | 3 | /** 4 | * Created by linlongxin on 2016/7/22. 5 | */ 6 | 7 | public interface Direction { 8 | 9 | int LEFT = 10; //左边,默认上边对齐 10 | int LEFT_ABOVE = 11; //左上方 11 | int LEFT_BOTTOM = 12; //左下方 12 | int LEFT_ALIGN_BOTTOM = 13; //左方并且下边对齐 13 | 14 | int RIGHT = 20; //右边 15 | int RIGHT_ABOVE = 21; //右上方 16 | int RIGHT_BOTTOM = 22; //右下方 17 | int RIGHT_ALIGN_BOTTOM = 23; //右方并且下边对齐 18 | 19 | int ABOVE = 30; //正上方 20 | int ABOVE_ALIGN_LEFT = 31; //上方并且左对齐 21 | int ABOVE_ALIGN_RIGHT = 32; //上方并且右对齐 22 | 23 | int BOTTOM = 40; //正下方 24 | int BOTTOM_ALIGN_LEFT = 41; //下方并且左对齐 25 | int BOTTOM_ALIGN_RIGHT = 42; //下方并且右对齐 26 | } 27 | -------------------------------------------------------------------------------- /demo/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /demo/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion '27.0.3' 6 | defaultConfig { 7 | applicationId "cn.lemon.guideview" 8 | minSdkVersion 15 9 | targetSdkVersion 23 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | 14 | flavorDimensions("isfree", "channel") 15 | 16 | productFlavors{ 17 | free{ 18 | dimension "isfree" 19 | } 20 | paid { 21 | dimension "isfree" 22 | } 23 | wandoujia{ 24 | dimension "channel" 25 | } 26 | baidu{ 27 | dimension "channel" 28 | } 29 | } 30 | 31 | buildTypes{ 32 | 33 | release{ 34 | minifyEnabled true 35 | shrinkResources true 36 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 37 | } 38 | } 39 | 40 | 41 | } 42 | 43 | dependencies { 44 | implementation 'com.android.support:appcompat-v7:23.4.0' 45 | api project(':guideview') 46 | } 47 | -------------------------------------------------------------------------------- /guideview/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion '27.0.3' 6 | } 7 | 8 | dependencies { 9 | api 'com.android.support:support-annotations:27.1.1' 10 | } 11 | ext { 12 | bintrayRepo = 'maven' 13 | bintrayName = 'guide-view' 14 | 15 | publishedGroupId = 'cn.Lemon' 16 | artifact = 'guideview' //与module名必须保持一致,踩了好多次坑了 17 | libraryVersion = '1.0.0' 18 | 19 | siteUrl = 'https://github.com/llxdaxia/GuideView' 20 | gitUrl = 'https://github.com/llxdaxia/GuideView.git' 21 | 22 | libraryName = 'GuideView' 23 | libraryDescription = 'app luncher for guide user' 24 | 25 | developerId = 'Lemon' 26 | developerName = 'Lemon' 27 | developerEmail = 'daxiallx@gmail.com' 28 | 29 | licenseName = 'The Apache Software License, Version 2.0' 30 | licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' 31 | allLicenses = ["Apache-2.0"] 32 | } 33 | apply from: 'https://raw.githubusercontent.com/llxdaxia/GradleScript/master/install_v1.gradle' 34 | apply from: 'https://raw.githubusercontent.com/llxdaxia/GradleScript/master/bintray_v1.gradle' 35 | -------------------------------------------------------------------------------- /demo/src/main/res/layout/fragment_guideview.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 |