├── .github └── workflows │ └── android.yml ├── .gitignore ├── LICENSE ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── nxg │ │ └── app │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── nxg │ │ │ └── app │ │ │ ├── MainActivity.kt │ │ │ ├── main │ │ │ ├── AppApplication.kt │ │ │ ├── DoubleColorBallAdapter.kt │ │ │ ├── DoubleColorBallItemDecoration.kt │ │ │ ├── LoopScrollViewAdapter.kt │ │ │ ├── LoopScrollViewItemBean.kt │ │ │ ├── MainFragment.kt │ │ │ └── MainViewModel.kt │ │ │ └── utils │ │ │ └── AppUtils.kt │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ ├── ic_app.jpeg │ │ ├── ic_launcher_background.xml │ │ ├── ic_lucky.png │ │ ├── loop_scroll_view_shape_item.xml │ │ ├── shape_double_color_ball_blue.xml │ │ ├── shape_double_color_ball_lottery.xml │ │ ├── shape_double_color_ball_lottery_normal.xml │ │ ├── shape_double_color_ball_lottery_pressed.xml │ │ └── shape_double_color_ball_red.xml │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── double_color_ball_item.xml │ │ ├── loop_scroll_view_item_text.xml │ │ ├── loop_scroll_view_item_text_blue.xml │ │ ├── loop_scroll_view_item_text_red.xml │ │ └── main_fragment.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── navigation │ │ └── nav_graph.xml │ │ ├── values-night │ │ └── themes.xml │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── themes.xml │ └── test │ └── java │ └── com │ └── nxg │ └── app │ └── ExampleUnitTest.kt ├── demo.gif ├── demo.jks ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── jitpack.yml ├── keystore.properties ├── recyclerviewloopscrollanimation ├── .gitignore ├── build.gradle ├── consumer-rules.pro ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── nxg │ │ └── loopscrollanimation │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ └── java │ │ └── com │ │ └── nxg │ │ └── loopscrollanimation │ │ ├── RecyclerViewLoopScrollAnimation.kt │ │ └── utils │ │ ├── LogUtil.java │ │ └── ReflectUtils.java │ └── test │ └── java │ └── com │ └── nxg │ └── loopscrollanimation │ └── ExampleUnitTest.kt └── settings.gradle /.github/workflows/android.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/.github/workflows/android.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/README.md -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/build.gradle -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/proguard-rules.pro -------------------------------------------------------------------------------- /app/src/androidTest/java/com/nxg/app/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/androidTest/java/com/nxg/app/ExampleInstrumentedTest.kt -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /app/src/main/java/com/nxg/app/MainActivity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/java/com/nxg/app/MainActivity.kt -------------------------------------------------------------------------------- /app/src/main/java/com/nxg/app/main/AppApplication.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/java/com/nxg/app/main/AppApplication.kt -------------------------------------------------------------------------------- /app/src/main/java/com/nxg/app/main/DoubleColorBallAdapter.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/java/com/nxg/app/main/DoubleColorBallAdapter.kt -------------------------------------------------------------------------------- /app/src/main/java/com/nxg/app/main/DoubleColorBallItemDecoration.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/java/com/nxg/app/main/DoubleColorBallItemDecoration.kt -------------------------------------------------------------------------------- /app/src/main/java/com/nxg/app/main/LoopScrollViewAdapter.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/java/com/nxg/app/main/LoopScrollViewAdapter.kt -------------------------------------------------------------------------------- /app/src/main/java/com/nxg/app/main/LoopScrollViewItemBean.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/java/com/nxg/app/main/LoopScrollViewItemBean.kt -------------------------------------------------------------------------------- /app/src/main/java/com/nxg/app/main/MainFragment.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/java/com/nxg/app/main/MainFragment.kt -------------------------------------------------------------------------------- /app/src/main/java/com/nxg/app/main/MainViewModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/java/com/nxg/app/main/MainViewModel.kt -------------------------------------------------------------------------------- /app/src/main/java/com/nxg/app/utils/AppUtils.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/java/com/nxg/app/utils/AppUtils.kt -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/drawable-v24/ic_launcher_foreground.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_app.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/drawable/ic_app.jpeg -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/drawable/ic_launcher_background.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_lucky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/drawable/ic_lucky.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/loop_scroll_view_shape_item.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/drawable/loop_scroll_view_shape_item.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_double_color_ball_blue.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/drawable/shape_double_color_ball_blue.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_double_color_ball_lottery.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/drawable/shape_double_color_ball_lottery.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_double_color_ball_lottery_normal.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/drawable/shape_double_color_ball_lottery_normal.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_double_color_ball_lottery_pressed.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/drawable/shape_double_color_ball_lottery_pressed.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_double_color_ball_red.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/drawable/shape_double_color_ball_red.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/layout/activity_main.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/double_color_ball_item.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/layout/double_color_ball_item.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/loop_scroll_view_item_text.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/layout/loop_scroll_view_item_text.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/loop_scroll_view_item_text_blue.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/layout/loop_scroll_view_item_text_blue.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/loop_scroll_view_item_text_red.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/layout/loop_scroll_view_item_text_red.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/main_fragment.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/layout/main_fragment.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/navigation/nav_graph.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/navigation/nav_graph.xml -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/values-night/themes.xml -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/values/colors.xml -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/values/dimens.xml -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/main/res/values/themes.xml -------------------------------------------------------------------------------- /app/src/test/java/com/nxg/app/ExampleUnitTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/app/src/test/java/com/nxg/app/ExampleUnitTest.kt -------------------------------------------------------------------------------- /demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/demo.gif -------------------------------------------------------------------------------- /demo.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/demo.jks -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/gradlew.bat -------------------------------------------------------------------------------- /jitpack.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/jitpack.yml -------------------------------------------------------------------------------- /keystore.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/keystore.properties -------------------------------------------------------------------------------- /recyclerviewloopscrollanimation/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /recyclerviewloopscrollanimation/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/recyclerviewloopscrollanimation/build.gradle -------------------------------------------------------------------------------- /recyclerviewloopscrollanimation/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /recyclerviewloopscrollanimation/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/recyclerviewloopscrollanimation/proguard-rules.pro -------------------------------------------------------------------------------- /recyclerviewloopscrollanimation/src/androidTest/java/com/nxg/loopscrollanimation/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/recyclerviewloopscrollanimation/src/androidTest/java/com/nxg/loopscrollanimation/ExampleInstrumentedTest.kt -------------------------------------------------------------------------------- /recyclerviewloopscrollanimation/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/recyclerviewloopscrollanimation/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /recyclerviewloopscrollanimation/src/main/java/com/nxg/loopscrollanimation/RecyclerViewLoopScrollAnimation.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/recyclerviewloopscrollanimation/src/main/java/com/nxg/loopscrollanimation/RecyclerViewLoopScrollAnimation.kt -------------------------------------------------------------------------------- /recyclerviewloopscrollanimation/src/main/java/com/nxg/loopscrollanimation/utils/LogUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/recyclerviewloopscrollanimation/src/main/java/com/nxg/loopscrollanimation/utils/LogUtil.java -------------------------------------------------------------------------------- /recyclerviewloopscrollanimation/src/main/java/com/nxg/loopscrollanimation/utils/ReflectUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/recyclerviewloopscrollanimation/src/main/java/com/nxg/loopscrollanimation/utils/ReflectUtils.java -------------------------------------------------------------------------------- /recyclerviewloopscrollanimation/src/test/java/com/nxg/loopscrollanimation/ExampleUnitTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/recyclerviewloopscrollanimation/src/test/java/com/nxg/loopscrollanimation/ExampleUnitTest.kt -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiangang/RecyclerViewLoopScrollAnimation/HEAD/settings.gradle --------------------------------------------------------------------------------