├── SnackBarExample ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── styles.xml │ │ │ │ └── dimens.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── me │ │ │ └── leolin │ │ │ └── android │ │ │ └── design │ │ │ └── snackbar │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── me │ │ └── leolin │ │ └── android │ │ └── design │ │ └── snackbar │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── TabLayoutExample ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── styles.xml │ │ │ │ └── dimens.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── layout │ │ │ │ ├── fragment_main.xml │ │ │ │ └── activity_main.xml │ │ │ └── menu │ │ │ │ └── menu_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── me │ │ │ └── leolin │ │ │ └── android │ │ │ └── design │ │ │ └── tablayout │ │ │ ├── PagerFragment.java │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── me │ │ └── leolin │ │ └── android │ │ └── design │ │ └── tablayout │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── NavigationViewExample ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-hdpi │ │ │ │ └── ic_menu_black_24dp.png │ │ │ ├── drawable-mdpi │ │ │ │ └── ic_menu_black_24dp.png │ │ │ ├── drawable-xhdpi │ │ │ │ └── ic_menu_black_24dp.png │ │ │ ├── drawable-xxhdpi │ │ │ │ └── ic_menu_black_24dp.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ └── ic_menu_black_24dp.png │ │ │ ├── values │ │ │ │ ├── color.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── layout │ │ │ │ ├── nav_header.xml │ │ │ │ ├── toolbar.xml │ │ │ │ └── activity_main.xml │ │ │ └── menu │ │ │ │ └── my_navigation_items.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── me │ │ │ └── leolin │ │ │ └── android │ │ │ └── design │ │ │ └── navgation │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── me │ │ └── leolin │ │ └── android │ │ └── design │ │ └── navgation │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── SwipeDismissExample ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── strings.xml │ │ │ │ └── dimens.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── me │ │ │ └── leolin │ │ │ └── android │ │ │ └── design │ │ │ └── swipedismiss │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── me │ │ └── leolin │ │ └── android │ │ └── design │ │ └── swipedismiss │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── CoordinatorToolBarExample ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── color.xml │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── me │ │ │ └── leolin │ │ │ └── android │ │ │ └── design │ │ │ └── coordinatortoolbarexample │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── me │ │ └── leolin │ │ └── android │ │ └── design │ │ └── coordinatortoolbarexample │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── SwipeDismissListExample ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── strings.xml │ │ │ │ └── dimens.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ ├── activity_main.xml │ │ │ │ └── listitem.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── me │ │ │ └── leolin │ │ │ └── android │ │ │ └── design │ │ │ └── swipedismisslist │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── me │ │ └── leolin │ │ └── android │ │ └── design │ │ └── swipedismisslist │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── TextInputLayoutExample ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── strings.xml │ │ │ │ └── dimens.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── me │ │ │ └── leolin │ │ │ └── android │ │ │ └── design │ │ │ └── textinput │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── me │ │ ├── leolin │ │ └── android │ │ │ └── design │ │ │ └── textinput │ │ │ └── ApplicationTest.java │ │ └── coordinatorfloatingactiobbuttonsnacklayout │ │ └── android │ │ └── design │ │ └── textinput │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── FloatingActionButtonExample ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-hdpi │ │ │ │ └── ic_add_white_24dp.png │ │ │ ├── drawable-mdpi │ │ │ │ └── ic_add_white_24dp.png │ │ │ ├── drawable-xhdpi │ │ │ │ └── ic_add_white_24dp.png │ │ │ ├── drawable-xxhdpi │ │ │ │ └── ic_add_white_24dp.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ └── ic_add_white_24dp.png │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── strings.xml │ │ │ │ └── dimens.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── me │ │ │ └── leolin │ │ │ └── android │ │ │ └── design │ │ │ └── floatingactionbutton │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── me │ │ └── coordinatorfloatingactiobbuttonsnacklayout │ │ └── android │ │ └── design │ │ └── floatingactionbutton │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── CoordinatorCollapsingToolBarExample ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── color.xml │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── me │ │ │ └── leolin │ │ │ └── android │ │ │ └── design │ │ │ └── coordinatorcollapsingtoolbarexample │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── me │ │ └── leolin │ │ └── android │ │ └── design │ │ └── coordinatorcollapsingtoolbarexample │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── CoordinatorFloatingActionButtonSnackBarExample ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-hdpi │ │ │ │ └── ic_add_white_24dp.png │ │ │ ├── drawable-mdpi │ │ │ │ └── ic_add_white_24dp.png │ │ │ ├── drawable-xhdpi │ │ │ │ └── ic_add_white_24dp.png │ │ │ ├── drawable-xxhdpi │ │ │ │ └── ic_add_white_24dp.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ └── ic_add_white_24dp.png │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── strings.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── me │ │ │ └── leolin │ │ │ └── android │ │ │ └── design │ │ │ └── coordinatorfloatingactionbuttonsnackbar │ │ │ └── MainActivity.java │ └── androidTest │ │ └── java │ │ └── me │ │ └── leolin │ │ └── android │ │ └── design │ │ └── coordinatorfloatingactionbuttonsnackbar │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── .gitignore ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── settings.gradle ├── gradle.properties ├── README.MD ├── gradlew.bat └── gradlew /SnackBarExample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /TabLayoutExample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /NavigationViewExample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /SwipeDismissExample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /CoordinatorToolBarExample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /SwipeDismissListExample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /TextInputLayoutExample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /FloatingActionButtonExample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | .DS_Store 4 | **/build 5 | .idea 6 | **/*.iml 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /SnackBarExample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SnackBarExample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /SnackBarExample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SnackBarExample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /SnackBarExample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SnackBarExample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/TabLayoutExample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/TabLayoutExample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /SnackBarExample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SnackBarExample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/TabLayoutExample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/TabLayoutExample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/NavigationViewExample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/NavigationViewExample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SwipeDismissExample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SwipeDismissExample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SwipeDismissExample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SwipeDismissExample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/NavigationViewExample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/NavigationViewExample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SwipeDismissListExample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SwipeDismissListExample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/TextInputLayoutExample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/TextInputLayoutExample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/TextInputLayoutExample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorToolBarExample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorToolBarExample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorToolBarExample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SwipeDismissListExample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/SwipeDismissListExample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/TextInputLayoutExample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorToolBarExample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/FloatingActionButtonExample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/FloatingActionButtonExample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/FloatingActionButtonExample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/FloatingActionButtonExample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/drawable-hdpi/ic_menu_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/NavigationViewExample/src/main/res/drawable-hdpi/ic_menu_black_24dp.png -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/drawable-mdpi/ic_menu_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/NavigationViewExample/src/main/res/drawable-mdpi/ic_menu_black_24dp.png -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/drawable-xhdpi/ic_menu_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/NavigationViewExample/src/main/res/drawable-xhdpi/ic_menu_black_24dp.png -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/drawable-xxhdpi/ic_menu_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/NavigationViewExample/src/main/res/drawable-xxhdpi/ic_menu_black_24dp.png -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/drawable-xxxhdpi/ic_menu_black_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/NavigationViewExample/src/main/res/drawable-xxxhdpi/ic_menu_black_24dp.png -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorCollapsingToolBarExample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorCollapsingToolBarExample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorCollapsingToolBarExample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/drawable-hdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/FloatingActionButtonExample/src/main/res/drawable-hdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/drawable-mdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/FloatingActionButtonExample/src/main/res/drawable-mdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/drawable-xhdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/FloatingActionButtonExample/src/main/res/drawable-xhdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorCollapsingToolBarExample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/drawable-xxhdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/FloatingActionButtonExample/src/main/res/drawable-xxhdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/drawable-xxxhdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/FloatingActionButtonExample/src/main/res/drawable-xxxhdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorFloatingActionButtonSnackBarExample/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorFloatingActionButtonSnackBarExample/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /SnackBarExample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SnakeBarExample 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /SnackBarExample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TabLayoutExample 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorFloatingActionButtonSnackBarExample/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorFloatingActionButtonSnackBarExample/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SwipeDismissExample 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SwipeDismissListExample 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | TextInputLayoutExample 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/drawable-hdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorFloatingActionButtonSnackBarExample/src/main/res/drawable-hdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/drawable-mdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorFloatingActionButtonSnackBarExample/src/main/res/drawable-mdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/drawable-xhdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorFloatingActionButtonSnackBarExample/src/main/res/drawable-xhdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/drawable-xxhdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorFloatingActionButtonSnackBarExample/src/main/res/drawable-xxhdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CoordinatorToolBarExample 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /SnackBarExample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/drawable-xxxhdpi/ic_add_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leolin310148/AndroidDesignSupportLibraryExamples/HEAD/CoordinatorFloatingActionButtonSnackBarExample/src/main/res/drawable-xxxhdpi/ic_add_white_24dp.png -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | FloatingActionButtonExample 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CoordinatorCollapsingToolBarExample 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat May 30 21:35:51 CST 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.4-all.zip 7 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CoordinatorFloatingActionButtonSnackBarExample 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/values/color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #303f9f 4 | #3f51b5 5 | #4675FF 6 | #884675FF 7 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':NavigationViewExample', ':TextInputLayoutExample', ':FloatingActionButtonExample', ':SnackBarExample', ':TabLayoutExample', ':CoordinatorFloatingActionButtonSnackBarExample', ':CoordinatorToolBarExample', ':CoordinatorCollapsingToolBarExample', ':SwipeDismissExample', ':SwipeDismissListExample' 2 | -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/values/color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #303f9f 4 | #3f51b5 5 | #4675FF 6 | #884675FF 7 | -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/res/values/color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #303f9f 4 | #3f51b5 5 | #4675FF 6 | #884675FF 7 | -------------------------------------------------------------------------------- /SnackBarExample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | NavigationViewExample 3 | 4 | Menu item 1 5 | Menu item 2 6 | Sub header 7 | Sub item 1 8 | Sub item 2 9 | 10 | -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/layout/fragment_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 7 | -------------------------------------------------------------------------------- /SnackBarExample/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /SnackBarExample/src/androidTest/java/me/leolin/android/design/snackbar/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.snackbar; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /TabLayoutExample/src/androidTest/java/me/leolin/android/design/tablayout/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.tablayout; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /NavigationViewExample/src/androidTest/java/me/leolin/android/design/navgation/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.navgation; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /SwipeDismissExample/src/androidTest/java/me/leolin/android/design/swipedismiss/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.swipedismiss; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /TextInputLayoutExample/src/androidTest/java/me/leolin/android/design/textinput/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.textinput; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /SwipeDismissListExample/src/androidTest/java/me/leolin/android/design/swipedismisslist/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.swipedismisslist; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/androidTest/java/me/leolin/android/design/coordinatortoolbarexample/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.coordinatortoolbarexample; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/androidTest/java/me/leolin/android/design/coordinatorcollapsingtoolbarexample/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.coordinatorcollapsingtoolbarexample; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /TextInputLayoutExample/src/androidTest/java/me/coordinatorfloatingactiobbuttonsnacklayout/android/design/textinput/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.coordinatorfloatingactiobbuttonsnacklayout.android.design.textinput; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/androidTest/java/me/leolin/android/design/coordinatorfloatingactionbuttonsnackbar/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.coordinatorfloatingactionbuttonsnackbar; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/androidTest/java/me/coordinatorfloatingactiobbuttonsnacklayout/android/design/floatingactionbutton/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package me.coordinatorfloatingactiobbuttonsnacklayout.android.design.floatingactionbutton; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /SnackBarExample/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/leolin/work/sdk/android-sdk-macosx/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 | -------------------------------------------------------------------------------- /TabLayoutExample/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/leolin/work/sdk/android-sdk-macosx/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 | -------------------------------------------------------------------------------- /NavigationViewExample/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/leolin/work/sdk/android-sdk-macosx/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 | -------------------------------------------------------------------------------- /SwipeDismissExample/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/leolin/work/sdk/android-sdk-macosx/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 | -------------------------------------------------------------------------------- /CoordinatorToolBarExample/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/leolin/work/sdk/android-sdk-macosx/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 | -------------------------------------------------------------------------------- /SwipeDismissListExample/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/leolin/work/sdk/android-sdk-macosx/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 | -------------------------------------------------------------------------------- /TextInputLayoutExample/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/leolin/work/sdk/android-sdk-macosx/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 | -------------------------------------------------------------------------------- /FloatingActionButtonExample/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/leolin/work/sdk/android-sdk-macosx/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 | -------------------------------------------------------------------------------- /NavigationViewExample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /SnackBarExample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/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/leolin/work/sdk/android-sdk-macosx/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 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/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/leolin/work/sdk/android-sdk-macosx/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 | -------------------------------------------------------------------------------- /SnackBarExample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /TabLayoutExample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /SwipeDismissListExample/src/main/res/layout/listitem.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 13 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /TabLayoutExample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 18 | 19 | -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/layout/nav_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 12 | 14 | 16 | -------------------------------------------------------------------------------- /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 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /SwipeDismissExample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 15 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/layout/toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/java/me/leolin/android/design/floatingactionbutton/MainActivity.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.floatingactionbutton; 2 | 3 | import android.os.Bundle; 4 | import android.support.design.widget.FloatingActionButton; 5 | import android.support.v7.app.AppCompatActivity; 6 | import android.view.View; 7 | import android.widget.Toast; 8 | 9 | 10 | public class MainActivity extends AppCompatActivity { 11 | 12 | @Override 13 | protected void onCreate(Bundle savedInstanceState) { 14 | super.onCreate(savedInstanceState); 15 | setContentView(R.layout.activity_main); 16 | 17 | FloatingActionButton floatingActionButton = (FloatingActionButton) findViewById(R.id.floatingActionButton); 18 | floatingActionButton.setOnClickListener(new View.OnClickListener() { 19 | @Override 20 | public void onClick(View v) { 21 | Toast.makeText(MainActivity.this, "Add", Toast.LENGTH_SHORT).show(); 22 | } 23 | }); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /SnackBarExample/src/main/java/me/leolin/android/design/snackbar/MainActivity.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.snackbar; 2 | 3 | import android.os.Bundle; 4 | import android.support.design.widget.Snackbar; 5 | import android.support.v7.app.AppCompatActivity; 6 | import android.view.View; 7 | import android.widget.Toast; 8 | 9 | 10 | public class MainActivity extends AppCompatActivity { 11 | 12 | 13 | @Override 14 | protected void onCreate(Bundle savedInstanceState) { 15 | super.onCreate(savedInstanceState); 16 | setContentView(R.layout.activity_main); 17 | 18 | 19 | View container = findViewById(R.id.container); 20 | Snackbar.make(container, "Done!", Snackbar.LENGTH_LONG) 21 | .setAction("Undo", new View.OnClickListener() { 22 | @Override 23 | public void onClick(View v) { 24 | Toast.makeText(MainActivity.this, "Ok was clicked", Toast.LENGTH_SHORT).show(); 25 | } 26 | }) 27 | .show(); 28 | 29 | } 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /SnackBarExample/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.1.1' 7 | } 8 | } 9 | apply plugin: 'com.android.application' 10 | 11 | repositories { 12 | jcenter() 13 | } 14 | 15 | android { 16 | compileSdkVersion 22 17 | buildToolsVersion "22.0.1" 18 | 19 | defaultConfig { 20 | applicationId "me.leolin.android.design.snackbar" 21 | minSdkVersion 15 22 | targetSdkVersion 22 23 | versionCode 1 24 | versionName "1.0" 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_6 29 | targetCompatibility JavaVersion.VERSION_1_6 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 | compile 'com.android.support:appcompat-v7:22.2.0' 42 | compile 'com.android.support:design:22.2.0' 43 | } 44 | -------------------------------------------------------------------------------- /TabLayoutExample/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.1.1' 7 | } 8 | } 9 | apply plugin: 'com.android.application' 10 | 11 | repositories { 12 | jcenter() 13 | } 14 | 15 | android { 16 | compileSdkVersion 22 17 | buildToolsVersion "22.0.1" 18 | 19 | defaultConfig { 20 | applicationId "me.leolin.android.design.tablayout" 21 | minSdkVersion 15 22 | targetSdkVersion 22 23 | versionCode 1 24 | versionName "1.0" 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_6 29 | targetCompatibility JavaVersion.VERSION_1_6 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 | compile 'com.android.support:appcompat-v7:22.2.0' 42 | compile 'com.android.support:design:22.2.0' 43 | } 44 | -------------------------------------------------------------------------------- /NavigationViewExample/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.2.2' 7 | } 8 | } 9 | apply plugin: 'com.android.application' 10 | 11 | repositories { 12 | jcenter() 13 | } 14 | 15 | android { 16 | compileSdkVersion 22 17 | buildToolsVersion "22.0.1" 18 | 19 | defaultConfig { 20 | applicationId "me.leolin.android.design.navgation" 21 | minSdkVersion 15 22 | targetSdkVersion 22 23 | versionCode 1 24 | versionName "1.0" 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_6 29 | targetCompatibility JavaVersion.VERSION_1_6 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 | compile 'com.android.support:appcompat-v7:22.2.0' 42 | compile 'com.android.support:design:22.2.0' 43 | } 44 | -------------------------------------------------------------------------------- /TextInputLayoutExample/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.1.1' 7 | } 8 | } 9 | apply plugin: 'com.android.application' 10 | 11 | repositories { 12 | jcenter() 13 | } 14 | 15 | android { 16 | compileSdkVersion 22 17 | buildToolsVersion "22.0.1" 18 | 19 | defaultConfig { 20 | applicationId "me.leolin.android.design.textinput" 21 | minSdkVersion 15 22 | targetSdkVersion 22 23 | versionCode 1 24 | versionName "1.0" 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_6 29 | targetCompatibility JavaVersion.VERSION_1_6 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 | compile 'com.android.support:appcompat-v7:22.2.0' 42 | compile 'com.android.support:design:22.2.0' 43 | } 44 | -------------------------------------------------------------------------------- /FloatingActionButtonExample/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.1.1' 7 | } 8 | } 9 | apply plugin: 'com.android.application' 10 | 11 | repositories { 12 | jcenter() 13 | } 14 | 15 | android { 16 | compileSdkVersion 22 17 | buildToolsVersion "22.0.1" 18 | 19 | defaultConfig { 20 | applicationId "me.leolin.android.design.floatingactionbutton" 21 | minSdkVersion 15 22 | targetSdkVersion 22 23 | versionCode 1 24 | versionName "1.0" 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_6 29 | targetCompatibility JavaVersion.VERSION_1_6 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 | compile 'com.android.support:appcompat-v7:22.2.0' 42 | compile 'com.android.support:design:22.2.0' 43 | } 44 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.1.1' 7 | } 8 | } 9 | apply plugin: 'com.android.application' 10 | 11 | repositories { 12 | jcenter() 13 | } 14 | 15 | android { 16 | compileSdkVersion 22 17 | buildToolsVersion "22.0.1" 18 | 19 | defaultConfig { 20 | applicationId "me.leolin.android.design.coordinatorfloatingactionbuttonsnackbar" 21 | minSdkVersion 15 22 | targetSdkVersion 22 23 | versionCode 1 24 | versionName "1.0" 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_6 29 | targetCompatibility JavaVersion.VERSION_1_6 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 | compile 'com.android.support:appcompat-v7:22.2.0' 42 | compile 'com.android.support:design:22.2.0' 43 | } 44 | -------------------------------------------------------------------------------- /CoordinatorToolBarExample/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.1.1' 7 | } 8 | } 9 | apply plugin: 'com.android.application' 10 | 11 | repositories { 12 | jcenter() 13 | } 14 | 15 | android { 16 | compileSdkVersion 22 17 | buildToolsVersion "22.0.1" 18 | 19 | defaultConfig { 20 | applicationId "me.leolin.android.design.coordinatortoolbarexample" 21 | minSdkVersion 15 22 | targetSdkVersion 22 23 | versionCode 1 24 | versionName "1.0" 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_6 29 | targetCompatibility JavaVersion.VERSION_1_6 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 | compile 'com.android.support:appcompat-v7:22.2.0' 42 | compile 'com.android.support:design:22.2.0' 43 | compile 'com.android.support:recyclerview-v7:22.2.0' 44 | } 45 | -------------------------------------------------------------------------------- /CoordinatorCollapsingToolBarExample/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.1.1' 7 | } 8 | } 9 | apply plugin: 'com.android.application' 10 | 11 | repositories { 12 | jcenter() 13 | } 14 | 15 | android { 16 | compileSdkVersion 22 17 | buildToolsVersion "22.0.1" 18 | 19 | defaultConfig { 20 | applicationId "me.leolin.android.design.coordinatorcollapsingtoolbarexample" 21 | minSdkVersion 15 22 | targetSdkVersion 22 23 | versionCode 1 24 | versionName "1.0" 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_6 29 | targetCompatibility JavaVersion.VERSION_1_6 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 | compile 'com.android.support:appcompat-v7:22.2.0' 42 | compile 'com.android.support:design:22.2.0' 43 | compile 'com.android.support:recyclerview-v7:22.2.0' 44 | } 45 | -------------------------------------------------------------------------------- /FloatingActionButtonExample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /TabLayoutExample/src/main/java/me/leolin/android/design/tablayout/PagerFragment.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.tablayout; 2 | 3 | import android.os.Bundle; 4 | import android.support.annotation.Nullable; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.widget.TextView; 10 | 11 | /** 12 | * @author Leolin 13 | */ 14 | public class PagerFragment extends Fragment { 15 | static PagerFragment newInstance(int position) { 16 | Bundle args = new Bundle(); 17 | args.putInt("position", position); 18 | PagerFragment fragment = new PagerFragment(); 19 | fragment.setArguments(args); 20 | return fragment; 21 | } 22 | 23 | @Nullable 24 | @Override 25 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 26 | return inflater.inflate(R.layout.fragment_main, null); 27 | } 28 | 29 | @Override 30 | public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { 31 | TextView textView = (TextView) view.findViewById(R.id.textView); 32 | textView.setText(String.valueOf(getArguments().getInt("position"))); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /SwipeDismissExample/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.1.1' 7 | } 8 | } 9 | apply plugin: 'com.android.application' 10 | 11 | repositories { 12 | jcenter() 13 | } 14 | 15 | android { 16 | compileSdkVersion 22 17 | buildToolsVersion "22.0.1" 18 | 19 | defaultConfig { 20 | applicationId "me.leolin.android.design.swipedismiss" 21 | minSdkVersion 15 22 | targetSdkVersion 22 23 | versionCode 1 24 | versionName "1.0" 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_6 29 | targetCompatibility JavaVersion.VERSION_1_6 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 | compile 'com.android.support:appcompat-v7:22.2.0' 42 | compile 'com.android.support:design:22.2.0' 43 | compile 'com.android.support:recyclerview-v7:22.2.0' 44 | compile 'com.android.support:cardview-v7:22.2.0' 45 | } 46 | -------------------------------------------------------------------------------- /SwipeDismissListExample/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | jcenter() 4 | } 5 | dependencies { 6 | classpath 'com.android.tools.build:gradle:1.1.1' 7 | } 8 | } 9 | apply plugin: 'com.android.application' 10 | 11 | repositories { 12 | jcenter() 13 | } 14 | 15 | android { 16 | compileSdkVersion 22 17 | buildToolsVersion "22.0.1" 18 | 19 | defaultConfig { 20 | applicationId "me.leolin.android.design.swipedismisslist" 21 | minSdkVersion 15 22 | targetSdkVersion 22 23 | versionCode 1 24 | versionName "1.0" 25 | } 26 | 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_1_6 29 | targetCompatibility JavaVersion.VERSION_1_6 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 | compile 'com.android.support:appcompat-v7:22.2.0' 42 | compile 'com.android.support:design:22.2.0' 43 | compile 'com.android.support:recyclerview-v7:22.2.0' 44 | compile 'com.android.support:cardview-v7:22.2.0' 45 | } 46 | -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/menu/my_navigation_items.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 13 | 14 | 15 | 18 | 19 | 23 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /NavigationViewExample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 9 | 12 | 13 | 19 | 20 | 21 | 30 | -------------------------------------------------------------------------------- /CoordinatorToolBarExample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 13 | 20 | 21 | 22 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /CoordinatorFloatingActionButtonSnackBarExample/src/main/java/me/leolin/android/design/coordinatorfloatingactionbuttonsnackbar/MainActivity.java: -------------------------------------------------------------------------------- 1 | package me.leolin.android.design.coordinatorfloatingactionbuttonsnackbar; 2 | 3 | import android.os.Bundle; 4 | import android.support.design.widget.CoordinatorLayout; 5 | import android.support.design.widget.FloatingActionButton; 6 | import android.support.design.widget.Snackbar; 7 | import android.support.v7.app.AppCompatActivity; 8 | import android.view.View; 9 | 10 | 11 | public class MainActivity extends AppCompatActivity { 12 | 13 | private CoordinatorLayout coordinatorLayout; 14 | 15 | @Override 16 | protected void onCreate(Bundle savedInstanceState) { 17 | super.onCreate(savedInstanceState); 18 | setContentView(R.layout.activity_main); 19 | 20 | coordinatorLayout = (CoordinatorLayout) findViewById(R.id.container); 21 | 22 | FloatingActionButton floatingActionButton = (FloatingActionButton) findViewById(R.id.floatingActionButton); 23 | floatingActionButton.setOnClickListener(new View.OnClickListener() { 24 | @Override 25 | public void onClick(View v) { 26 | Snackbar.make(coordinatorLayout, "Done", Snackbar.LENGTH_LONG) 27 | .setAction("Undo", new View.OnClickListener() { 28 | @Override 29 | public void onClick(View v) { 30 | 31 | } 32 | }) 33 | .show(); 34 | } 35 | }); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /TextInputLayoutExample/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 16 | 17 | 18 | 22 | 23 | 24 | 25 |