├── .gitignore
├── GradientDemo
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ └── styles.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
│ │ │ │ ├── drawable
│ │ │ │ │ └── shape_gradient.xml
│ │ │ │ └── layout
│ │ │ │ │ └── activity_main.xml
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── mei_husky
│ │ │ │ │ └── gradientdemo
│ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ └── MyView.java
│ │ │ └── AndroidManifest.xml
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── mei_husky
│ │ │ │ └── gradientdemo
│ │ │ │ └── ExampleUnitTest.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── mei_husky
│ │ │ └── gradientdemo
│ │ │ └── ExampleInstrumentedTest.java
│ ├── proguard-rules.pro
│ └── build.gradle
├── settings.gradle
├── .idea
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── dictionaries
│ │ └── fcn_mq.xml
│ ├── kotlinc.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ ├── gradle.xml
│ └── compiler.xml
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .gitignore
├── build.gradle
├── gradle.properties
└── gradlew.bat
├── SampleProxy
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ └── styles.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
│ │ │ │ └── layout
│ │ │ │ │ └── activity_main.xml
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── qingmei2
│ │ │ │ │ └── sampleproxy
│ │ │ │ │ └── MainActivity.java
│ │ │ └── AndroidManifest.xml
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── qingmei2
│ │ │ │ └── sampleproxy
│ │ │ │ ├── static_proxy
│ │ │ │ ├── Subject.java
│ │ │ │ ├── RealSubject.java
│ │ │ │ └── SubjectProxy.java
│ │ │ │ ├── dynamic_proxy
│ │ │ │ ├── Subject.java
│ │ │ │ ├── RealSubject.java
│ │ │ │ └── DynamicProxy.java
│ │ │ │ └── ProxyTest.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── qingmei2
│ │ │ └── sampleproxy
│ │ │ └── ExampleInstrumentedTest.java
│ ├── proguard-rules.pro
│ └── build.gradle
├── settings.gradle
├── .gitignore
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── build.gradle
├── gradle.properties
└── gradlew.bat
├── SampleBaiduTieba
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ ├── dimens.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── drawable
│ │ │ │ │ └── cancel.png
│ │ │ │ ├── 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
│ │ │ │ │ ├── item_tieba_list.xml
│ │ │ │ │ └── activity_main.xml
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── mei_husky
│ │ │ │ └── samplebaidutieba
│ │ │ │ └── Tieba
│ │ │ │ └── MyTiebaAdapter.java
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── mei_husky
│ │ │ │ └── samplebaidutieba
│ │ │ │ └── ExampleUnitTest.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── mei_husky
│ │ │ └── samplebaidutieba
│ │ │ └── ExampleInstrumentedTest.java
│ ├── proguard-rules.pro
│ └── build.gradle
├── settings.gradle
├── .idea
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── encodings.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ ├── compiler.xml
│ ├── gradle.xml
│ └── misc.xml
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .gitignore
├── build.gradle
├── gradle.properties
└── gradlew.bat
├── Sample_Impression
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── dimens.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── drawable
│ │ │ │ │ ├── cancel.png
│ │ │ │ │ └── cancle.png
│ │ │ │ ├── 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
│ │ │ │ │ ├── item_rv.xml
│ │ │ │ │ ├── include_title_buttons.xml
│ │ │ │ │ ├── activity_main.xml
│ │ │ │ │ └── view_impression.xml
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── mei_husky
│ │ │ │ │ └── sample_impression
│ │ │ │ │ ├── MyUtils.java
│ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ ├── recyclerview
│ │ │ │ │ └── MyRvAdapter.java
│ │ │ │ │ └── view
│ │ │ │ │ └── ImpressionView.java
│ │ │ └── AndroidManifest.xml
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── mei_husky
│ │ │ │ └── sample_impression
│ │ │ │ └── ExampleUnitTest.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── mei_husky
│ │ │ └── sample_impression
│ │ │ └── ExampleInstrumentedTest.java
│ ├── proguard-rules.pro
│ └── build.gradle
├── settings.gradle
├── .idea
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── encodings.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ ├── compiler.xml
│ ├── gradle.xml
│ └── misc.xml
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .gitignore
├── build.gradle
├── gradle.properties
└── gradlew.bat
├── Sample_Matisse
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ └── styles.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
│ │ │ │ └── layout
│ │ │ │ │ └── activity_main.xml
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── qingmei2
│ │ │ │ └── sample_matisse
│ │ │ │ └── MainActivity.java
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── qingmei2
│ │ │ │ └── sample_matisse
│ │ │ │ └── ExampleUnitTest.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── qingmei2
│ │ │ └── sample_matisse
│ │ │ └── ExampleInstrumentedTest.java
│ ├── proguard-rules.pro
│ └── build.gradle
├── settings.gradle
├── .idea
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── dictionaries
│ │ └── fcn_mq.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ ├── gradle.xml
│ └── compiler.xml
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .gitignore
├── build.gradle
├── gradle.properties
└── gradlew.bat
├── SampleNetErrorUtil
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ └── styles.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
│ │ │ │ └── layout
│ │ │ │ │ └── activity_main.xml
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── mei_husky
│ │ │ │ │ └── sampleneterrorutil
│ │ │ │ │ ├── common
│ │ │ │ │ ├── ConstantsApi.java
│ │ │ │ │ └── Constants.java
│ │ │ │ │ ├── model
│ │ │ │ │ ├── util
│ │ │ │ │ │ ├── MyResponse.java
│ │ │ │ │ │ └── MySubscriber.java
│ │ │ │ │ ├── api
│ │ │ │ │ │ └── DoubanMovieService.java
│ │ │ │ │ ├── bean
│ │ │ │ │ │ └── MovieTheatersModel.java
│ │ │ │ │ └── manager
│ │ │ │ │ │ └── MovieApiManager.java
│ │ │ │ │ └── ui
│ │ │ │ │ └── MainActivity.java
│ │ │ └── AndroidManifest.xml
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── mei_husky
│ │ │ │ └── sampleneterrorutil
│ │ │ │ └── ExampleUnitTest.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── mei_husky
│ │ │ └── sampleneterrorutil
│ │ │ ├── ExampleInstrumentedTest.java
│ │ │ └── ApiTest.java
│ ├── proguard-rules.pro
│ └── build.gradle
├── settings.gradle
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .gitignore
├── build.gradle
├── gradle.properties
└── gradlew.bat
├── SampleTextViewLink
├── app
│ ├── .gitignore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_round.png
│ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_round.png
│ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_round.png
│ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_round.png
│ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ ├── ic_launcher_round.png
│ │ │ │ │ └── ic_launcher_foreground.png
│ │ │ │ ├── mipmap-anydpi-v26
│ │ │ │ │ ├── ic_launcher.xml
│ │ │ │ │ └── ic_launcher_round.xml
│ │ │ │ └── layout
│ │ │ │ │ └── activity_main.xml
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── qingmei2
│ │ │ │ └── sampletextviewlink
│ │ │ │ └── MainActivity.java
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── qingmei2
│ │ │ │ └── sampletextviewlink
│ │ │ │ └── ExampleUnitTest.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── qingmei2
│ │ │ └── sampletextviewlink
│ │ │ └── ExampleInstrumentedTest.java
│ ├── proguard-rules.pro
│ └── build.gradle
├── settings.gradle
├── .gitignore
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── build.gradle
├── gradle.properties
└── gradlew.bat
├── Demo_More_Types_Adapters
├── app
│ ├── .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
│ │ │ │ │ ├── listitem_type_2.xml
│ │ │ │ │ ├── listitem_type_3.xml
│ │ │ │ │ ├── listitem_type_1.xml
│ │ │ │ │ └── activity_main.xml
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── mei_husky
│ │ │ │ │ └── demo_more_types_adapters
│ │ │ │ │ ├── factory
│ │ │ │ │ ├── ItemInterface.java
│ │ │ │ │ ├── ItemType2.java
│ │ │ │ │ ├── ItemType1.java
│ │ │ │ │ ├── ItemType3.java
│ │ │ │ │ ├── ItemFactory.java
│ │ │ │ │ └── ItemFactoryList.java
│ │ │ │ │ ├── holder
│ │ │ │ │ ├── BaseAmazViewHolder.java
│ │ │ │ │ ├── ItemHolder2.java
│ │ │ │ │ ├── ItemHolder3.java
│ │ │ │ │ └── ItemHolder1.java
│ │ │ │ │ ├── MyRecyclerViewAmazAdapter.java
│ │ │ │ │ └── MainActivity.java
│ │ │ └── AndroidManifest.xml
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── mei_husky
│ │ │ │ └── demo_more_types_adapters
│ │ │ │ └── ExampleUnitTest.java
│ │ └── androidTest
│ │ │ └── java
│ │ │ └── com
│ │ │ └── mei_husky
│ │ │ └── demo_more_types_adapters
│ │ │ └── ExampleInstrumentedTest.java
│ ├── proguard-rules.pro
│ └── build.gradle
├── settings.gradle
├── .idea
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── encodings.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ ├── compiler.xml
│ ├── gradle.xml
│ └── misc.xml
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── .gitignore
├── build.gradle
├── gradle.properties
└── gradlew.bat
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | *.mp4
3 |
--------------------------------------------------------------------------------
/GradientDemo/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/SampleProxy/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/Sample_Impression/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/GradientDemo/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/SampleProxy/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/SampleTextViewLink/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/Sample_Impression/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/Sample_Matisse/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/GradientDemo/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | SampleProxy
3 |
4 |
--------------------------------------------------------------------------------
/GradientDemo/.idea/dictionaries/fcn_mq.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | GradientDemo
3 |
4 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/Sample_Impression/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/Sample_Matisse/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/Sample_Matisse/.idea/dictionaries/fcn_mq.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | SampleBaiduTieba
3 |
4 |
--------------------------------------------------------------------------------
/SampleProxy/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | .idea
5 | .DS_Store
6 | /build
7 | /captures
8 | .externalNativeBuild
9 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Sample_Matisse
3 |
4 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | SampleNetErrorUtil
3 |
4 |
--------------------------------------------------------------------------------
/SampleTextViewLink/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | .idea
5 | .DS_Store
6 | /build
7 | /captures
8 | .externalNativeBuild
9 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | SampleTextViewLink
3 |
4 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Sample_Impression
3 |
4 |
--------------------------------------------------------------------------------
/GradientDemo/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/SampleProxy/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Sample_Matisse/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Demo_More_Types_Adapters
3 |
4 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleBaiduTieba/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Sample_Impression/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Impression/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/drawable/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleBaiduTieba/app/src/main/res/drawable/cancel.png
--------------------------------------------------------------------------------
/SampleNetErrorUtil/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/SampleTextViewLink/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/drawable/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Impression/app/src/main/res/drawable/cancel.png
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/drawable/cancle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Impression/app/src/main/res/drawable/cancle.png
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Demo_More_Types_Adapters/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleBaiduTieba/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleBaiduTieba/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GradientDemo/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleBaiduTieba/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleBaiduTieba/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleBaiduTieba/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Impression/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Impression/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Impression/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Impression/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/GradientDemo/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleBaiduTieba/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleProxy/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Impression/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Impression/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Sample_Matisse/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Demo_More_Types_Adapters/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Demo_More_Types_Adapters/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Sample_Matisse/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Demo_More_Types_Adapters/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Demo_More_Types_Adapters/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/Demo_More_Types_Adapters/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/SampleNetErrorUtil/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea
5 | /.idea/workspace.xml
6 | /.idea/libraries
7 | .DS_Store
8 | /build
9 | /captures
10 | .externalNativeBuild
11 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleNetErrorUtil/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/SampleBaiduTieba/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qingmei2/Samples-Android/HEAD/SampleTextViewLink/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/Sample_Impression/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/GradientDemo/.idea/kotlinc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/GradientDemo/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon May 22 19:22:03 CST 2017
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-3.3-all.zip
7 |
--------------------------------------------------------------------------------
/SampleProxy/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Oct 25 15:17:30 CST 2017
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-3.3-all.zip
7 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Apr 19 10:00:38 CST 2017
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-3.3-all.zip
7 |
--------------------------------------------------------------------------------
/SampleTextViewLink/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Sep 19 15:24:19 CST 2017
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.1-all.zip
7 |
--------------------------------------------------------------------------------
/Sample_Matisse/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Aug 14 17:37:47 CST 2017
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-3.3-all.zip
7 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
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-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/Sample_Impression/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
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-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 28 10:00:20 PST 2015
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-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/test/java/com/qingmei2/sampleproxy/static_proxy/Subject.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampleproxy.static_proxy;
2 |
3 | /**
4 | * Created by QingMei on 2017/10/25.
5 | * desc:
6 | */
7 |
8 | public interface Subject {
9 |
10 | void enjoyMusic();
11 |
12 | void enjoyFood();
13 |
14 | void enjoyBeer();
15 | }
16 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/drawable/shape_gradient.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/test/java/com/qingmei2/sampleproxy/dynamic_proxy/Subject.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampleproxy.dynamic_proxy;
2 |
3 | /**
4 | * Created by QingMei on 2017/10/25.
5 | * desc:
6 | */
7 |
8 | public interface Subject {
9 |
10 | void enjoyMusic();
11 |
12 | void enjoyFood();
13 |
14 | void enjoyBeer();
15 | }
16 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/factory/ItemInterface.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters.factory;
2 |
3 | /**
4 | * Created by QingMei on 2017/2/20 17:06
5 | * email:mei_husky@qq.com
6 | * desc:Used to
7 | */
8 |
9 | public interface ItemInterface {
10 |
11 | int type(ItemFactory factory);
12 | }
13 |
--------------------------------------------------------------------------------
/GradientDemo/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Samples
2 | 目录
3 |
4 | Sample_Impressions --> recycleView+CardView demo
5 |
6 | SampleBaiduTieba --> 仿百度贴吧首页列表demo (RecyclerView+ItemTouchHelper)
7 |
8 | Demo_More_Types_Adapters --> 面向接口优雅地实现多类型列表
9 |
10 | SampleNetErrorUtil --> RxJava+Retrofit 网络异常处理Util
11 |
12 | GradientDemo --> 颜色渐变案例
13 |
14 | SampleTextViewLink --> TextView部分文字实现点击事件案例
15 |
16 | SampleProxy --> Java代理相关代码(test文件夹下)
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/java/com/mei_husky/sampleneterrorutil/common/ConstantsApi.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil.common;
2 |
3 | /**
4 | * Created by fcn-mq on 2017/4/14.
5 | * API相关的常数
6 | */
7 |
8 | public interface ConstantsApi {
9 |
10 | String BASE_DOUBAN = "https://api.douban.com";
11 | // GET 正在热映
12 | String douban_in_theaters = "/v2/movsie/in_theaters";
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/java/com/mei_husky/sample_impression/MyUtils.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sample_impression;
2 |
3 | import android.util.Log;
4 |
5 | /**
6 | * Created by QingMei on 2017/1/15 13:59
7 | * email:mei_husky@qq.com
8 | * desc:Used to
9 | */
10 |
11 | public class MyUtils {
12 |
13 | public static void LogI(String content) {
14 | Log.i("test",content);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Sample_Matisse/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Sample_Impression/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/java/com/qingmei2/sampleproxy/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampleproxy;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 |
6 | public class MainActivity extends AppCompatActivity {
7 |
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | setContentView(R.layout.activity_main);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/java/com/mei_husky/gradientdemo/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.gradientdemo;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 |
6 | public class MainActivity extends AppCompatActivity {
7 |
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | setContentView(R.layout.activity_main);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/java/com/mei_husky/sampleneterrorutil/common/Constants.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil.common;
2 |
3 | /**
4 | * Created by fcn-mq on 2017/4/11.
5 | */
6 |
7 | public class Constants {
8 |
9 | public static final boolean debug = true;
10 |
11 | public class Sp {
12 |
13 | }
14 |
15 | public class ImageLoader {
16 |
17 | public static final int GLIDE = -100;
18 |
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/test/java/com/mei_husky/gradientdemo/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.gradientdemo;
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() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/layout/listitem_type_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
12 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/test/java/com/qingmei2/sample_matisse/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sample_matisse;
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() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/layout/listitem_type_3.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
13 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/test/java/com/mei_husky/samplebaidutieba/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.samplebaidutieba;
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() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/Sample_Impression/app/src/test/java/com/mei_husky/sample_impression/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sample_impression;
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() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/test/java/com/mei_husky/sampleneterrorutil/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil;
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() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/test/java/com/qingmei2/sampletextviewlink/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampletextviewlink;
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() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/layout/item_rv.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
10 |
11 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/layout/listitem_type_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
13 |
14 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/factory/ItemType2.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters.factory;
2 |
3 | /**
4 | * Created by QingMei on 2017/2/20 17:07
5 | * email:mei_husky@qq.com
6 | * desc:Used to
7 | */
8 |
9 | public class ItemType2 implements ItemInterface {
10 | public int values;
11 |
12 | public ItemType2(int values) {
13 | this.values = values;
14 | }
15 | @Override
16 | public int type(ItemFactory factory) {
17 | return factory.type(this);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/test/java/com/mei_husky/demo_more_types_adapters/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters;
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() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/factory/ItemType1.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters.factory;
2 |
3 | /**
4 | * Created by QingMei on 2017/2/20 17:07
5 | * email:mei_husky@qq.com
6 | * desc:Used to
7 | */
8 |
9 | public class ItemType1 implements ItemInterface {
10 |
11 | public int values;
12 |
13 | public ItemType1(int values) {
14 | this.values = values;
15 | }
16 |
17 | @Override
18 | public int type(ItemFactory factory) {
19 | return factory.type(this);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/factory/ItemType3.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters.factory;
2 |
3 | /**
4 | * Created by QingMei on 2017/2/20 17:07
5 | * email:mei_husky@qq.com
6 | * desc:Used to
7 | */
8 |
9 | public class ItemType3 implements ItemInterface {
10 |
11 | public int values;
12 |
13 | public ItemType3(int values) {
14 | this.values = values;
15 | }
16 |
17 | @Override
18 | public int type(ItemFactory factory) {
19 | return factory.type(this);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/test/java/com/qingmei2/sampleproxy/dynamic_proxy/RealSubject.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampleproxy.dynamic_proxy;
2 |
3 | /**
4 | * Created by QingMei on 2017/10/25.
5 | * desc:
6 | */
7 |
8 | public class RealSubject implements Subject {
9 |
10 | @Override
11 | public void enjoyMusic() {
12 | System.out.println("enjoyMusic");
13 | }
14 |
15 | @Override
16 | public void enjoyFood() {
17 | System.out.println("enjoyFood");
18 | }
19 |
20 | @Override
21 | public void enjoyBeer() {
22 | System.out.println("enjoyBeer");
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/test/java/com/qingmei2/sampleproxy/static_proxy/RealSubject.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampleproxy.static_proxy;
2 |
3 | /**
4 | * Created by QingMei on 2017/10/25.
5 | * desc:
6 | */
7 |
8 | public class RealSubject implements Subject {
9 |
10 | @Override
11 | public void enjoyMusic() {
12 | System.out.println("enjoyMusic");
13 | }
14 |
15 | @Override
16 | public void enjoyFood() {
17 | System.out.println("enjoyFood");
18 | }
19 |
20 | @Override
21 | public void enjoyBeer() {
22 | System.out.println("enjoyBeer");
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/SampleProxy/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.3.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/GradientDemo/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.3.1'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/Sample_Matisse/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.3.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/Sample_Impression/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | }
19 | }
20 |
21 | task clean(type: Delete) {
22 | delete rootProject.buildDir
23 | }
24 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/factory/ItemFactory.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters.factory;
2 |
3 | import android.view.View;
4 |
5 | import com.mei_husky.demo_more_types_adapters.holder.BaseAmazViewHolder;
6 |
7 | /**
8 | * Created by QingMei on 2017/2/20 17:04
9 | * email:mei_husky@qq.com
10 | * desc:Used to
11 | */
12 | public interface ItemFactory {
13 |
14 | int type(ItemType1 type1);
15 |
16 | int type(ItemType2 type2);
17 |
18 | int type(ItemType3 type3);
19 |
20 | BaseAmazViewHolder createViewHolder(int type, View itemView);
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/GradientDemo/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/test/java/com/qingmei2/sampleproxy/static_proxy/SubjectProxy.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampleproxy.static_proxy;
2 |
3 | /**
4 | * Created by QingMei on 2017/10/25.
5 | * desc:
6 | */
7 |
8 | public class SubjectProxy implements Subject {
9 |
10 | private Subject subject = new RealSubject();
11 |
12 | @Override
13 | public void enjoyMusic() {
14 | subject.enjoyMusic();
15 | }
16 |
17 | @Override
18 | public void enjoyFood() {
19 | subject.enjoyFood();
20 | }
21 |
22 | @Override
23 | public void enjoyBeer() {
24 | subject.enjoyBeer();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Sample_Matisse/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Sample_Impression/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.3.0'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | jcenter()
18 | maven { url 'https://jitpack.io' }
19 |
20 | }
21 | }
22 |
23 | task clean(type: Delete) {
24 | delete rootProject.buildDir
25 | }
26 |
--------------------------------------------------------------------------------
/SampleTextViewLink/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.0.0-beta5'
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 | }
23 | }
24 |
25 | task clean(type: Delete) {
26 | delete rootProject.buildDir
27 | }
28 |
--------------------------------------------------------------------------------
/GradientDemo/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Sample_Matisse/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/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 M:\AndroidStudio\sdk/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 |
--------------------------------------------------------------------------------
/Sample_Impression/app/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 M:\AndroidStudio\sdk/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 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/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 M:\AndroidStudio\sdk/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 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/GradientDemo/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Sample_Impression/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Sample_Matisse/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Sample_Impression/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/GradientDemo/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 |
--------------------------------------------------------------------------------
/SampleProxy/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 |
--------------------------------------------------------------------------------
/Sample_Matisse/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 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/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 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/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 |
--------------------------------------------------------------------------------
/SampleTextViewLink/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 |
--------------------------------------------------------------------------------
/Sample_Impression/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_More_Types_Adapters/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 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/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 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
15 |
16 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
16 |
17 |
21 |
22 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/androidTest/java/com/qingmei2/sampleproxy/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampleproxy;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.qingmei2.sampleproxy", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/androidTest/java/com/mei_husky/gradientdemo/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.gradientdemo;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.mei_husky.gradientdemo", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/java/com/mei_husky/sampleneterrorutil/model/util/MyResponse.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil.model.util;
2 |
3 | /**
4 | * 网络返回基类
5 | * Created by fcn-mq on 2017/4/19.
6 | */
7 |
8 | public class MyResponse {
9 |
10 | public int code; //非status code,而是服务器根据自己的规范返回的code
11 |
12 | public String msg;
13 |
14 | public T data;
15 |
16 | public int getCode() {
17 | return code;
18 | }
19 |
20 | public void setCode(int code) {
21 | this.code = code;
22 | }
23 |
24 | public String getMsg() {
25 | return msg;
26 | }
27 |
28 | public void setMsg(String msg) {
29 | this.msg = msg;
30 | }
31 |
32 | public T getData() {
33 | return data;
34 | }
35 |
36 | public void setData(T data) {
37 | this.data = data;
38 | }
39 |
40 | public boolean isOk() {
41 | return code == 0;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/androidTest/java/com/qingmei2/sample_matisse/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sample_matisse;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.qingmei2.sample_matisse", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/androidTest/java/com/mei_husky/samplebaidutieba/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.samplebaidutieba;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.mei_husky.samplebaidutieba", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/androidTest/java/com/qingmei2/sampletextviewlink/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampletextviewlink;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.qingmei2.sampletextviewlink", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/androidTest/java/com/mei_husky/sample_impression/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sample_impression;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.mei_husky.sample_impression", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/androidTest/java/com/mei_husky/sampleneterrorutil/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.mei_husky.sampleneterrorutil", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/androidTest/java/com/mei_husky/demo_more_types_adapters/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumentation test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.mei_husky.demo_more_types_adapters", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
22 |
23 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/test/java/com/qingmei2/sampleproxy/dynamic_proxy/DynamicProxy.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampleproxy.dynamic_proxy;
2 |
3 | import java.lang.reflect.InvocationHandler;
4 | import java.lang.reflect.Method;
5 | import java.lang.reflect.Proxy;
6 |
7 | /**
8 | * Created by QingMei on 2017/10/25.
9 | * desc:
10 | */
11 |
12 | public class DynamicProxy implements InvocationHandler {
13 |
14 | private Object subject;
15 |
16 | public DynamicProxy(Object subject) {
17 | this.subject = subject;
18 | }
19 |
20 | public Object bind() {
21 | return Proxy.newProxyInstance(subject.getClass().getClassLoader(),
22 | subject.getClass().getInterfaces(),
23 | this);
24 | }
25 |
26 | @Override
27 | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
28 |
29 | System.out.println("before -> method:" + method);
30 |
31 | method.invoke(subject, args);
32 |
33 | return null;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/GradientDemo/app/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 /Users/fcn-mq/Library/Android/sdk/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 |
19 | # Uncomment this to preserve the line number information for
20 | # debugging stack traces.
21 | #-keepattributes SourceFile,LineNumberTable
22 |
23 | # If you keep the line number information, uncomment this to
24 | # hide the original source file name.
25 | #-renamesourcefileattribute SourceFile
26 |
--------------------------------------------------------------------------------
/SampleProxy/app/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 /Users/fcn-mq/Library/Android/sdk/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 |
19 | # Uncomment this to preserve the line number information for
20 | # debugging stack traces.
21 | #-keepattributes SourceFile,LineNumberTable
22 |
23 | # If you keep the line number information, uncomment this to
24 | # hide the original source file name.
25 | #-renamesourcefileattribute SourceFile
26 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/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 /Users/fcn-mq/Library/Android/sdk/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 |
19 | # Uncomment this to preserve the line number information for
20 | # debugging stack traces.
21 | #-keepattributes SourceFile,LineNumberTable
22 |
23 | # If you keep the line number information, uncomment this to
24 | # hide the original source file name.
25 | #-renamesourcefileattribute SourceFile
26 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/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 /Users/fcn-mq/Library/Android/sdk/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 |
19 | # Uncomment this to preserve the line number information for
20 | # debugging stack traces.
21 | #-keepattributes SourceFile,LineNumberTable
22 |
23 | # If you keep the line number information, uncomment this to
24 | # hide the original source file name.
25 | #-renamesourcefileattribute SourceFile
26 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
16 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/SampleProxy/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 26
5 | buildToolsVersion "26.0.2"
6 | defaultConfig {
7 | applicationId "com.qingmei2.sampleproxy"
8 | minSdkVersion 16
9 | targetSdkVersion 26
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25 | exclude group: 'com.android.support', module: 'support-annotations'
26 | })
27 | compile 'com.android.support:appcompat-v7:26.+'
28 | compile 'com.android.support.constraint:constraint-layout:1.0.2'
29 | testCompile 'junit:junit:4.12'
30 | }
31 |
--------------------------------------------------------------------------------
/GradientDemo/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.2"
6 | defaultConfig {
7 | applicationId "com.mei_husky.gradientdemo"
8 | minSdkVersion 16
9 | targetSdkVersion 25
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25 | exclude group: 'com.android.support', module: 'support-annotations'
26 | })
27 | compile 'com.android.support:appcompat-v7:25.3.1'
28 | compile 'com.android.support.constraint:constraint-layout:1.0.1'
29 | testCompile 'junit:junit:4.12'
30 | }
31 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/layout/include_title_buttons.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.1"
6 | defaultConfig {
7 | applicationId "com.mei_husky.demo_more_types_adapters"
8 | minSdkVersion 16
9 | targetSdkVersion 25
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25 | exclude group: 'com.android.support', module: 'support-annotations'
26 | })
27 | compile 'com.android.support:appcompat-v7:25.0.1'
28 | testCompile 'junit:junit:4.12'
29 |
30 | compile 'com.android.support:recyclerview-v7:25.0.1'
31 | }
32 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
17 |
18 |
19 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 26
5 | buildToolsVersion "26.0.1"
6 | defaultConfig {
7 | applicationId "com.qingmei2.sampletextviewlink"
8 | minSdkVersion 16
9 | targetSdkVersion 26
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | implementation fileTree(dir: 'libs', include: ['*.jar'])
24 | implementation 'com.android.support:appcompat-v7:26.1.0'
25 | implementation 'com.android.support.constraint:constraint-layout:1.0.2'
26 | testImplementation 'junit:junit:4.12'
27 | androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {
28 | exclude group: 'com.android.support', module: 'support-annotations'
29 | })
30 | }
31 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.1"
6 | defaultConfig {
7 | applicationId "com.mei_husky.samplebaidutieba"
8 | minSdkVersion 16
9 | targetSdkVersion 25
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25 | exclude group: 'com.android.support', module: 'support-annotations'
26 | })
27 | compile 'com.android.support:appcompat-v7:25.0.1'
28 | testCompile 'junit:junit:4.12'
29 | compile 'com.android.support:recyclerview-v7:25.0.1'
30 | compile 'com.android.support:cardview-v7:25.0.1'
31 | }
32 |
--------------------------------------------------------------------------------
/Sample_Impression/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.1"
6 | defaultConfig {
7 | applicationId "com.mei_husky.sample_impression"
8 | minSdkVersion 16
9 | targetSdkVersion 25
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25 | exclude group: 'com.android.support', module: 'support-annotations'
26 | })
27 | compile 'com.android.support:appcompat-v7:25.0.1'
28 | testCompile 'junit:junit:4.12'
29 |
30 | compile 'com.android.support:cardview-v7:25.0.1'
31 | compile 'com.android.support:recyclerview-v7:25.0.1'
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/java/com/mei_husky/sampleneterrorutil/model/api/DoubanMovieService.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil.model.api;
2 |
3 |
4 | import com.mei_husky.sampleneterrorutil.common.ConstantsApi;
5 | import com.mei_husky.sampleneterrorutil.model.bean.MovieTheatersModel;
6 |
7 | import retrofit2.http.GET;
8 | import retrofit2.http.Query;
9 | import rx.Observable;
10 |
11 | /**
12 | * Created by fcn-mq on 2017/4/14.
13 | * 豆瓣-电影-API
14 | */
15 |
16 | public interface DoubanMovieService {
17 |
18 | /**
19 | * 200 OK
20 | *{
21 | * "city" :城市名
22 | * "title": "正在上映的电影-北京",
23 | * "total": 39, //总数
24 | * "start": 0, //从第几个开始获取
25 | * "count": 20, //请求的数量
26 | * "subjects": [, ...],
27 | *}
28 | * @return
29 | */
30 | @GET(ConstantsApi.douban_in_theaters)
31 | Observable requestTheatersMovies(@Query("city") String city,
32 | @Query("count") Integer count,
33 | @Query("start") Integer start);
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/holder/BaseAmazViewHolder.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters.holder;
2 |
3 | import android.support.v7.widget.RecyclerView;
4 | import android.util.SparseArray;
5 | import android.view.View;
6 |
7 | import com.mei_husky.demo_more_types_adapters.MyRecyclerViewAmazAdapter;
8 |
9 | /**
10 | * Created by QingMei on 2017/2/20 17:29
11 | * email:mei_husky@qq.com
12 | * desc:Used to
13 | */
14 |
15 | public abstract class BaseAmazViewHolder extends RecyclerView.ViewHolder {
16 |
17 | private SparseArray views;
18 |
19 | private View mItemView;
20 |
21 | public BaseAmazViewHolder(View itemView) {
22 | super(itemView);
23 | views=new SparseArray<>();
24 | this.mItemView=itemView;
25 | }
26 |
27 | public View getView(int resID){
28 | View view=views.get(resID);
29 | if (view == null) {
30 | view = mItemView.findViewById(resID);
31 | views.put(resID,view);
32 | }
33 |
34 | return view;
35 | }
36 |
37 | public abstract void setUpView(T model, int position, MyRecyclerViewAmazAdapter adapter);
38 | }
39 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 26
5 | buildToolsVersion "26.0.0"
6 | defaultConfig {
7 | applicationId "com.qingmei2.sample_matisse"
8 | minSdkVersion 16
9 | targetSdkVersion 26
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(dir: 'libs', include: ['*.jar'])
24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25 | exclude group: 'com.android.support', module: 'support-annotations'
26 | })
27 | compile 'com.android.support:appcompat-v7:25.3.1'
28 | compile 'com.android.support.constraint:constraint-layout:1.0.2'
29 | testCompile 'junit:junit:4.12'
30 | //知乎Image图片选择库
31 | compile 'com.zhihu.android:matisse:0.4.3'
32 | compile 'com.github.bumptech.glide:glide:3.8.0'
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/SampleProxy/app/src/test/java/com/qingmei2/sampleproxy/ProxyTest.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampleproxy;
2 |
3 | import com.qingmei2.sampleproxy.dynamic_proxy.DynamicProxy;
4 | import com.qingmei2.sampleproxy.dynamic_proxy.RealSubject;
5 | import com.qingmei2.sampleproxy.dynamic_proxy.Subject;
6 | import com.qingmei2.sampleproxy.static_proxy.SubjectProxy;
7 |
8 | import org.junit.Test;
9 |
10 | /**
11 | * Example local unit test, which will execute on the development machine (host).
12 | *
13 | * @see Testing documentation
14 | */
15 | public class ProxyTest {
16 |
17 | @Test
18 | public void staticProxy() throws Exception {
19 | SubjectProxy proxy = new SubjectProxy();
20 |
21 | proxy.enjoyMusic();
22 | proxy.enjoyFood();
23 | proxy.enjoyBeer();
24 | }
25 |
26 | @Test
27 | public void dynamicProxy() throws Exception {
28 | RealSubject realSubject = new RealSubject();
29 | Subject proxy = (Subject) new DynamicProxy(realSubject).bind();
30 |
31 | System.out.println(proxy.getClass().getName());
32 |
33 | proxy.enjoyMusic();
34 | proxy.enjoyFood();
35 | proxy.enjoyBeer();
36 | }
37 | }
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/holder/ItemHolder2.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters.holder;
2 |
3 | import android.view.View;
4 | import android.widget.TextView;
5 | import android.widget.Toast;
6 |
7 | import com.mei_husky.demo_more_types_adapters.MyRecyclerViewAmazAdapter;
8 | import com.mei_husky.demo_more_types_adapters.R;
9 | import com.mei_husky.demo_more_types_adapters.factory.ItemType2;
10 |
11 | /**
12 | * Created by QingMei on 2017/2/20 17:35
13 | * email:mei_husky@qq.com
14 | * desc:Used to
15 | */
16 |
17 | public class ItemHolder2 extends BaseAmazViewHolder {
18 |
19 | public ItemHolder2(View itemView) {
20 | super(itemView);
21 | }
22 |
23 | @Override
24 | public void setUpView(Object model, int position, MyRecyclerViewAmazAdapter adapter) {
25 | ItemType2 type2 = (ItemType2) model;
26 | final TextView tv = (TextView) getView(R.id.tv_content2);
27 | tv.setText("content"+type2.values);
28 | tv.setOnClickListener(new View.OnClickListener() {
29 | @Override
30 | public void onClick(View view) {
31 | Toast.makeText(tv.getContext(),"ItemHolder2",Toast.LENGTH_SHORT).show();
32 | }
33 | });
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/holder/ItemHolder3.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters.holder;
2 |
3 | import android.view.View;
4 | import android.widget.TextView;
5 | import android.widget.Toast;
6 |
7 | import com.mei_husky.demo_more_types_adapters.MyRecyclerViewAmazAdapter;
8 | import com.mei_husky.demo_more_types_adapters.R;
9 | import com.mei_husky.demo_more_types_adapters.factory.ItemType3;
10 |
11 | /**
12 | * Created by QingMei on 2017/2/20 17:35
13 | * email:mei_husky@qq.com
14 | * desc:Used to
15 | */
16 |
17 | public class ItemHolder3 extends BaseAmazViewHolder {
18 |
19 | public ItemHolder3(View itemView) {
20 | super(itemView);
21 | }
22 |
23 | @Override
24 | public void setUpView(Object model, int position, MyRecyclerViewAmazAdapter adapter) {
25 | ItemType3 type3 = (ItemType3) model;
26 | final TextView tv = (TextView) getView(R.id.tv_content3);
27 | tv.setText("content"+type3.values);
28 | tv.setOnClickListener(new View.OnClickListener() {
29 | @Override
30 | public void onClick(View view) {
31 | Toast.makeText(tv.getContext(),"ItemHolder3",Toast.LENGTH_SHORT).show();
32 | }
33 | });
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/holder/ItemHolder1.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters.holder;
2 |
3 | import android.view.View;
4 | import android.widget.TextView;
5 | import android.widget.Toast;
6 |
7 | import com.mei_husky.demo_more_types_adapters.MyRecyclerViewAmazAdapter;
8 | import com.mei_husky.demo_more_types_adapters.R;
9 | import com.mei_husky.demo_more_types_adapters.factory.ItemType1;
10 |
11 | /**
12 | * Created by QingMei on 2017/2/20 17:35
13 | * email:mei_husky@qq.com
14 | * desc:Used to
15 | */
16 |
17 | public class ItemHolder1 extends BaseAmazViewHolder {
18 |
19 | public ItemHolder1(View itemView) {
20 | super(itemView);
21 | }
22 |
23 | @Override
24 | public void setUpView(Object model, int position, final MyRecyclerViewAmazAdapter adapter) {
25 | ItemType1 type1 = (ItemType1) model;
26 | final TextView tv = (TextView) getView(R.id.tv_content1);
27 | tv.setText("content"+type1.values);
28 | tv.setOnClickListener(new View.OnClickListener() {
29 | @Override
30 | public void onClick(View view) {
31 | Toast.makeText(tv.getContext(),"ItemHolder1",Toast.LENGTH_SHORT).show();
32 | }
33 | });
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
15 |
16 |
17 |
18 |
19 |
20 |
35 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/layout/item_tieba_list.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
16 |
26 |
27 |
38 |
39 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/res/layout/view_impression.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
26 |
27 |
31 |
32 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/factory/ItemFactoryList.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters.factory;
2 |
3 | import android.view.View;
4 |
5 | import com.mei_husky.demo_more_types_adapters.R;
6 | import com.mei_husky.demo_more_types_adapters.holder.BaseAmazViewHolder;
7 | import com.mei_husky.demo_more_types_adapters.holder.ItemHolder1;
8 | import com.mei_husky.demo_more_types_adapters.holder.ItemHolder2;
9 | import com.mei_husky.demo_more_types_adapters.holder.ItemHolder3;
10 |
11 | /**
12 | * Created by QingMei on 2017/2/20 17:08
13 | * email:mei_husky@qq.com
14 | * desc:Used to
15 | */
16 | public class ItemFactoryList implements ItemFactory {
17 |
18 | private final int item_type_1= R.layout.listitem_type_1;
19 | private final int item_type_2= R.layout.listitem_type_2;
20 | private final int item_type_3= R.layout.listitem_type_3;
21 |
22 | @Override
23 | public int type(ItemType1 type1) {
24 | return item_type_1;
25 | }
26 |
27 | @Override
28 | public int type(ItemType2 type2) {
29 | return item_type_2;
30 | }
31 |
32 | @Override
33 | public int type(ItemType3 type3) {
34 | return item_type_3;
35 | }
36 |
37 | @Override
38 | public BaseAmazViewHolder createViewHolder(int type, View itemView) {
39 | if(item_type_1 == type){
40 | return new ItemHolder1(itemView);
41 | }else if (item_type_2 == type){
42 | return new ItemHolder2(itemView);
43 | }else if (item_type_3 == type){
44 | return new ItemHolder3(itemView);
45 | }
46 | return null;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/java/com/mei_husky/sampleneterrorutil/model/util/MySubscriber.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil.model.util;
2 |
3 | import android.util.Log;
4 |
5 | import rx.Subscriber;
6 |
7 | /**
8 | * Subscriber基类,可以在这里处理client网络连接状况
9 | * (比如没有wifi,没有4g,没有联网等)
10 | * Created by fcn-mq on 2017/4/19.
11 | */
12 |
13 | public abstract class MySubscriber extends Subscriber {
14 |
15 | /*private Context context;
16 |
17 | public MySubscriber(Context context) {
18 | this.context = context;
19 | }*/
20 |
21 | @Override
22 | public void onStart() {
23 | super.onStart();
24 | Log.i("tag","MySubscriber.onStart()");
25 | //接下来可以检查网络连接等操作
26 | /*if (!NetworkUtil.isNetworkAvailable(context)) {
27 |
28 | Toast.makeText(context, "当前网络不可用,请检查网络情况", Toast.LENGTH_SHORT).show();
29 | // 一定好主动调用下面这一句
30 | onCompleted();
31 |
32 | return;
33 | }*/
34 |
35 | }
36 |
37 | public abstract void onError(ExceptionHandle.ResponeThrowable responeThrowable);
38 |
39 | @Override
40 | public void onError(Throwable e) {
41 | Log.e("tag","MySubscriber.throwable ="+e.toString());
42 | Log.e("tag","MySubscriber.throwable ="+e.getMessage());
43 |
44 | if(e instanceof Exception){
45 | //访问获得对应的Exception
46 | onError(ExceptionHandle.handleException(e));
47 | }else {
48 | //将Throwable 和 未知错误的status code返回
49 | onError(new ExceptionHandle.ResponeThrowable(e,ExceptionHandle.ERROR.UNKNOWN));
50 | }
51 | }
52 |
53 | @Override
54 | public void onCompleted() {
55 | Log.i("tag","MySubscriber.onComplete()");
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/GradientDemo/app/src/main/java/com/mei_husky/gradientdemo/MyView.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.gradientdemo;
2 |
3 | import android.content.Context;
4 | import android.graphics.Canvas;
5 | import android.graphics.Color;
6 | import android.graphics.LinearGradient;
7 | import android.graphics.Paint;
8 | import android.graphics.Shader;
9 | import android.support.annotation.Nullable;
10 | import android.util.AttributeSet;
11 | import android.view.View;
12 |
13 | /**
14 | * Created by fcn-mq on 2017/5/22.
15 | * 自定义View
16 | */
17 |
18 | public class MyView extends View {
19 |
20 | public MyView(Context context) {
21 | super(context);
22 | }
23 |
24 | public MyView(Context context, @Nullable AttributeSet attrs) {
25 | super(context, attrs);
26 | }
27 |
28 | public MyView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
29 | super(context, attrs, defStyleAttr);
30 | }
31 |
32 | @Override
33 | protected void onDraw(Canvas canvas) {
34 | super.onDraw(canvas);
35 | //获取View的宽高
36 | int width = getWidth();
37 | int height = getHeight();
38 |
39 | int colorStart = getResources().getColor(R.color.colorPrimary);
40 | int color1 = Color.GRAY;
41 | int colorEnd = getResources().getColor(R.color.colorAccent);
42 |
43 | Paint paint = new Paint();
44 | LinearGradient backGradient = new LinearGradient(0, 0, width, height, new int[]{colorStart, color1 ,colorEnd}, null, Shader.TileMode.CLAMP);
45 | // LinearGradient backGradient = new LinearGradient(0, 0, 0, height, new int[]{colorStart, color1 ,colorEnd}, null, Shader.TileMode.CLAMP);
46 | paint.setShader(backGradient);
47 | canvas.drawRect(0, 0, width, height, paint);
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/SampleTextViewLink/app/src/main/java/com/qingmei2/sampletextviewlink/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sampletextviewlink;
2 |
3 | import android.graphics.Color;
4 | import android.os.Bundle;
5 | import android.support.v7.app.AppCompatActivity;
6 | import android.text.Spannable;
7 | import android.text.SpannableStringBuilder;
8 | import android.text.method.LinkMovementMethod;
9 | import android.text.style.ClickableSpan;
10 | import android.text.style.ForegroundColorSpan;
11 | import android.view.View;
12 | import android.widget.TextView;
13 | import android.widget.Toast;
14 |
15 | public class MainActivity extends AppCompatActivity {
16 |
17 | @Override
18 | protected void onCreate(Bundle savedInstanceState) {
19 | super.onCreate(savedInstanceState);
20 | setContentView(R.layout.activity_main);
21 | TextView tv = findViewById(R.id.tvContent);
22 |
23 | final SpannableStringBuilder style = new SpannableStringBuilder();
24 |
25 | //设置文字
26 | style.append("关于本活动更多规则,请点我查看");
27 |
28 | //设置部分文字点击事件
29 | ClickableSpan clickableSpan = new ClickableSpan() {
30 | @Override
31 | public void onClick(View widget) {
32 | Toast.makeText(MainActivity.this, "触发点击事件!", Toast.LENGTH_SHORT).show();
33 | }
34 | };
35 | style.setSpan(clickableSpan, 11, 15, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
36 | tv.setText(style);
37 |
38 | //改变部分文字颜色
39 | ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.parseColor("#0000FF"));
40 | style.setSpan(foregroundColorSpan, 11, 15, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
41 |
42 | tv.setMovementMethod(LinkMovementMethod.getInstance());
43 | tv.setText(style);
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/Sample_Matisse/app/src/main/java/com/qingmei2/sample_matisse/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.qingmei2.sample_matisse;
2 |
3 | import android.content.Intent;
4 | import android.content.pm.ActivityInfo;
5 | import android.net.Uri;
6 | import android.os.Bundle;
7 | import android.support.v7.app.AppCompatActivity;
8 | import android.util.Log;
9 | import android.view.View;
10 |
11 | import com.zhihu.matisse.Matisse;
12 | import com.zhihu.matisse.MimeType;
13 | import com.zhihu.matisse.engine.impl.GlideEngine;
14 |
15 | import java.util.List;
16 |
17 | public class MainActivity extends AppCompatActivity {
18 |
19 | private static final int REQUEST_CODE_CHOOSE = 998;
20 |
21 | @Override
22 | protected void onCreate(Bundle savedInstanceState) {
23 | super.onCreate(savedInstanceState);
24 | setContentView(R.layout.activity_main);
25 | }
26 |
27 | public void pickImage(View view) {
28 | Matisse.from(MainActivity.this)
29 | .choose(MimeType.allOf())
30 | .countable(true)
31 | .maxSelectable(9)
32 | .gridExpectedSize(300)
33 | .restrictOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)
34 | .thumbnailScale(0.85f)
35 | .imageEngine(new GlideEngine())
36 | .forResult(REQUEST_CODE_CHOOSE);
37 | }
38 |
39 | List mSelected;
40 |
41 | @Override
42 | protected void onActivityResult(int requestCode, int resultCode, Intent data) {
43 | super.onActivityResult(requestCode, resultCode, data);
44 | if (requestCode == REQUEST_CODE_CHOOSE && resultCode == RESULT_OK) {
45 | mSelected = Matisse.obtainResult(data);
46 | Log.d("Matisse", "mSelected: " + mSelected);
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/java/com/mei_husky/sampleneterrorutil/ui/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil.ui;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.util.Log;
6 | import android.view.View;
7 | import android.widget.Button;
8 | import android.widget.ImageView;
9 |
10 | import com.bumptech.glide.Glide;
11 | import com.bumptech.glide.load.engine.DiskCacheStrategy;
12 | import com.mei_husky.sampleneterrorutil.R;
13 |
14 | public class MainActivity extends AppCompatActivity implements View.OnClickListener {
15 |
16 |
17 | private Button mBtnShow;
18 | private ImageView mIvSuccess;
19 |
20 | @Override
21 | protected void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.activity_main);
24 | initView();
25 | }
26 |
27 |
28 | private void initView() {
29 | mBtnShow = (Button) findViewById(R.id.btn_show);
30 | mIvSuccess = (ImageView) findViewById(R.id.iv_success);
31 |
32 | mBtnShow.setOnClickListener(this);
33 | }
34 |
35 | @Override
36 | public void onClick(View v) {
37 | switch (v.getId()) {
38 | case R.id.btn_show:
39 | showAnimator();
40 | break;
41 | }
42 | }
43 |
44 | private void showAnimator() {
45 | Log.i("tag","加载动画");
46 |
47 | try {
48 | Glide
49 | .with(this)
50 | .load(R.raw.anim_success)
51 | .diskCacheStrategy(DiskCacheStrategy.SOURCE)
52 | // .asGif()
53 | .into(mIvSuccess);
54 | } catch (Exception e) {
55 | e.printStackTrace();
56 | }
57 |
58 | }
59 |
60 | }
61 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/androidTest/java/com/mei_husky/sampleneterrorutil/ApiTest.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil;
2 |
3 | import android.util.Log;
4 |
5 | import com.mei_husky.sampleneterrorutil.model.bean.MovieTheatersModel;
6 | import com.mei_husky.sampleneterrorutil.model.manager.MovieApiManager;
7 | import com.mei_husky.sampleneterrorutil.model.util.ExceptionHandle;
8 | import com.mei_husky.sampleneterrorutil.model.util.MySubscriber;
9 |
10 | import org.junit.Test;
11 |
12 | import rx.android.schedulers.AndroidSchedulers;
13 | import rx.schedulers.Schedulers;
14 |
15 | /**
16 | * Created by fcn-mq on 2017/4/19.
17 | */
18 |
19 | public class ApiTest {
20 |
21 | @Test
22 | public void MovieTest() throws Exception {
23 | MovieApiManager apiManager = new MovieApiManager();
24 | apiManager.getTheatersMovie("成都", 1, 1)
25 | .subscribeOn(Schedulers.io())
26 | .observeOn(AndroidSchedulers.mainThread())
27 | .subscribe(new MySubscriber() {
28 |
29 | @Override
30 | public void onError(ExceptionHandle.ResponeThrowable responeThrowable) {
31 | Log.e("tag", "MovieApiTest失败!");
32 | Log.e("tag", "responeThrowable.code=" + responeThrowable.code);
33 | Log.e("tag", "responeThrowable.message=" + responeThrowable.message);
34 | }
35 |
36 | @Override
37 | public void onNext(MovieTheatersModel movieTheatersModel) {
38 | Log.i("tag", "MovieApiTest成功!");
39 | Log.i("tag", "movieTheatersModel =" + movieTheatersModel.toString());
40 | }
41 |
42 | });
43 | Thread.sleep(Long.MAX_VALUE);
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/java/com/mei_husky/sampleneterrorutil/model/bean/MovieTheatersModel.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil.model.bean;
2 |
3 | import java.util.List;
4 |
5 | /**
6 | * Created by fcn-mq on 2017/4/14.
7 | * 剧场
8 | */
9 |
10 | public class MovieTheatersModel {
11 |
12 | public int count;
13 |
14 | public int start;
15 |
16 | public int total;
17 |
18 | public List subjects;
19 |
20 | public String title;
21 |
22 | public class Subjects {
23 |
24 | public Rating rating;
25 |
26 | public List genres;
27 |
28 | public String title;
29 |
30 | public List casts;
31 |
32 | public int collect_count;
33 |
34 | public String original_title;
35 |
36 | public String subtype;
37 |
38 | public List directors;
39 |
40 | public String year;
41 |
42 | public Images images;
43 |
44 | public String alt;
45 |
46 | public String id;
47 |
48 | }
49 |
50 | public class Directors {
51 |
52 | public String alt;
53 |
54 | public Avatars avatars;
55 |
56 | public String name;
57 |
58 | public String id;
59 | }
60 |
61 | public class Avatars {
62 |
63 | public String small;
64 |
65 | public String large;
66 |
67 | public String medium;
68 | }
69 |
70 | public class Casts {
71 | public String alt;
72 |
73 | public Avatars avatars;
74 |
75 | public String name;
76 |
77 | public String id;
78 | }
79 |
80 |
81 | public class Genres {
82 |
83 | }
84 |
85 | public class Images {
86 | public String small;
87 |
88 | public String large;
89 |
90 | public String medium;
91 | }
92 |
93 | public class Rating {
94 | public int max;
95 |
96 | public double average;
97 |
98 | public String stars;
99 |
100 | public int min;
101 | }
102 | }
103 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/java/com/mei_husky/sample_impression/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sample_impression;
2 |
3 | import android.os.Bundle;
4 | import android.support.v7.app.AppCompatActivity;
5 | import android.support.v7.widget.CardView;
6 | import android.support.v7.widget.RecyclerView;
7 | import android.support.v7.widget.StaggeredGridLayoutManager;
8 | import android.view.View;
9 |
10 | import com.mei_husky.sample_impression.recyclerview.MyRvAdapter;
11 |
12 | import java.util.ArrayList;
13 |
14 | public class MainActivity extends AppCompatActivity implements View.OnClickListener {
15 |
16 | private CardView mBtShow;
17 | private RecyclerView mRvImpressions;
18 |
19 | @Override
20 | protected void onCreate(Bundle savedInstanceState) {
21 | super.onCreate(savedInstanceState);
22 | setContentView(R.layout.activity_main);
23 | initView();
24 | initData();
25 | }
26 |
27 | private void initData() {
28 | datas.clear();
29 | datas.add("正直勇敢");
30 | datas.add("阳光帅小伙");
31 | datas.add("不明觉厉");
32 | datas.add("23333333333");
33 | datas.add("牛牛牛~~~");
34 | datas.add("挺喜欢你的");
35 | datas.add("爱你一万年");
36 | datas.add("超级大闷骚");
37 | datas.add("代码狂魔");
38 | datas.add("始作俑者");
39 | datas.add("弹幕大神");
40 | datas.add("你行你上啊");
41 | }
42 |
43 |
44 | private void initView() {
45 | mBtShow = (CardView) findViewById(R.id.bt_show);
46 | mRvImpressions = (RecyclerView) findViewById(R.id.rv_impressions);
47 | mBtShow.setOnClickListener(this);
48 |
49 | }
50 | private MyRvAdapter adapter;
51 |
52 | public ArrayList datas=new ArrayList<>();
53 |
54 | private void initRecyclerView() {
55 | mRvImpressions.setAdapter(adapter==null?new MyRvAdapter(this,datas):adapter);
56 | StaggeredGridLayoutManager manager=new StaggeredGridLayoutManager(3,StaggeredGridLayoutManager.VERTICAL);
57 | mRvImpressions.setLayoutManager(manager);
58 |
59 |
60 |
61 | }
62 |
63 | @Override
64 | public void onClick(View view) {
65 | initRecyclerView();
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/java/com/mei_husky/samplebaidutieba/Tieba/MyTiebaAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.samplebaidutieba.Tieba;
2 |
3 | import android.content.Context;
4 | import android.support.v7.widget.RecyclerView;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 | import android.widget.ImageView;
9 | import android.widget.TextView;
10 |
11 | import com.mei_husky.samplebaidutieba.MySlideViewTouchHandler;
12 | import com.mei_husky.samplebaidutieba.R;
13 |
14 | import java.util.ArrayList;
15 | import java.util.Collections;
16 |
17 | /**
18 | * Created by QingMei on 2017/1/21 14:48
19 | * email:mei_husky@qq.com
20 | * desc:Used to 贴吧界面的adapter
21 | */
22 |
23 | public class MyTiebaAdapter extends MySlideViewTouchHandler.ItemTouchAdapter{
24 |
25 | private Context ctx;
26 | private ArrayList list;
27 |
28 | public MyTiebaAdapter(Context ctx, ArrayList list) {
29 | this.ctx = ctx;
30 | this.list = list;
31 | }
32 |
33 | /**
34 | * item发生移动的回调,这时ui已经变化了,我们需要做的就是更新数据源
35 | * @param fromPosition
36 | * @param toPosition
37 | */
38 | @Override
39 | public void onItemMove(int fromPosition, int toPosition) {
40 | Collections.swap(list,fromPosition,toPosition); //集合内元素交换
41 | }
42 |
43 | /**
44 | * item滑动移除的回调,同上我们只需要更新数据源就行了
45 | * @param position
46 | */
47 | @Override
48 | public void onItemRemove(int position) {
49 |
50 | }
51 |
52 | @Override
53 | public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
54 | View view = LayoutInflater.from(ctx).inflate(R.layout.item_tieba_list, parent, false);
55 | return new MyViewHolder(view);
56 | }
57 |
58 | @Override
59 | public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
60 | ((MyViewHolder)holder).tvTitle.setText(list.get(position));
61 | }
62 |
63 | @Override
64 | public int getItemCount() {
65 | return list.size();
66 | }
67 |
68 |
69 | public class MyViewHolder extends RecyclerView.ViewHolder{
70 |
71 | public ImageView ivCancle;
72 | public TextView tvTitle;
73 |
74 | public MyViewHolder(View itemView) {
75 | super(itemView);
76 | ivCancle = (ImageView) itemView.findViewById(R.id.iv_cancel);
77 | tvTitle=(TextView)itemView.findViewById(R.id.tv_title);
78 | }
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/app/src/main/java/com/mei_husky/demo_more_types_adapters/MyRecyclerViewAmazAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.demo_more_types_adapters;
2 |
3 | import android.content.Context;
4 | import android.support.v7.widget.RecyclerView;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import com.mei_husky.demo_more_types_adapters.factory.ItemFactoryList;
10 | import com.mei_husky.demo_more_types_adapters.factory.ItemInterface;
11 | import com.mei_husky.demo_more_types_adapters.factory.ItemType1;
12 | import com.mei_husky.demo_more_types_adapters.factory.ItemType2;
13 | import com.mei_husky.demo_more_types_adapters.factory.ItemType3;
14 | import com.mei_husky.demo_more_types_adapters.holder.BaseAmazViewHolder;
15 |
16 | import java.util.ArrayList;
17 |
18 | /**
19 | * Created by QingMei on 2017/2/20 16:58
20 | * email:mei_husky@qq.com
21 | * desc:Used to 优雅的实现多类型列表的Adapter
22 | */
23 | public class MyRecyclerViewAmazAdapter extends RecyclerView.Adapter {
24 |
25 | private Context ctx;
26 | private ArrayList datas;
27 | private ArrayList datas2=new ArrayList();
28 | private final ItemFactoryList factory;
29 |
30 | public MyRecyclerViewAmazAdapter(Context ctx, ArrayList datas){
31 | this.ctx = ctx;
32 | this.datas = datas;
33 | factory = new ItemFactoryList();
34 | initBeans();
35 | }
36 |
37 | private void initBeans() {
38 | for(int i=0;i datas=new ArrayList();
73 |
74 | /**
75 | * 初始化数据
76 | */
77 | private void initData() {
78 | if(isFirstInitData){
79 | isFirstInitData=false;
80 | for(int i=0;i<50;i++){
81 | datas.add(i);
82 | }
83 | }
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/SampleProxy/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 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
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 Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/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 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
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 Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/Sample_Matisse/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 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
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 Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/SampleTextViewLink/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 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
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 Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/Sample_Impression/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 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
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 Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/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 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
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 Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | mavenCentral()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
9 | classpath 'me.tatarka:gradle-retrolambda:3.3.1'
10 | }
11 | }
12 | apply plugin: 'com.android.application'
13 | apply plugin: 'android-apt'
14 | apply plugin: 'com.neenbedankt.android-apt'
15 | apply plugin: 'me.tatarka.retrolambda'
16 | android {
17 | compileSdkVersion 25
18 | buildToolsVersion "25.0.2"
19 | defaultConfig {
20 | applicationId "com.mei_husky.sampleneterrorutil"
21 | minSdkVersion 16
22 | targetSdkVersion 25
23 | versionCode 1
24 | versionName "1.0"
25 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
26 | }
27 | compileOptions {
28 | sourceCompatibility JavaVersion.VERSION_1_8
29 | targetCompatibility JavaVersion.VERSION_1_8
30 | }
31 | buildTypes {
32 | release {
33 | minifyEnabled false
34 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
35 | }
36 | }
37 | }
38 |
39 | dependencies {
40 | compile fileTree(dir: 'libs', include: ['*.jar'])
41 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
42 | exclude group: 'com.android.support', module: 'support-annotations'
43 | })
44 | compile 'com.android.support:appcompat-v7:25.3.1'
45 | compile 'com.android.support.constraint:constraint-layout:1.0.1'
46 | testCompile 'junit:junit:4.12'
47 |
48 |
49 | //Rx+Retrofit
50 | compile 'com.squareup.retrofit2:retrofit:2.1.0'
51 | compile 'com.squareup.retrofit2:converter-gson:2.1.0'
52 | compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
53 | compile 'com.squareup.retrofit2:retrofit-mock:2.1.0'
54 | compile 'com.squareup.okhttp3:logging-interceptor:3.4.2'
55 | compile 'com.squareup.okhttp3:okhttp-urlconnection:3.4.2'
56 | compile('org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.1') {
57 | exclude group: 'org.apache.oltu.oauth2', module: 'org.apache.oltu.oauth2.common'
58 | }
59 | compile 'io.reactivex:rxandroid:1.2.1'
60 | compile 'io.reactivex:rxjava:1.2.3'
61 | compile 'com.tbruyelle.rxpermissions:rxpermissions:0.8.2@aar'
62 | apt "org.projectlombok:lombok:1.16.14"
63 | provided 'org.projectlombok:lombok:1.16.14'
64 | //okhttp
65 | compile 'com.facebook.stetho:stetho-okhttp3:1.3.1'
66 | compile 'com.facebook.stetho:stetho:1.3.1'
67 | //Glide
68 | compile 'com.github.bumptech.glide:glide:3.7.0'
69 | compile 'com.github.bumptech.glide:okhttp-integration:1.4.0'
70 | }
71 |
--------------------------------------------------------------------------------
/GradientDemo/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 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
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 Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/app/src/main/java/com/mei_husky/sampleneterrorutil/model/manager/MovieApiManager.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sampleneterrorutil.model.manager;
2 |
3 | import com.facebook.stetho.okhttp3.StethoInterceptor;
4 | import com.mei_husky.sampleneterrorutil.common.Constants;
5 | import com.mei_husky.sampleneterrorutil.common.ConstantsApi;
6 | import com.mei_husky.sampleneterrorutil.model.api.DoubanMovieService;
7 | import com.mei_husky.sampleneterrorutil.model.bean.MovieTheatersModel;
8 |
9 | import okhttp3.OkHttpClient;
10 | import okhttp3.logging.HttpLoggingInterceptor;
11 | import retrofit2.Retrofit;
12 | import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
13 | import retrofit2.converter.gson.GsonConverterFactory;
14 | import rx.Observable;
15 |
16 | /**
17 | * Created by fcn-mq on 2017/4/14.
18 | */
19 |
20 | public class MovieApiManager {
21 |
22 | private DoubanMovieService movieService;
23 |
24 | public MovieApiManager() {
25 | init();
26 | }
27 |
28 | private void init() {
29 | OkHttpClient.Builder builder = new OkHttpClient().newBuilder();
30 | if (Constants.debug) {
31 | HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor();
32 | httpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
33 | builder.addInterceptor(httpLoggingInterceptor).addNetworkInterceptor(new StethoInterceptor());
34 | }
35 | OkHttpClient client = builder.build();
36 |
37 | movieService = new Retrofit.Builder()
38 | .baseUrl(ConstantsApi.BASE_DOUBAN)
39 | // .addConverterFactory(FastJsonConverterFactory.create())
40 | .addConverterFactory(GsonConverterFactory.create())
41 | .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
42 | .client(client)
43 | .build()
44 | .create(DoubanMovieService.class);
45 | }
46 |
47 | /**
48 | * 获取正在上映的电影信息
49 | * @param city 上映的城市
50 | * @param count 要获取的电影数量
51 | * @param start 从第几个开始(分页功能使用)
52 | * @return
53 | */
54 | public Observable getTheatersMovie(String city, Integer count, Integer start) {
55 | return movieService.requestTheatersMovies(city, count, start);
56 | }
57 |
58 | /**
59 | * 获取默认城市(北京)所有上映电影
60 | * @return
61 | */
62 | public Observable getAllTheatersMovie() {
63 | return getTheatersMovie(null, null, null);
64 | }
65 |
66 | /**
67 | * 获取某座城市所有正在上映电影
68 | * @param city 上映的城市
69 | * @return
70 | */
71 | public Observable getAllTheatersMovie(String city) {
72 | return getTheatersMovie(city, null, null);
73 | }
74 |
75 |
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/SampleNetErrorUtil/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 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
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 Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
15 |
16 |
20 |
21 |
27 |
28 |
37 |
38 |
44 |
45 |
46 |
47 |
55 |
56 |
63 |
64 |
65 |
66 |
67 |
68 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/SampleBaiduTieba/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 | 1.8
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/Sample_Impression/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | C:\Users\AAA\AppData\Roaming\Subversion
45 |
46 |
47 |
48 |
49 |
50 | 1.8
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/java/com/mei_husky/sample_impression/recyclerview/MyRvAdapter.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sample_impression.recyclerview;
2 |
3 | import android.content.Context;
4 | import android.graphics.Color;
5 | import android.support.v7.widget.RecyclerView;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import com.mei_husky.sample_impression.MyUtils;
10 | import com.mei_husky.sample_impression.R;
11 | import com.mei_husky.sample_impression.view.ImpressionView;
12 |
13 | import java.util.ArrayList;
14 |
15 | /**
16 | * Created by QingMei on 2017/1/15 13:34
17 | * email:mei_husky@qq.com
18 | * desc:Used to
19 | */
20 |
21 | public class MyRvAdapter extends RecyclerView.Adapter {
22 |
23 | private Context ctx;
24 | private ArrayList datas;
25 |
26 | private int[] bgs=new int[]{
27 | Color.parseColor("#ccffff"),
28 | Color.parseColor("#ffcc99"),
29 | Color.parseColor("#ff6666"),
30 | Color.parseColor("#ccffff"),
31 | Color.parseColor("#ccff99"),
32 | Color.parseColor("#cccccc"),
33 | Color.parseColor("#99cc99"),
34 | Color.parseColor("#ff9966"),
35 | Color.parseColor("#99cccc"),
36 | };
37 |
38 |
39 |
40 | public MyRvAdapter(Context ctx, ArrayList datas) {
41 | this.ctx = ctx;
42 | this.datas = datas;
43 | }
44 |
45 |
46 | @Override
47 | public MyRvAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
48 | return new MyViewHolder(View.inflate(ctx, R.layout.item_rv,null));
49 | }
50 |
51 | @Override
52 | public void onBindViewHolder(final MyViewHolder holder, final int position) {
53 | holder.iv.setBgText(datas.get(position));
54 | holder.iv.setBgColor(bgs[position%bgs.length]);
55 | holder.iv.setOnCheckCancleButton(new View.OnClickListener() {
56 | @Override
57 | public void onClick(View view) {
58 | datas.remove(holder.getLayoutPosition());
59 | notifyItemRemoved(holder.getLayoutPosition());
60 | // notifyItemRangeChanged(holder.getLayoutPosition(),1);
61 | // notifyDataSetChanged();
62 | MyUtils.LogI("layoutposition=="+holder.getLayoutPosition());
63 | MyUtils.LogI("position=="+position);
64 | MyUtils.LogI("datas数据源size=="+datas.size());
65 | }
66 | });
67 | }
68 |
69 |
70 | @Override
71 | public int getItemCount() {
72 | return datas.size();
73 | }
74 |
75 |
76 | class MyViewHolder extends RecyclerView.ViewHolder{
77 |
78 | public MyViewHolder(View itemView) {
79 | super(itemView);
80 | iv= (ImpressionView) itemView.findViewById(R.id.item_rv);
81 | }
82 |
83 | public ImpressionView iv;
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/Demo_More_Types_Adapters/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | C:\Users\AAA\AppData\Roaming\Subversion
48 |
49 |
50 |
51 |
52 |
53 | 1.8
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/Sample_Impression/app/src/main/java/com/mei_husky/sample_impression/view/ImpressionView.java:
--------------------------------------------------------------------------------
1 | package com.mei_husky.sample_impression.view;
2 |
3 | import android.content.Context;
4 | import android.graphics.Canvas;
5 | import android.support.v7.widget.CardView;
6 | import android.util.AttributeSet;
7 | import android.view.LayoutInflater;
8 | import android.view.View;
9 | import android.widget.LinearLayout;
10 | import android.widget.RelativeLayout;
11 | import android.widget.TextView;
12 |
13 | import com.mei_husky.sample_impression.MyUtils;
14 | import com.mei_husky.sample_impression.R;
15 |
16 | /**
17 | * Created by QingMei on 2017/1/15 11:39
18 | * email:mei_husky@qq.com
19 | * desc:Used to
20 | */
21 |
22 | public class ImpressionView extends RelativeLayout implements View.OnClickListener {
23 |
24 | private Context ctx;
25 | private TextView mCardContent;
26 | private LinearLayout mBtRemove;
27 | private CardView mCardBg;
28 |
29 | public ImpressionView(Context context) {
30 | super(context);
31 | init(context);
32 | }
33 |
34 | public ImpressionView(Context context, AttributeSet attrs) {
35 | super(context, attrs);
36 | init(context);
37 | }
38 |
39 | /**
40 | * 初始化控件
41 | */
42 | private void init(Context context) {
43 | this.ctx = context;
44 | LayoutInflater inflater = (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
45 | inflater.inflate(R.layout.view_impression, this);
46 | mCardContent= (TextView) findViewById(R.id.card_content);
47 | mCardBg=(CardView) findViewById(R.id.card_bg);
48 | mBtRemove=(LinearLayout) findViewById(R.id.bt_remove);
49 | mBtRemove.setOnClickListener(this);
50 | }
51 |
52 |
53 |
54 | @Override
55 | protected void onLayout(boolean b, int i, int i1, int i2, int i3) {
56 | super.onLayout(b,i,i1,i2,i3);
57 | }
58 |
59 | @Override
60 | protected void onDraw(Canvas canvas) {
61 | super.onDraw(canvas);
62 | }
63 |
64 | @Override
65 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
66 | super.onMeasure(widthMeasureSpec, heightMeasureSpec);
67 | }
68 |
69 | /**
70 | * 设置背景色
71 | * @param color
72 | */
73 | public void setBgColor(int color){
74 | mCardBg.setCardBackgroundColor(color);
75 | }
76 |
77 | /**
78 | * 设置文字颜色
79 | * @param text
80 | */
81 | public void setBgText(String text){
82 | mCardContent.setText(text);
83 | }
84 |
85 | @Override
86 | public void onClick(View view) {
87 | switch (view.getId()){
88 | case R.id.bt_remove:
89 | if(listener!=null){
90 | listener.onClick(mBtRemove);
91 | }
92 | break;
93 | }
94 | }
95 |
96 | private OnClickListener listener;
97 |
98 | /**
99 | * 用户点击cancle按钮触发事件
100 | */
101 | public void setOnCheckCancleButton(View.OnClickListener listener) {
102 | this.listener=listener;
103 | }
104 | }
105 |
--------------------------------------------------------------------------------