From 2aa144c32ce17eb29d4c11d244f825e142842ddd Mon Sep 17 00:00:00 2001 From: Divyansh Dwivedi Date: Mon, 11 Oct 2021 20:27:22 +0530 Subject: [PATCH] modified the code to include zoom --- .idea/gradle.xml | 1 + .idea/jarRepositories.xml | 5 + app/build.gradle | 3 + app/src/main/AndroidManifest.xml | 4 +- .../CustomZoomScrollView.java | 68 ++ .../twodscrollablezoomable/MainActivity.java | 7 + .../TwoDScrollableZoomableView.java | 730 ++++++++++++++++++ app/src/main/res/layout/activity_main.xml | 21 +- build.gradle | 1 + sample/.gitignore | 1 + sample/build.gradle | 43 ++ sample/proguard-rules.pro | 21 + .../tech/sample/ExampleInstrumentedTest.java | 26 + sample/src/main/AndroidManifest.xml | 23 + .../divyansh/tech/sample/MainActivity.java | 24 + .../drawable-v24/ic_launcher_foreground.xml | 30 + .../res/drawable/ic_launcher_background.xml | 170 ++++ sample/src/main/res/layout/activity_main.xml | 21 + .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3593 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5339 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2636 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 3388 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4926 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7472 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7909 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 11873 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10652 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 16570 bytes sample/src/main/res/values-night/themes.xml | 16 + sample/src/main/res/values/colors.xml | 10 + sample/src/main/res/values/strings.xml | 3 + sample/src/main/res/values/themes.xml | 16 + .../divyansh/tech/sample/ExampleUnitTest.java | 17 + settings.gradle | 1 + .../TwoDScrollableZoomableView.java | 47 +- 37 files changed, 1293 insertions(+), 26 deletions(-) create mode 100644 app/src/main/java/divyansh/tech/twodscrollablezoomable/CustomZoomScrollView.java create mode 100644 app/src/main/java/divyansh/tech/twodscrollablezoomable/TwoDScrollableZoomableView.java create mode 100644 sample/.gitignore create mode 100644 sample/build.gradle create mode 100644 sample/proguard-rules.pro create mode 100644 sample/src/androidTest/java/divyansh/tech/sample/ExampleInstrumentedTest.java create mode 100644 sample/src/main/AndroidManifest.xml create mode 100644 sample/src/main/java/divyansh/tech/sample/MainActivity.java create mode 100644 sample/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 sample/src/main/res/drawable/ic_launcher_background.xml create mode 100644 sample/src/main/res/layout/activity_main.xml create mode 100644 sample/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 sample/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 sample/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 sample/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 sample/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 sample/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 sample/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 sample/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 sample/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 sample/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 sample/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 sample/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 sample/src/main/res/values-night/themes.xml create mode 100644 sample/src/main/res/values/colors.xml create mode 100644 sample/src/main/res/values/strings.xml create mode 100644 sample/src/main/res/values/themes.xml create mode 100644 sample/src/test/java/divyansh/tech/sample/ExampleUnitTest.java diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 2c074ff..c1c33a3 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -10,6 +10,7 @@ diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 0380d8d..958a5be 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -26,5 +26,10 @@