├── .gitignore ├── LICENSE ├── README-ZH.md ├── README.md ├── apk └── app-debug.apk ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── ckr │ │ └── flexitemdecoration │ │ ├── MainActivity.java │ │ ├── adapter │ │ ├── HorizontalGridAdapter.java │ │ ├── MainAdapter.java │ │ └── MyFragmentPagerAdapter.java │ │ ├── model │ │ ├── Header.java │ │ └── UserInfo.java │ │ ├── view │ │ ├── BaseFragment.java │ │ ├── HorizontalGridFragment.java │ │ ├── LinearFragment.java │ │ └── VerticalGridFragment.java │ │ └── widget │ │ └── MyViewPager.java │ └── res │ ├── drawable │ ├── bg_divider_list.xml │ ├── bg_divider_offset.xml │ ├── bg_divider_offset_grid.xml │ ├── bg_divider_redraw.xml │ ├── bg_divider_redraw_grid.xml │ └── bg_tablayout.xml │ ├── layout │ ├── activity_main.xml │ ├── fragment_horizontal_grid.xml │ ├── fragment_main.xml │ ├── item_picture.xml │ └── item_picture_horizontal.xml │ ├── menu │ └── menu_main.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 │ ├── banner2.png │ ├── ic_launcher.png │ ├── ic_launcher_round.png │ └── ic_person.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── raw │ └── user.json │ ├── values-zh │ └── strings.xml │ └── values │ ├── colors.xml │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── config.gradle ├── decoration ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── ckr │ │ └── decoration │ │ ├── BaseItemDecoration.java │ │ ├── DecorationLog.java │ │ ├── DividerGridItemDecoration.java │ │ ├── DividerLinearItemDecoration.java │ │ └── OnHeaderListener.java │ └── res │ ├── drawable │ └── bg_decoration.xml │ ├── layout │ └── item_header.xml │ └── values │ └── strings.xml ├── gradle.properties ├── gradlew ├── gradlew.bat ├── screenshot ├── Screenshot_1.png ├── Screenshot_10.png ├── Screenshot_2.png ├── Screenshot_3.png ├── Screenshot_4.png ├── Screenshot_5.png ├── Screenshot_6.png ├── Screenshot_7.png ├── Screenshot_8.png └── Screenshot_9.png └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/LICENSE -------------------------------------------------------------------------------- /README-ZH.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/README-ZH.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/README.md -------------------------------------------------------------------------------- /apk/app-debug.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/apk/app-debug.apk -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/build.gradle -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/proguard-rules.pro -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/MainActivity.java -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/adapter/HorizontalGridAdapter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/adapter/HorizontalGridAdapter.java -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/adapter/MainAdapter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/adapter/MainAdapter.java -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/adapter/MyFragmentPagerAdapter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/adapter/MyFragmentPagerAdapter.java -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/model/Header.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/model/Header.java -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/model/UserInfo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/model/UserInfo.java -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/view/BaseFragment.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/view/BaseFragment.java -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/view/HorizontalGridFragment.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/view/HorizontalGridFragment.java -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/view/LinearFragment.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/view/LinearFragment.java -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/view/VerticalGridFragment.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/view/VerticalGridFragment.java -------------------------------------------------------------------------------- /app/src/main/java/com/ckr/flexitemdecoration/widget/MyViewPager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/java/com/ckr/flexitemdecoration/widget/MyViewPager.java -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_divider_list.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/drawable/bg_divider_list.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_divider_offset.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/drawable/bg_divider_offset.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_divider_offset_grid.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/drawable/bg_divider_offset_grid.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_divider_redraw.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/drawable/bg_divider_redraw.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_divider_redraw_grid.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/drawable/bg_divider_redraw_grid.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_tablayout.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/drawable/bg_tablayout.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/layout/activity_main.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_horizontal_grid.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/layout/fragment_horizontal_grid.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/layout/fragment_main.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/item_picture.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/layout/item_picture.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/item_picture_horizontal.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/layout/item_picture_horizontal.xml -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/menu/menu_main.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/banner2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-xxhdpi/banner2.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_person.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-xxhdpi/ic_person.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/raw/user.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/raw/user.json -------------------------------------------------------------------------------- /app/src/main/res/values-zh/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/values-zh/strings.xml -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/values/colors.xml -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/values/dimens.xml -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /config.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/config.gradle -------------------------------------------------------------------------------- /decoration/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /decoration/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/build.gradle -------------------------------------------------------------------------------- /decoration/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/proguard-rules.pro -------------------------------------------------------------------------------- /decoration/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /decoration/src/main/java/com/ckr/decoration/BaseItemDecoration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/src/main/java/com/ckr/decoration/BaseItemDecoration.java -------------------------------------------------------------------------------- /decoration/src/main/java/com/ckr/decoration/DecorationLog.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/src/main/java/com/ckr/decoration/DecorationLog.java -------------------------------------------------------------------------------- /decoration/src/main/java/com/ckr/decoration/DividerGridItemDecoration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/src/main/java/com/ckr/decoration/DividerGridItemDecoration.java -------------------------------------------------------------------------------- /decoration/src/main/java/com/ckr/decoration/DividerLinearItemDecoration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/src/main/java/com/ckr/decoration/DividerLinearItemDecoration.java -------------------------------------------------------------------------------- /decoration/src/main/java/com/ckr/decoration/OnHeaderListener.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/src/main/java/com/ckr/decoration/OnHeaderListener.java -------------------------------------------------------------------------------- /decoration/src/main/res/drawable/bg_decoration.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/src/main/res/drawable/bg_decoration.xml -------------------------------------------------------------------------------- /decoration/src/main/res/layout/item_header.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/src/main/res/layout/item_header.xml -------------------------------------------------------------------------------- /decoration/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/decoration/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/gradlew.bat -------------------------------------------------------------------------------- /screenshot/Screenshot_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/screenshot/Screenshot_1.png -------------------------------------------------------------------------------- /screenshot/Screenshot_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/screenshot/Screenshot_10.png -------------------------------------------------------------------------------- /screenshot/Screenshot_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/screenshot/Screenshot_2.png -------------------------------------------------------------------------------- /screenshot/Screenshot_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/screenshot/Screenshot_3.png -------------------------------------------------------------------------------- /screenshot/Screenshot_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/screenshot/Screenshot_4.png -------------------------------------------------------------------------------- /screenshot/Screenshot_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/screenshot/Screenshot_5.png -------------------------------------------------------------------------------- /screenshot/Screenshot_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/screenshot/Screenshot_6.png -------------------------------------------------------------------------------- /screenshot/Screenshot_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/screenshot/Screenshot_7.png -------------------------------------------------------------------------------- /screenshot/Screenshot_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/screenshot/Screenshot_8.png -------------------------------------------------------------------------------- /screenshot/Screenshot_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrgithub/FlexItemDecoration/HEAD/screenshot/Screenshot_9.png -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':decoration' 2 | --------------------------------------------------------------------------------