├── .gitignore ├── JuGuangDemo ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── maigu │ │ └── yang │ │ └── jiguangdemo │ │ ├── App.java │ │ ├── MainActivity.java │ │ ├── MyReceiver.java │ │ ├── SharedUtil.java │ │ └── StrUtil.java │ └── res │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ └── ic_launcher_background.xml │ ├── layout │ ├── activity_main.xml │ └── customer_notitfication_layout.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-hdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-mdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ ├── ic_launcher_round.png │ └── shenqi.jpg │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ └── values │ ├── colors.xml │ ├── strings.xml │ └── styles.xml ├── README.MD ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── guidepageslidingintro ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── yunyang │ │ └── guidepageslidingintro │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── yunyang │ │ │ └── guidepageslidingintro │ │ │ ├── GuideActivity.java │ │ │ └── fragment │ │ │ └── EmptyFragment.java │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ ├── activity_guide.xml │ │ └── fragment_empty_vp.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── raw │ │ ├── back.png │ │ ├── front.png │ │ └── walkthrough.json │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── yunyang │ └── guidepageslidingintro │ └── ExampleUnitTest.java ├── indexscanicon ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── xiangrong │ │ └── yunyang │ │ └── indexscanicon │ │ ├── MainActivity.java │ │ ├── adapter │ │ └── FragmentIndexAdapter.java │ │ ├── customview │ │ └── MyViewPager.java │ │ └── fragment │ │ └── ExampleFragment.java │ └── res │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ ├── bottom_bar_text_color_select.xml │ ├── ic_launcher_background.xml │ ├── index_bottom_bar_image_select_dynamic_state.xml │ ├── index_bottom_bar_image_select_home.xml │ ├── index_bottom_bar_image_select_integral.xml │ └── index_bottom_bar_image_select_me.xml │ ├── layout │ ├── activity_main.xml │ └── fragment_example.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-hdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-mdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xhdpi │ ├── bottom_bar_background.png │ ├── ic_launcher.png │ ├── ic_launcher_round.png │ ├── index_bottom_bar_dynamic_state_select.png │ ├── index_bottom_bar_dynamic_state_un_select.png │ ├── index_bottom_bar_home_select.png │ ├── index_bottom_bar_home_un_select.png │ ├── index_bottom_bar_integral_select.png │ ├── index_bottom_bar_integral_un_select.png │ ├── index_bottom_bar_me_select.png │ ├── index_bottom_bar_me_un_select.png │ └── index_bottom_bar_scan.png │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ └── values │ ├── colors.xml │ ├── strings.xml │ └── styles.xml ├── mdviewpager ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── yunyang │ │ └── yunyangblogdemo │ │ ├── MainActivity.java │ │ ├── PagerActivity.java │ │ ├── adapter │ │ └── GuidePagerAdapter.java │ │ ├── fragment │ │ └── GuideFragment.java │ │ └── utils │ │ └── Utils.java │ └── res │ ├── anim │ ├── close_enter_anim.xml │ ├── close_exit_anim.xml │ ├── enter_anim.xml │ └── exit_anim.xml │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ ├── ic_chevron_right_24dp.xml │ ├── ic_helper_24dp.xml │ ├── ic_house_24dp.xml │ ├── ic_launcher_background.xml │ ├── ic_like_24dp.xml │ ├── indicator_selected.xml │ └── indicator_unselected.xml │ ├── layout │ ├── activity_main.xml │ ├── activity_pager.xml │ └── fragment_pager.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-hdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-mdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── values-v21 │ └── styles.xml │ └── values │ ├── colors.xml │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── onekeytopromoteqqgroup ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── yunyang │ │ └── onekeytopromoteqqgroup │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── yunyang │ │ │ └── onekeytopromoteqqgroup │ │ │ └── MainActivity.java │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── yunyang │ └── onekeytopromoteqqgroup │ └── ExampleUnitTest.java ├── operationxxceluseandroid ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── assets │ ├── litepal.xml │ └── 康复所.xls │ ├── java │ └── com │ │ └── xiangrong │ │ └── yunyang │ │ └── dataconversion │ │ ├── App.java │ │ ├── MainActivity.java │ │ ├── QueryDataActivity.java │ │ ├── adater │ │ ├── DishFragmentAdapter.java │ │ ├── MyBaseExpandableListAdapter.java │ │ └── QueryDataAdapter.java │ │ ├── entity │ │ ├── BarCode.java │ │ ├── CurrentFileName.java │ │ ├── ExpandMessage.java │ │ ├── GroupExpand.java │ │ ├── ItemExpand.java │ │ ├── School.java │ │ └── UnderWayFileLists.java │ │ ├── fragment │ │ └── FragmentDish.java │ │ ├── utils │ │ ├── ExcelUtils.java │ │ ├── FileUtil.java │ │ └── StrUtil.java │ │ └── view │ │ ├── dialog │ │ └── LoadingDialog.java │ │ └── popup │ │ └── SlideFromBottomPopup.java │ └── res │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ └── ic_launcher_background.xml │ ├── layout │ ├── activity_main.xml │ ├── activity_query_data.xml │ ├── activity_scan.xml │ ├── fragment_dish.xml │ ├── item_exlist_group.xml │ ├── item_exlist_item.xml │ ├── item_name_school_item.xml │ ├── item_recy_fragment_dish.xml │ ├── item_school_name.xml │ └── popup_slide_from_bottom.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-hdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-mdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── raw │ ├── erro.wav │ └── pass.wav │ └── values │ ├── colors.xml │ ├── strings.xml │ └── styles.xml ├── settings.gradle ├── slidingintroscreendemo ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── yunyang │ │ └── slidingintroscreendemo │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── yunyang │ │ │ └── slidingintroscreendemo │ │ │ ├── GuideActivity.java │ │ │ ├── MainActivity.java │ │ │ └── fragment │ │ │ └── NumberFragment.java │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ ├── activity_main.xml │ │ └── number_fragment.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── yunyang │ └── slidingintroscreendemo │ └── ExampleUnitTest.java └── texttospeechdemo ├── .gitignore ├── build.gradle ├── proguard-rules.pro ├── src └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── xiangrong │ │ └── yunyang │ │ └── texttospeechdemo │ │ └── MainActivity.java │ └── res │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ └── ic_launcher_background.xml │ ├── layout │ └── activity_main.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-hdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-mdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ └── values │ ├── colors.xml │ ├── strings.xml │ └── styles.xml └── 科大讯飞语音引擎3.0.apk /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches/build_file_checksums.ser 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | .DS_Store 9 | /build 10 | /captures 11 | .externalNativeBuild 12 | -------------------------------------------------------------------------------- /JuGuangDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /JuGuangDemo/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | defaultConfig { 6 | applicationId "com.maigu.yang.jiguangdemo" 7 | minSdkVersion 15 8 | targetSdkVersion 28 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 12 | 13 | manifestPlaceholders = [ 14 | JPUSH_PKGNAME: applicationId, 15 | JPUSH_APPKEY : "979910224deebd360a0c497b", //JPush上注册的包名对应的appkey. 16 | JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可. 17 | ] 18 | 19 | } 20 | buildTypes { 21 | release { 22 | minifyEnabled false 23 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 24 | } 25 | } 26 | } 27 | 28 | dependencies { 29 | implementation fileTree(dir: 'libs', include: ['*.jar']) 30 | implementation 'androidx.appcompat:appcompat:1.1.0' 31 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 32 | testImplementation 'junit:junit:4.12' 33 | androidTestImplementation 'androidx.test:runner:1.2.0' 34 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' 35 | // 极光Jpush 36 | implementation 'cn.jiguang.sdk:jpush:3.1.1' 37 | implementation 'cn.jiguang.sdk:jcore:1.1.9' 38 | 39 | } 40 | -------------------------------------------------------------------------------- /JuGuangDemo/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/java/com/maigu/yang/jiguangdemo/App.java: -------------------------------------------------------------------------------- 1 | package com.maigu.yang.jiguangdemo; 2 | 3 | import android.app.Application; 4 | import android.app.Notification; 5 | import android.content.Context; 6 | 7 | import cn.jpush.android.api.BasicPushNotificationBuilder; 8 | import cn.jpush.android.api.CustomPushNotificationBuilder; 9 | import cn.jpush.android.api.JPushInterface; 10 | 11 | public class App extends Application { 12 | 13 | public static Context applicationContext; 14 | 15 | @Override 16 | public void onCreate() { 17 | super.onCreate(); 18 | applicationContext = getApplicationContext(); 19 | JPushInterface.init(this); 20 | jpushSet(); 21 | } 22 | 23 | /** 24 | * 获取全局上下文 25 | */ 26 | public static Context getContext() { 27 | return applicationContext; 28 | } 29 | 30 | private void jpushSet() { 31 | BasicPushNotificationBuilder builder = new BasicPushNotificationBuilder(this); 32 | builder.statusBarDrawable = R.mipmap.shenqi; 33 | builder.notificationDefaults = Notification.DEFAULT_SOUND 34 | | Notification.DEFAULT_VIBRATE 35 | | Notification.DEFAULT_LIGHTS; // 设置为铃声、震动、呼吸灯闪烁都要 36 | JPushInterface.setPushNotificationBuilder(1, builder); 37 | 38 | /** 39 | * 设置通知栏样式 - 定义通知栏Layout 40 | */ 41 | 42 | CustomPushNotificationBuilder builder1 = 43 | new CustomPushNotificationBuilder(this, R.layout.customer_notitfication_layout, 44 | R.id.icon, R.id.title, R.id.text); 45 | builder1.layoutIconDrawable = R.mipmap.shenqi; 46 | builder.developerArg0 = "developerArg2"; 47 | JPushInterface.setPushNotificationBuilder(2, builder1); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/java/com/maigu/yang/jiguangdemo/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.maigu.yang.jiguangdemo; 2 | 3 | import android.annotation.SuppressLint; 4 | import android.os.Bundle; 5 | import android.os.Handler; 6 | import android.os.Message; 7 | import android.util.Log; 8 | 9 | import androidx.appcompat.app.AppCompatActivity; 10 | 11 | import java.util.HashSet; 12 | import java.util.Set; 13 | 14 | import cn.jpush.android.api.JPushInterface; 15 | import cn.jpush.android.api.TagAliasCallback; 16 | 17 | public class MainActivity extends AppCompatActivity { 18 | 19 | private static final int MSG_SET_ALIAS = 1001; 20 | private static final int MSG_SET_TAGS = 1002; 21 | 22 | Set tags = new HashSet(); 23 | 24 | private static final String TAG = "小白阳"; 25 | 26 | @Override 27 | protected void onCreate(Bundle savedInstanceState) { 28 | super.onCreate(savedInstanceState); 29 | setContentView(R.layout.activity_main); 30 | 31 | SharedUtil.putInt(this, "userId", 1); 32 | 33 | // if (!"success".equals(SharedUtil.getString(this, "alias"))) { 34 | // // 调用 Handler 来异步设置别名,一般都是用userId来进行设置别名(唯一性)。 35 | // mHandler.sendMessage(mHandler.obtainMessage(MSG_SET_ALIAS, 36 | // SharedUtil.getInt(this, "userId") + "")); 37 | // // 调用 Handler 来异步设置标签。 38 | // tags.add("vip"); 39 | // mHandler.sendMessage(mHandler.obtainMessage(MSG_SET_TAGS, tags)); 40 | // } 41 | 42 | // 调用 Handler 来异步设置别名,一般都是用userId来进行设置别名(唯一性)。 43 | mHandler.sendMessage(mHandler.obtainMessage(MSG_SET_ALIAS, 44 | SharedUtil.getInt(this, "userId") + "")); 45 | // 调用 Handler 来异步设置标签。 46 | tags.add("vip"); 47 | mHandler.sendMessage(mHandler.obtainMessage(MSG_SET_TAGS, tags)); 48 | 49 | if (JPushInterface.isPushStopped(App.getContext())) { 50 | JPushInterface.resumePush(App.getContext()); 51 | } 52 | 53 | } 54 | 55 | @SuppressLint("HandlerLeak") 56 | private final Handler mHandler = new Handler() { 57 | @Override 58 | public void handleMessage(Message msg) { 59 | super.handleMessage(msg); 60 | switch (msg.what) { 61 | case MSG_SET_ALIAS: 62 | // 调用 JPush 接口来设置别名。 63 | JPushInterface.setAlias(getApplicationContext(), 64 | (String) msg.obj, 65 | mAliasCallback); 66 | break; 67 | case MSG_SET_TAGS: 68 | // 调用 JPush 接口来设置标签。 69 | JPushInterface.setTags(getApplicationContext(), 70 | tags, 71 | mAliasCallback); 72 | break; 73 | default: 74 | break; 75 | } 76 | } 77 | }; 78 | 79 | private final TagAliasCallback mAliasCallback = new TagAliasCallback() { 80 | @Override 81 | public void gotResult(int code, String alias, Set tags) { 82 | switch (code) { 83 | case 0: 84 | Log.e(TAG, "TagAliasCallback success"); 85 | //"Set tag and alias success"; 86 | // 建议这里往 SharePreference 里写一个成功设置的状态。成功设置一次后,以后不必再次设置了。 87 | SharedUtil.putString(MainActivity.this, "alias", "success"); 88 | break; 89 | case 6002: 90 | // 延迟 60 秒来调用 Handler 设置别名,标签 91 | mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_SET_ALIAS, alias), 1000 * 60); 92 | mHandler.sendMessageDelayed(mHandler.obtainMessage(MSG_SET_TAGS, tags), 1000 * 60); 93 | break; 94 | default: 95 | break; 96 | } 97 | } 98 | }; 99 | 100 | } -------------------------------------------------------------------------------- /JuGuangDemo/src/main/java/com/maigu/yang/jiguangdemo/MyReceiver.java: -------------------------------------------------------------------------------- 1 | package com.maigu.yang.jiguangdemo; 2 | 3 | import android.content.BroadcastReceiver; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | import android.os.Bundle; 7 | import android.text.TextUtils; 8 | import android.util.Log; 9 | 10 | import org.json.JSONException; 11 | import org.json.JSONObject; 12 | 13 | import java.util.Iterator; 14 | 15 | import cn.jpush.android.api.JPushInterface; 16 | 17 | public class MyReceiver extends BroadcastReceiver { 18 | 19 | private static final String TAG = "小白阳"; 20 | 21 | @Override 22 | public void onReceive(Context context, Intent intent) { 23 | try { 24 | Bundle bundle = intent.getExtras(); 25 | Log.d(TAG, "[MyReceiver] onReceive - " + intent.getAction() + 26 | ", extras: " + printBundle(bundle)); 27 | if (JPushInterface.ACTION_REGISTRATION_ID.equals(intent.getAction())) { 28 | // send the Registration Id to your server... 29 | String regId = bundle.getString(JPushInterface.EXTRA_REGISTRATION_ID); 30 | Log.d(TAG, "[MyReceiver] 接收Registration Id : " + regId); 31 | 32 | } else if (JPushInterface.ACTION_MESSAGE_RECEIVED.equals(intent.getAction())) { 33 | Log.d(TAG, "[MyReceiver] 接收到推送下来的自定义消息: " 34 | + bundle.getString(JPushInterface.EXTRA_MESSAGE)); 35 | processCustomMessage(context, bundle); 36 | 37 | } else if (JPushInterface.ACTION_NOTIFICATION_RECEIVED.equals(intent.getAction())) { 38 | String strTitle = bundle.getString(JPushInterface.EXTRA_ALERT); 39 | String strContent = bundle.getString(JPushInterface.EXTRA_NOTIFICATION_TITLE); 40 | Log.d(TAG, "strTitle" + strTitle); 41 | Log.d(TAG, "strContent" + strContent); 42 | Log.d(TAG, "[MyReceiver] 接收到推送下来的通知"); 43 | int notificationId = bundle.getInt(JPushInterface.EXTRA_NOTIFICATION_ID); 44 | Log.d(TAG, "[MyReceiver] 接收到推送下来的通知的ID: " + notificationId); 45 | } else if (JPushInterface.ACTION_NOTIFICATION_OPENED.equals(intent.getAction())) { 46 | Log.d(TAG, "[MyReceiver] 用户点击打开了通知"); 47 | } else if (JPushInterface.ACTION_RICHPUSH_CALLBACK.equals(intent.getAction())) { 48 | // 在这里根据 JPushInterface.EXTRA_EXTRA 的内容处理代码,比如打开新的Activity, 打开一个网页等.. 49 | Log.d(TAG, "[MyReceiver] 用户收到到RICH PUSH CALLBACK: " + bundle.getString 50 | (JPushInterface.EXTRA_EXTRA)); 51 | } else if (JPushInterface.ACTION_CONNECTION_CHANGE.equals(intent.getAction())) { 52 | boolean connected = intent.getBooleanExtra(JPushInterface.EXTRA_CONNECTION_CHANGE, false); 53 | Log.d(TAG, "[MyReceiver]" + intent.getAction() + " connected state change to " + connected); 54 | } else { 55 | Log.d(TAG, "[MyReceiver] Unhandled intent - " + intent.getAction()); 56 | } 57 | } catch (Exception e) { 58 | e.printStackTrace(); 59 | Log.d(TAG, "抛出异常:" + e.getMessage()); 60 | } 61 | } 62 | 63 | // 打印所有的 intent extra 数据 64 | private static String printBundle(Bundle bundle) { 65 | StringBuilder sb = new StringBuilder(); 66 | for (String key : bundle.keySet()) { 67 | if (key.equals(JPushInterface.EXTRA_NOTIFICATION_ID)) { 68 | sb.append("\nkey:" + key + ", value:" + bundle.getInt(key)); 69 | } else if (key.equals(JPushInterface.EXTRA_CONNECTION_CHANGE)) { 70 | sb.append("\nkey:" + key + ", value:" + bundle.getBoolean(key)); 71 | } else if (key.equals(JPushInterface.EXTRA_EXTRA)) { 72 | if (TextUtils.isEmpty(bundle.getString(JPushInterface.EXTRA_EXTRA))) { 73 | Log.e(TAG, "This message has no Extra data"); 74 | continue; 75 | } 76 | try { 77 | JSONObject json = new JSONObject(bundle.getString(JPushInterface.EXTRA_EXTRA)); 78 | Iterator it = json.keys(); 79 | 80 | while (it.hasNext()) { 81 | String myKey = it.next(); 82 | sb.append("\nkey:" + key + ", value: [" + 83 | myKey + " - " + json.optString(myKey) + "]"); 84 | } 85 | } catch (JSONException e) { 86 | Log.e(TAG, "Get message extra JSON error!"); 87 | } 88 | 89 | } else { 90 | sb.append("\nkey:" + key + ", value:" + bundle.getString(key)); 91 | } 92 | } 93 | return sb.toString(); 94 | } 95 | 96 | // send msg to Activity 97 | private void processCustomMessage(Context context, Bundle bundle) { 98 | String message = bundle.getString(JPushInterface.EXTRA_MESSAGE); 99 | String extras = bundle.getString(JPushInterface.EXTRA_EXTRA); 100 | Log.d(TAG, "收到了自定义消息--------->:message:" + message); 101 | Log.d(TAG, "收到了自定义消息@@消息extra是extras:" + extras); 102 | if (!TextUtils.isEmpty(extras)) { 103 | try { 104 | JSONObject extraJson = new JSONObject(extras); 105 | if (extraJson.length() > 0) { 106 | String type = ""; 107 | try { 108 | JSONObject jsonObject = new JSONObject(extras); 109 | type = jsonObject.getString("type"); 110 | Log.d(TAG, "type" + type); 111 | } catch (JSONException e) { 112 | e.printStackTrace(); 113 | } 114 | } 115 | } catch (JSONException e) { 116 | e.printStackTrace(); 117 | Log.d(TAG, "push json is fail"); 118 | } 119 | } 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/java/com/maigu/yang/jiguangdemo/SharedUtil.java: -------------------------------------------------------------------------------- 1 | package com.maigu.yang.jiguangdemo; 2 | 3 | import android.content.Context; 4 | import android.content.SharedPreferences; 5 | import android.content.SharedPreferences.Editor; 6 | 7 | /** 8 | * 名称:SharedUtil.java 9 | * 描述:保存到 SharedPreferences 的数据. 10 | */ 11 | public class SharedUtil { 12 | 13 | private static final String SHARED_PATH = "app_share"; 14 | private static SharedPreferences sharedPreferences; 15 | 16 | public static SharedPreferences getDefaultSharedPreferences(Context context) { 17 | if (sharedPreferences == null) { 18 | sharedPreferences = context.getSharedPreferences(SHARED_PATH, Context.MODE_PRIVATE); 19 | } 20 | return sharedPreferences; 21 | } 22 | 23 | public static void putInt(Context context, String key, int value) { 24 | SharedPreferences sharedPreferences = getDefaultSharedPreferences(context); 25 | Editor edit = sharedPreferences.edit(); 26 | edit.putInt(key, value); 27 | edit.apply(); 28 | } 29 | 30 | public static int getInt(Context context, String key) { 31 | SharedPreferences sharedPreferences = getDefaultSharedPreferences(context); 32 | return sharedPreferences.getInt(key, 0); 33 | } 34 | 35 | public static void putString(Context context, String key, String value) { 36 | SharedPreferences sharedPreferences = getDefaultSharedPreferences(context); 37 | Editor edit = sharedPreferences.edit(); 38 | edit.putString(key, value); 39 | edit.apply(); 40 | } 41 | 42 | public static String getString(Context context, String key) { 43 | SharedPreferences sharedPreferences = getDefaultSharedPreferences(context); 44 | return sharedPreferences.getString(key, ""); 45 | } 46 | 47 | public static void putBoolean(Context context, String key, boolean value) { 48 | SharedPreferences sharedPreferences = getDefaultSharedPreferences(context); 49 | Editor edit = sharedPreferences.edit(); 50 | edit.putBoolean(key, value); 51 | edit.apply(); 52 | } 53 | 54 | public static boolean getBoolean(Context context, String key, boolean defValue) { 55 | SharedPreferences sharedPreferences = getDefaultSharedPreferences(context); 56 | return sharedPreferences.getBoolean(key, defValue); 57 | } 58 | 59 | public static void remove(Context context, String key) { 60 | SharedPreferences sharedPreferences = getDefaultSharedPreferences(context); 61 | Editor edit = sharedPreferences.edit(); 62 | edit.remove(key); 63 | edit.apply(); 64 | } 65 | 66 | public static void clear(Context context) { 67 | SharedPreferences sharedPreferences = getDefaultSharedPreferences(context); 68 | Editor edit = sharedPreferences.edit(); 69 | edit.clear(); 70 | edit.apply(); 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 17 | 18 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/layout/customer_notitfication_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | 19 | 20 | 26 | 27 | 33 | 34 | 35 | 42 | 43 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-xhdpi/shenqi.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-xhdpi/shenqi.jpg -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/JuGuangDemo/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | JiGuangDemo 3 | 4 | -------------------------------------------------------------------------------- /JuGuangDemo/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /README.MD: -------------------------------------------------------------------------------- 1 | # 博客的示例代码 2 | 3 | QQ/微信:415491101 4 | 5 | CSDN博客地址:https://blog.csdn.net/ShenQiXiaYang 6 | 7 | 简书地址:https://www.jianshu.com/u/e5b38af1cc4e 8 | 9 | Module 10 | 11 | * JuGuangDemo —— [Android快速集成极光推送,内含自定义通知,通知推送对象到某一个人,或者某一群人](https://blog.csdn.net/ShenQiXiaYang/article/details/83042641) 12 | * mdviewpager —— [使用ViewPager+Fragment制作Material Design(MD)风格的炫酷引导页](https://blog.csdn.net/ShenQiXiaYang/article/details/84028415) 13 | * OperationExcelUseAndroid —— [使用jxl.jar在Android中操作Excel表格——重中之重——对隐藏表的处理](https://blog.csdn.net/ShenQiXiaYang/article/details/86478972) 14 | * texttospeechdemo —— [文字转化为语音Android中TextToSpeech类的简单使用](https://blog.csdn.net/ShenQiXiaYang/article/details/87794093) 15 | * indexscanicon —— [Android中底部tab,中间凸起按钮的效果](https://blog.csdn.net/ShenQiXiaYang/article/details/88529374) 16 | * onekeytopromoteqqgroup —— [Android中实现一键推广加入QQ群功能](https://blog.csdn.net/ShenQiXiaYang/article/details/100520335) 17 | * slidingintroscreendemo —— [使用SlidingIntroScreen快速创建引导页介绍页](https://blog.csdn.net/ShenQiXiaYang/article/details/101624805) 18 | * guidepageslidingintro —— [Android中使用Lottie实现炫酷的引导页/介绍页](https://blog.csdn.net/ShenQiXiaYang/article/details/101677245) -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.5.0' 11 | 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | jcenter() 22 | maven { url "https://jitpack.io" } 23 | } 24 | } 25 | 26 | task clean(type: Delete) { 27 | delete rootProject.buildDir 28 | } 29 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Sep 03 14:46:17 CST 2019 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-5.4.1-all.zip 7 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /guidepageslidingintro/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /guidepageslidingintro/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | 6 | 7 | defaultConfig { 8 | applicationId "com.yunyang.guidepageslidingintro" 9 | minSdkVersion 16 10 | targetSdkVersion 28 11 | versionCode 1 12 | versionName "1.0" 13 | 14 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 15 | } 16 | 17 | buildTypes { 18 | release { 19 | minifyEnabled false 20 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 21 | } 22 | } 23 | 24 | } 25 | 26 | dependencies { 27 | implementation fileTree(dir: 'libs', include: ['*.jar']) 28 | 29 | implementation 'androidx.appcompat:appcompat:1.1.0' 30 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 31 | testImplementation 'junit:junit:4.12' 32 | androidTestImplementation 'androidx.test:runner:1.2.0' 33 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' 34 | // SlidingIntroScreen 35 | implementation 'com.matthew-tamlin:sliding-intro-screen:3.2.0' 36 | // lottie-android 37 | implementation 'com.airbnb.android:lottie:3.0.7' 38 | } 39 | -------------------------------------------------------------------------------- /guidepageslidingintro/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/androidTest/java/com/yunyang/guidepageslidingintro/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.yunyang.guidepageslidingintro; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | 25 | assertEquals("com.yunyang.guidepageslidingintro", appContext.getPackageName()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/java/com/yunyang/guidepageslidingintro/GuideActivity.java: -------------------------------------------------------------------------------- 1 | package com.yunyang.guidepageslidingintro; 2 | 3 | import android.os.Bundle; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.animation.Interpolator; 7 | import android.widget.Scroller; 8 | 9 | import androidx.fragment.app.Fragment; 10 | import androidx.viewpager.widget.ViewPager; 11 | 12 | import com.airbnb.lottie.LottieAnimationView; 13 | import com.matthewtamlin.sliding_intro_screen_library.buttons.IntroButton; 14 | import com.matthewtamlin.sliding_intro_screen_library.core.IntroActivity; 15 | import com.matthewtamlin.sliding_intro_screen_library.core.LockableViewPager; 16 | import com.yunyang.guidepageslidingintro.fragment.EmptyFragment; 17 | 18 | import java.lang.reflect.Field; 19 | import java.util.ArrayList; 20 | import java.util.Collection; 21 | 22 | public class GuideActivity extends IntroActivity { 23 | 24 | private float[] animationTimes = new float[]{0f, 0.3333f, 0.6666f, 1f, 1f}; 25 | 26 | private LockableViewPager mLockableViewPager; 27 | 28 | private LottieAnimationView mLottieAnimationView; 29 | 30 | @Override 31 | protected void onCreate(Bundle savedInstanceState) { 32 | setTheme(R.style.NoActionBar); 33 | super.onCreate(savedInstanceState); 34 | View view = LayoutInflater.from(this).inflate(R.layout.activity_guide, null); 35 | mLottieAnimationView = (LottieAnimationView) view.findViewById(R.id.animation_view); 36 | getRootView().addView(mLottieAnimationView, 0); 37 | mLockableViewPager = (LockableViewPager) findViewById(R.id.intro_activity_viewPager); 38 | hideStatusBar(); 39 | setViewPagerScroller(); 40 | initEvent(); 41 | } 42 | 43 | // ViewPager页面监听 44 | private void initEvent() { 45 | mLockableViewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { 46 | @Override 47 | public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { 48 | setAnimationProgress(position, positionOffset); 49 | } 50 | 51 | @Override 52 | public void onPageSelected(int position) { 53 | 54 | } 55 | 56 | @Override 57 | public void onPageScrollStateChanged(int state) { 58 | 59 | } 60 | }); 61 | } 62 | 63 | /** 64 | * 动画运行与ViewPager联动 65 | * 66 | * @param position ViewPager当前页 67 | * @param positionOffset ViewPager下一页 68 | */ 69 | private void setAnimationProgress(int position, float positionOffset) { 70 | float startProgress = animationTimes[position]; 71 | float endProgress = animationTimes[position + 1]; 72 | mLottieAnimationView.setProgress(Lerp(startProgress, endProgress, positionOffset)); 73 | } 74 | 75 | /** 76 | * 可以用于物体到达另外一个目标物体之间进行平滑过渡运动效果 77 | * 78 | * @param start 开始位置 79 | * @param end 结束位置 80 | * @param t [0,1] 81 | */ 82 | private float Lerp(float start, float end, float t) { 83 | return start + t * (end - start); 84 | } 85 | 86 | /** 87 | * 使用反射操作ViewPagerScroller 88 | */ 89 | private void setViewPagerScroller() { 90 | try { 91 | Field scrollerField = ViewPager.class.getDeclaredField("mScroller"); 92 | scrollerField.setAccessible(true); 93 | Field interpolator = ViewPager.class.getDeclaredField("sInterpolator"); 94 | interpolator.setAccessible(true); 95 | Scroller mScroller = new Scroller(this, (Interpolator) interpolator.get(null)) { 96 | @Override 97 | public void startScroll(int startX, int startY, int dx, int dy, int duration) { 98 | super.startScroll(startX, startY, dx, dy, duration * 7); 99 | } 100 | }; 101 | scrollerField.set(mLockableViewPager, mScroller); 102 | } catch (NoSuchFieldException e) { 103 | // Do nothing. 104 | } catch (IllegalAccessException e) { 105 | // Do nothing. 106 | } 107 | } 108 | 109 | // SlidingIntroScreen中IntroActivity的抽象方法_生成活动页面 110 | @Override 111 | protected Collection generatePages(Bundle savedInstanceState) { 112 | final ArrayList pages = new ArrayList<>(); 113 | pages.add(EmptyFragment.newInstance()); 114 | pages.add(EmptyFragment.newInstance()); 115 | pages.add(EmptyFragment.newInstance()); 116 | pages.add(EmptyFragment.newInstance()); 117 | return pages; 118 | } 119 | 120 | // SlidingIntroScreen中IntroActivity的抽象方法_按钮行为 121 | @Override 122 | protected IntroButton.Behaviour generateFinalButtonBehaviour() { 123 | return new IntroButton.Behaviour() { 124 | @Override 125 | public void setActivity(IntroActivity activity) { 126 | finish(); 127 | } 128 | 129 | @Override 130 | public IntroActivity getActivity() { 131 | return null; 132 | } 133 | 134 | @Override 135 | public void run() { 136 | 137 | } 138 | }; 139 | } 140 | 141 | } 142 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/java/com/yunyang/guidepageslidingintro/fragment/EmptyFragment.java: -------------------------------------------------------------------------------- 1 | package com.yunyang.guidepageslidingintro.fragment; 2 | 3 | import android.os.Bundle; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | 8 | import androidx.annotation.NonNull; 9 | import androidx.annotation.Nullable; 10 | import androidx.fragment.app.Fragment; 11 | 12 | import com.yunyang.guidepageslidingintro.R; 13 | 14 | /** 15 | * Created by YunYang. 16 | * Date: 2019/9/28 17 | * Time: 13:21 18 | * Des: ViewPager+Fragment 19 | */ 20 | public class EmptyFragment extends Fragment { 21 | 22 | public EmptyFragment() { 23 | } 24 | 25 | public static EmptyFragment newInstance() { 26 | EmptyFragment fragment = new EmptyFragment(); 27 | Bundle args = new Bundle(); 28 | fragment.setArguments(args); 29 | return fragment; 30 | } 31 | 32 | @Nullable 33 | @Override 34 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { 35 | return inflater.inflate(R.layout.fragment_empty_vp, container, false); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/layout/activity_guide.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/layout/fragment_empty_vp.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/raw/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/raw/back.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/raw/front.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/guidepageslidingintro/src/main/res/raw/front.png -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 使用Lottie炫酷引导页 3 | 4 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /guidepageslidingintro/src/test/java/com/yunyang/guidepageslidingintro/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.yunyang.guidepageslidingintro; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /indexscanicon/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /indexscanicon/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | 6 | defaultConfig { 7 | applicationId "com.xiangrong.yunyang.indexscanicon" 8 | minSdkVersion 15 9 | targetSdkVersion 28 10 | versionCode 1 11 | versionName "1.0" 12 | 13 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 14 | 15 | } 16 | 17 | buildTypes { 18 | release { 19 | minifyEnabled false 20 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 21 | } 22 | } 23 | 24 | } 25 | 26 | dependencies { 27 | implementation fileTree(dir: 'libs', include: ['*.jar']) 28 | implementation 'androidx.appcompat:appcompat:1.1.0' 29 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 30 | testImplementation 'junit:junit:4.12' 31 | androidTestImplementation 'androidx.test:runner:1.2.0' 32 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' 33 | } 34 | -------------------------------------------------------------------------------- /indexscanicon/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /indexscanicon/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /indexscanicon/src/main/java/com/xiangrong/yunyang/indexscanicon/adapter/FragmentIndexAdapter.java: -------------------------------------------------------------------------------- 1 | package com.xiangrong.yunyang.indexscanicon.adapter; 2 | 3 | import androidx.fragment.app.Fragment; 4 | import androidx.fragment.app.FragmentManager; 5 | import androidx.fragment.app.FragmentPagerAdapter; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * 作者 yunyang 11 | * 时间 2019/3/13 10:48 12 | * 文件 YunyangBlogDemo 13 | * 描述 主页面的Fragment适配器 14 | */ 15 | public class FragmentIndexAdapter extends FragmentPagerAdapter { 16 | 17 | private List fragments; 18 | 19 | public FragmentIndexAdapter(FragmentManager fm, List fragments) { 20 | super(fm); 21 | this.fragments = fragments; 22 | } 23 | 24 | public Fragment getItem(int fragment) { 25 | return fragments.get(fragment); 26 | } 27 | 28 | public int getCount() { 29 | return fragments.size(); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /indexscanicon/src/main/java/com/xiangrong/yunyang/indexscanicon/customview/MyViewPager.java: -------------------------------------------------------------------------------- 1 | package com.xiangrong.yunyang.indexscanicon.customview; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | import android.view.MotionEvent; 6 | 7 | import androidx.annotation.NonNull; 8 | import androidx.annotation.Nullable; 9 | import androidx.viewpager.widget.ViewPager; 10 | 11 | /** 12 | * 作者 yunyang 13 | * 时间 2019/3/13 10:20 14 | * 文件 YunyangBlogDemo 15 | * 描述 不滑动的ViewPager 16 | */ 17 | public class MyViewPager extends ViewPager { 18 | 19 | private boolean scrollble = false; 20 | 21 | public MyViewPager(@NonNull Context context) { 22 | this(context, null); 23 | } 24 | 25 | public MyViewPager(@NonNull Context context, @Nullable AttributeSet attrs) { 26 | super(context, attrs); 27 | } 28 | 29 | @Override 30 | public boolean onTouchEvent(MotionEvent ev) { 31 | if (scrollble == false) { 32 | return false; 33 | } else { 34 | return super.onTouchEvent(ev); 35 | } 36 | } 37 | 38 | @Override 39 | public boolean onInterceptTouchEvent(MotionEvent ev) { 40 | if (scrollble == false) { 41 | return false; 42 | } else { 43 | return super.onInterceptTouchEvent(ev); 44 | } 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /indexscanicon/src/main/java/com/xiangrong/yunyang/indexscanicon/fragment/ExampleFragment.java: -------------------------------------------------------------------------------- 1 | package com.xiangrong.yunyang.indexscanicon.fragment; 2 | 3 | import android.os.Bundle; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.TextView; 8 | 9 | import androidx.annotation.NonNull; 10 | import androidx.annotation.Nullable; 11 | import androidx.fragment.app.Fragment; 12 | 13 | import com.xiangrong.yunyang.indexscanicon.R; 14 | 15 | /** 16 | * 作者 yunyang 17 | * 时间 2019/3/13 10:34 18 | * 文件 YunyangBlogDemo 19 | * 描述 示例Fragment 20 | */ 21 | public class ExampleFragment extends Fragment { 22 | 23 | private static final String SECTION_STRING = "fragment_string"; 24 | 25 | public static ExampleFragment newInstance(String sectionNumber) { 26 | ExampleFragment fragment = new ExampleFragment(); 27 | Bundle args = new Bundle(); 28 | args.putString(SECTION_STRING, sectionNumber); 29 | fragment.setArguments(args); 30 | return fragment; 31 | } 32 | 33 | @Nullable 34 | @Override 35 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { 36 | View view = inflater.inflate(R.layout.fragment_example, container, false); 37 | TextView textView = (TextView) view.findViewById(R.id.index_bottom_bar_fragment_example); 38 | textView.setText(getString(R.string.fragment_example_string, getArguments().getString(SECTION_STRING))); 39 | return view; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/drawable/bottom_bar_text_color_select.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/drawable/index_bottom_bar_image_select_dynamic_state.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/drawable/index_bottom_bar_image_select_home.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/drawable/index_bottom_bar_image_select_integral.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/drawable/index_bottom_bar_image_select_me.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/layout/fragment_example.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | 14 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/bottom_bar_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/bottom_bar_background.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_dynamic_state_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_dynamic_state_select.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_dynamic_state_un_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_dynamic_state_un_select.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_home_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_home_select.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_home_un_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_home_un_select.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_integral_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_integral_select.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_integral_un_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_integral_un_select.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_me_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_me_select.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_me_un_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_me_un_select.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_scan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xhdpi/index_bottom_bar_scan.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WarmYunyang/YunyangBlogDemo/f3c48922c21e7dc42e8a6bfa23116ab3e871a551/indexscanicon/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /indexscanicon/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #008577 5 | #00574B 6 | #D81B60 7 | 8 | #F35A40 9 | #ff000000 10 | #00FFFFFF 11 | 12 | 13 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | IndexScanIcon 3 | 首页 4 | 动态 5 | 积分 6 | 我的 7 | 示例 %1$s 8 | 9 | -------------------------------------------------------------------------------- /indexscanicon/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /mdviewpager/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /mdviewpager/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | defaultConfig { 6 | applicationId "com.yunyang.yunyangblogdemo" 7 | minSdkVersion 15 8 | targetSdkVersion 28 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | implementation fileTree(dir: 'libs', include: ['*.jar']) 23 | implementation 'androidx.appcompat:appcompat:1.1.0' 24 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 25 | testImplementation 'junit:junit:4.12' 26 | androidTestImplementation 'androidx.test:runner:1.2.0' 27 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' 28 | // design 29 | implementation 'com.google.android.material:material:1.0.0' 30 | } 31 | -------------------------------------------------------------------------------- /mdviewpager/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /mdviewpager/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /mdviewpager/src/main/java/com/yunyang/yunyangblogdemo/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.yunyang.yunyangblogdemo; 2 | 3 | import android.os.Bundle; 4 | 5 | import androidx.appcompat.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 | 15 | } 16 | -------------------------------------------------------------------------------- /mdviewpager/src/main/java/com/yunyang/yunyangblogdemo/adapter/GuidePagerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.yunyang.yunyangblogdemo.adapter; 2 | 3 | import androidx.fragment.app.Fragment; 4 | import androidx.fragment.app.FragmentManager; 5 | import androidx.fragment.app.FragmentPagerAdapter; 6 | 7 | import com.yunyang.yunyangblogdemo.fragment.GuideFragment; 8 | 9 | /** 10 | * 作者 yunyang 11 | * 时间 2018/11/13 11:20 12 | * 文件 YunyangBlogDemo 13 | * 描述 引导页ViewPager的适配器 14 | */ 15 | public class GuidePagerAdapter extends FragmentPagerAdapter { 16 | 17 | public GuidePagerAdapter(FragmentManager fm) { 18 | super(fm); 19 | } 20 | 21 | @Override 22 | public Fragment getItem(int position) { 23 | return GuideFragment.newInstance(position + 1); 24 | 25 | } 26 | 27 | @Override 28 | public int getCount() { 29 | return 3; 30 | } 31 | 32 | @Override 33 | public CharSequence getPageTitle(int position) { 34 | switch (position) { 35 | case 0: 36 | return "PAGE ONE"; 37 | case 1: 38 | return "PAGE TWO"; 39 | case 2: 40 | return "PAGE THREE"; 41 | } 42 | return null; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /mdviewpager/src/main/java/com/yunyang/yunyangblogdemo/fragment/GuideFragment.java: -------------------------------------------------------------------------------- 1 | package com.yunyang.yunyangblogdemo.fragment; 2 | 3 | import android.os.Bundle; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.ImageView; 8 | import android.widget.TextView; 9 | 10 | import androidx.fragment.app.Fragment; 11 | 12 | import com.yunyang.yunyangblogdemo.R; 13 | 14 | /** 15 | * 作者 yunyang 16 | * 时间 2018/11/13 11:23 17 | * 文件 YunyangBlogDemo 18 | * 描述 引导页ViewPager中Fragment 19 | */ 20 | public class GuideFragment extends Fragment { 21 | 22 | private static final String ARG_SECTION_NUMBER = "guide_number"; 23 | 24 | private ImageView mImageView; 25 | 26 | private int[] bgs = new int[]{ 27 | R.drawable.ic_like_24dp, 28 | R.drawable.ic_house_24dp, 29 | R.drawable.ic_helper_24dp}; 30 | 31 | public static GuideFragment newInstance(int sectionNumber) { 32 | GuideFragment fragment = new GuideFragment(); 33 | Bundle args = new Bundle(); 34 | args.putInt(ARG_SECTION_NUMBER, sectionNumber); 35 | fragment.setArguments(args); 36 | return fragment; 37 | } 38 | 39 | @Override 40 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 41 | View view = inflater.inflate(R.layout.fragment_pager, container, false); 42 | TextView textView = (TextView) view.findViewById(R.id.fragment_pager_text_label); 43 | textView.setText(getString(R.string.guide_format, getArguments().getInt(ARG_SECTION_NUMBER))); 44 | mImageView = (ImageView) view.findViewById(R.id.fragment_pager_img); 45 | mImageView.setBackgroundResource(bgs[getArguments().getInt(ARG_SECTION_NUMBER) - 1]); 46 | return view; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /mdviewpager/src/main/java/com/yunyang/yunyangblogdemo/utils/Utils.java: -------------------------------------------------------------------------------- 1 | package com.yunyang.yunyangblogdemo.utils; 2 | 3 | import android.content.Context; 4 | import android.content.SharedPreferences; 5 | import android.graphics.PorterDuff; 6 | import android.graphics.drawable.Drawable; 7 | import androidx.core.graphics.drawable.DrawableCompat; 8 | 9 | /** 10 | * 作者 yunyang 11 | * 时间 2018/11/13 11:39 12 | * 文件 YunyangBlogDemo 13 | * 描述 工具类 14 | */ 15 | public class Utils { 16 | 17 | private static final String PREFERENCES_FILE = "sp_settings"; 18 | 19 | public static boolean readSharedSetting(Context context, String settingSPName, boolean defaultValue) { 20 | SharedPreferences sharedPref = context.getSharedPreferences(PREFERENCES_FILE, Context.MODE_PRIVATE); 21 | return sharedPref.getBoolean(settingSPName, defaultValue); 22 | } 23 | 24 | public static void saveSharedSetting(Context context, String settingSPName, boolean settingValue) { 25 | SharedPreferences sharedPref = context.getSharedPreferences(PREFERENCES_FILE, Context.MODE_PRIVATE); 26 | SharedPreferences.Editor editor = sharedPref.edit(); 27 | editor.putBoolean(settingSPName, settingValue); 28 | editor.apply(); 29 | } 30 | 31 | public static Drawable tintMyDrawable(Drawable drawable, int color) { 32 | drawable = DrawableCompat.wrap(drawable); 33 | DrawableCompat.setTint(drawable, color); 34 | DrawableCompat.setTintMode(drawable, PorterDuff.Mode.SRC_IN); 35 | return drawable; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/anim/close_enter_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/anim/close_exit_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/anim/enter_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/anim/exit_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/drawable/ic_chevron_right_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/drawable/ic_helper_24dp.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/drawable/ic_house_24dp.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/drawable/ic_like_24dp.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/drawable/indicator_selected.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/drawable/indicator_unselected.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 17 | 18 | -------------------------------------------------------------------------------- /mdviewpager/src/main/res/layout/activity_pager.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | 23 | 24 | 32 | 33 |