├── .gitignore ├── LICENSE.txt ├── README.md ├── library ├── AndroidManifest.xml ├── ant.properties ├── build.xml ├── pom.xml ├── proguard.cfg ├── project.properties ├── res │ ├── anim │ │ ├── fadein.xml │ │ └── fadeout.xml │ ├── drawable-hdpi │ │ ├── btn_zoom_down_disabled.9.png │ │ ├── btn_zoom_down_disabled_focused.9.png │ │ ├── btn_zoom_down_normal.9.png │ │ ├── btn_zoom_down_pressed.9.png │ │ ├── btn_zoom_down_selected.9.png │ │ ├── btn_zoom_up_disabled.9.png │ │ ├── btn_zoom_up_disabled_focused.9.png │ │ ├── btn_zoom_up_normal.9.png │ │ ├── btn_zoom_up_pressed.9.png │ │ ├── btn_zoom_up_selected.9.png │ │ └── ic_maps_indicator_current_position.png │ ├── drawable-mdpi │ │ ├── btn_zoom_down_disabled.9.png │ │ ├── btn_zoom_down_disabled_focused.9.png │ │ ├── btn_zoom_down_normal.9.png │ │ ├── btn_zoom_down_pressed.9.png │ │ ├── btn_zoom_down_selected.9.png │ │ ├── btn_zoom_up_disabled.9.png │ │ ├── btn_zoom_up_disabled_focused.9.png │ │ ├── btn_zoom_up_normal.9.png │ │ ├── btn_zoom_up_pressed.9.png │ │ └── btn_zoom_up_selected.9.png │ ├── drawable │ │ ├── btn_zoom_down.xml │ │ └── btn_zoom_up.xml │ ├── layout │ │ └── ll_tiledscroll_view_zoom_buttons.xml │ └── values │ │ ├── attrs.xml │ │ └── strings.xml └── src │ └── asia │ └── ivity │ └── android │ └── tiledscrollview │ ├── ConfigurationSet.java │ ├── OnZoomLevelChangedListener.java │ ├── Tile.java │ ├── TiledScrollView.java │ ├── TiledScrollViewWorker.java │ ├── TwoDScrollView.java │ └── ZoomingFrameLayout.java ├── pom.xml └── sample ├── AndroidManifest.xml ├── assets ├── tiger1600 │ ├── crop_0_0.png │ ├── crop_0_1.png │ ├── crop_0_10.png │ ├── crop_0_11.png │ ├── crop_0_12.png │ ├── crop_0_13.png │ ├── crop_0_14.png │ ├── crop_0_15.png │ ├── crop_0_2.png │ ├── crop_0_3.png │ ├── crop_0_4.png │ ├── crop_0_5.png │ ├── crop_0_6.png │ ├── crop_0_7.png │ ├── crop_0_8.png │ ├── crop_0_9.png │ ├── crop_10_0.png │ ├── crop_10_1.png │ ├── crop_10_10.png │ ├── crop_10_11.png │ ├── crop_10_12.png │ ├── crop_10_13.png │ ├── crop_10_14.png │ ├── crop_10_15.png │ ├── crop_10_2.png │ ├── crop_10_3.png │ ├── crop_10_4.png │ ├── crop_10_5.png │ ├── crop_10_6.png │ ├── crop_10_7.png │ ├── crop_10_8.png │ ├── crop_10_9.png │ ├── crop_11_0.png │ ├── crop_11_1.png │ ├── crop_11_10.png │ ├── crop_11_11.png │ ├── crop_11_12.png │ ├── crop_11_13.png │ ├── crop_11_14.png │ ├── crop_11_15.png │ ├── crop_11_2.png │ ├── crop_11_3.png │ ├── crop_11_4.png │ ├── crop_11_5.png │ ├── crop_11_6.png │ ├── crop_11_7.png │ ├── crop_11_8.png │ ├── crop_11_9.png │ ├── crop_1_0.png │ ├── crop_1_1.png │ ├── crop_1_10.png │ ├── crop_1_11.png │ ├── crop_1_12.png │ ├── crop_1_13.png │ ├── crop_1_14.png │ ├── crop_1_15.png │ ├── crop_1_2.png │ ├── crop_1_3.png │ ├── crop_1_4.png │ ├── crop_1_5.png │ ├── crop_1_6.png │ ├── crop_1_7.png │ ├── crop_1_8.png │ ├── crop_1_9.png │ ├── crop_2_0.png │ ├── crop_2_1.png │ ├── crop_2_10.png │ ├── crop_2_11.png │ ├── crop_2_12.png │ ├── crop_2_13.png │ ├── crop_2_14.png │ ├── crop_2_15.png │ ├── crop_2_2.png │ ├── crop_2_3.png │ ├── crop_2_4.png │ ├── crop_2_5.png │ ├── crop_2_6.png │ ├── crop_2_7.png │ ├── crop_2_8.png │ ├── crop_2_9.png │ ├── crop_3_0.png │ ├── crop_3_1.png │ ├── crop_3_10.png │ ├── crop_3_11.png │ ├── crop_3_12.png │ ├── crop_3_13.png │ ├── crop_3_14.png │ ├── crop_3_15.png │ ├── crop_3_2.png │ ├── crop_3_3.png │ ├── crop_3_4.png │ ├── crop_3_5.png │ ├── crop_3_6.png │ ├── crop_3_7.png │ ├── crop_3_8.png │ ├── crop_3_9.png │ ├── crop_4_0.png │ ├── crop_4_1.png │ ├── crop_4_10.png │ ├── crop_4_11.png │ ├── crop_4_12.png │ ├── crop_4_13.png │ ├── crop_4_14.png │ ├── crop_4_15.png │ ├── crop_4_2.png │ ├── crop_4_3.png │ ├── crop_4_4.png │ ├── crop_4_5.png │ ├── crop_4_6.png │ ├── crop_4_7.png │ ├── crop_4_8.png │ ├── crop_4_9.png │ ├── crop_5_0.png │ ├── crop_5_1.png │ ├── crop_5_10.png │ ├── crop_5_11.png │ ├── crop_5_12.png │ ├── crop_5_13.png │ ├── crop_5_14.png │ ├── crop_5_15.png │ ├── crop_5_2.png │ ├── crop_5_3.png │ ├── crop_5_4.png │ ├── crop_5_5.png │ ├── crop_5_6.png │ ├── crop_5_7.png │ ├── crop_5_8.png │ ├── crop_5_9.png │ ├── crop_6_0.png │ ├── crop_6_1.png │ ├── crop_6_10.png │ ├── crop_6_11.png │ ├── crop_6_12.png │ ├── crop_6_13.png │ ├── crop_6_14.png │ ├── crop_6_15.png │ ├── crop_6_2.png │ ├── crop_6_3.png │ ├── crop_6_4.png │ ├── crop_6_5.png │ ├── crop_6_6.png │ ├── crop_6_7.png │ ├── crop_6_8.png │ ├── crop_6_9.png │ ├── crop_7_0.png │ ├── crop_7_1.png │ ├── crop_7_10.png │ ├── crop_7_11.png │ ├── crop_7_12.png │ ├── crop_7_13.png │ ├── crop_7_14.png │ ├── crop_7_15.png │ ├── crop_7_2.png │ ├── crop_7_3.png │ ├── crop_7_4.png │ ├── crop_7_5.png │ ├── crop_7_6.png │ ├── crop_7_7.png │ ├── crop_7_8.png │ ├── crop_7_9.png │ ├── crop_8_0.png │ ├── crop_8_1.png │ ├── crop_8_10.png │ ├── crop_8_11.png │ ├── crop_8_12.png │ ├── crop_8_13.png │ ├── crop_8_14.png │ ├── crop_8_15.png │ ├── crop_8_2.png │ ├── crop_8_3.png │ ├── crop_8_4.png │ ├── crop_8_5.png │ ├── crop_8_6.png │ ├── crop_8_7.png │ ├── crop_8_8.png │ ├── crop_8_9.png │ ├── crop_9_0.png │ ├── crop_9_1.png │ ├── crop_9_10.png │ ├── crop_9_11.png │ ├── crop_9_12.png │ ├── crop_9_13.png │ ├── crop_9_14.png │ ├── crop_9_15.png │ ├── crop_9_2.png │ ├── crop_9_3.png │ ├── crop_9_4.png │ ├── crop_9_5.png │ ├── crop_9_6.png │ ├── crop_9_7.png │ ├── crop_9_8.png │ └── crop_9_9.png ├── tiger400 │ ├── crop_0_0.png │ ├── crop_0_1.png │ ├── crop_0_2.png │ ├── crop_0_3.png │ ├── crop_1_0.png │ ├── crop_1_1.png │ ├── crop_1_2.png │ ├── crop_1_3.png │ ├── crop_2_0.png │ ├── crop_2_1.png │ ├── crop_2_2.png │ └── crop_2_3.png └── tiger800 │ ├── crop_0_0.png │ ├── crop_0_1.png │ ├── crop_0_2.png │ ├── crop_0_3.png │ ├── crop_0_4.png │ ├── crop_0_5.png │ ├── crop_0_6.png │ ├── crop_0_7.png │ ├── crop_1_0.png │ ├── crop_1_1.png │ ├── crop_1_2.png │ ├── crop_1_3.png │ ├── crop_1_4.png │ ├── crop_1_5.png │ ├── crop_1_6.png │ ├── crop_1_7.png │ ├── crop_2_0.png │ ├── crop_2_1.png │ ├── crop_2_2.png │ ├── crop_2_3.png │ ├── crop_2_4.png │ ├── crop_2_5.png │ ├── crop_2_6.png │ ├── crop_2_7.png │ ├── crop_3_0.png │ ├── crop_3_1.png │ ├── crop_3_2.png │ ├── crop_3_3.png │ ├── crop_3_4.png │ ├── crop_3_5.png │ ├── crop_3_6.png │ ├── crop_3_7.png │ ├── crop_4_0.png │ ├── crop_4_1.png │ ├── crop_4_2.png │ ├── crop_4_3.png │ ├── crop_4_4.png │ ├── crop_4_5.png │ ├── crop_4_6.png │ ├── crop_4_7.png │ ├── crop_5_0.png │ ├── crop_5_1.png │ ├── crop_5_2.png │ ├── crop_5_3.png │ ├── crop_5_4.png │ ├── crop_5_5.png │ ├── crop_5_6.png │ └── crop_5_7.png ├── build.properties ├── build.xml ├── default.properties ├── proguard.cfg ├── res ├── drawable-hdpi │ └── icon.png ├── drawable-ldpi │ └── icon.png ├── drawable-mdpi │ └── icon.png ├── layout │ └── main.xml └── values │ └── strings.xml └── src └── asia └── ivity └── android └── tiledscrollview └── TiledScrollViewSample.java /.gitignore: -------------------------------------------------------------------------------- 1 | # Android generated folders 2 | gen/ 3 | checkstyle-result.xml 4 | local.properties 5 | bin/ 6 | .project 7 | .classpath 8 | .idea 9 | out 10 | *.apk 11 | build.xml.bak 12 | .DS_Store 13 | *.iml 14 | *.ipr 15 | *.iws 16 | target 17 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2012 Sebastian Roth 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | *Project is not maintained right now. Please see the note at the end of this file.* 2 | 3 | Introduction 4 | ============ 5 | 6 | This Android widget aims to provide a scalable way to display large images (like Metro maps, paintings) while keeping the memory consumption as low as possible. 7 | 8 | The source image will be provided in TILES, so that all tiles combined create the full scale image. 9 | 10 | Current features: 11 | 12 | * Specify a image pattern to find the tiles 13 | * Freely navigate through the image using a two dimensional scroll view 14 | * Load required tiles on demand and non-blocking 15 | * Zoom levels using multiple levels of tiles 16 | * Panning, Pinching etc (multitouch gestures), work in progress 17 | 18 | Planned features: 19 | 20 | * A way to overlay icons or other widgets at fix points (similar to Google Maps), which should be useful for annotations 21 | 22 | Example 23 | ======= 24 | ``` xml 25 | 36 | ``` 37 | Attributes: 38 | 39 | * file_pattern - specifies the pattern to find the files. Placeholders `%col%` and `%row%` are mandatory 40 | * tile_height & tile_width - specify the tile dimensions. The widget should be able to handle non-fitting images (i.e. if the last tile is smaller then others tiles well) 41 | * image_height & image_width - image dimensions to support abovementioned functions. 42 | * zoom_buttons - whether to enable the zoom buttons, default is `true`. 43 | 44 | The attributes are very likely to be reduced and cut. I prefer the widget to be more simple in the long term. 45 | 46 | Multiple Zoom Levels 47 | ==================== 48 | 49 | The View supports different zoom levels. You can add them using Java. 50 | 51 | ``` java 52 | final TiledScrollView tiledScrollView = (TiledScrollView) findViewById(R.id.tiledScrollView); 53 | 54 | tiledScrollView.addConfigurationSet(TiledScrollView.ZoomLevel.LEVEL_1, 55 | new ConfigurationSet("tiger800/crop_%col%_%row%.png", 100, 100, 800, 600)); 56 | 57 | tiledScrollView.addConfigurationSet(TiledScrollView.ZoomLevel.LEVEL_2, 58 | new ConfigurationSet("tiger1600/crop_%col%_%row%.png", 100, 100, 1600, 1200)); 59 | ``` 60 | 61 | Credits 62 | ======= 63 | 64 | * Apple's iOS CATiledLayer for inspiring this work 65 | * http://GORGES.us for developing and publishing a two dimensional ScrollView 66 | * http://www.animalspedia.com/wallpaper/The-Siege---Siberian-Tiger/ for providing a nice sample picture 67 | 68 | Apps using this library 69 | ======================= 70 | 71 | * https://play.google.com/store/apps/details?id=asia.ivity.qifu.android.map 72 | * Send a pull request to add your App. 73 | 74 | Maven 75 | ===== 76 | 77 | The plugin is available in the maven central repository. 78 | 79 | ``` xml 80 | 81 | asia.ivity 82 | tiledscrollview 83 | 1.1.1 84 | apklib 85 | 86 | ``` 87 | 88 | License 89 | ======= 90 | 91 | This library is released under a BSD license. See the LICENSE file included with the distribution for details. 92 | 93 | Not for you? 94 | ============ 95 | 96 | Check out https://github.com/moagrius/TileView, which is a up to date Tiling library which includes many features. 97 | -------------------------------------------------------------------------------- /library/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /library/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /library/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 29 | 30 | 31 | 40 | 41 | 42 | 43 | 47 | 48 | 49 | 51 | 63 | 64 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /library/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 4.0.0 5 | 6 | asia.ivity 7 | tiledscrollview 8 | TiledScrollView 9 | apklib 10 | 11 | 12 | asia.ivity 13 | tiledscrollview.parent 14 | 1.1.2-SNAPSHOT 15 | ../pom.xml 16 | 17 | 18 | 19 | 20 | com.google.android 21 | android 22 | provided 23 | 24 | 25 | com.google.android 26 | support-v4 27 | 28 | 29 | 30 | 31 | src 32 | 33 | 34 | 35 | com.jayway.maven.plugins.android.generation2 36 | android-maven-plugin 37 | true 38 | 39 | ignored 40 | 41 | 42 | 43 | 44 | org.apache.maven.plugins 45 | maven-javadoc-plugin 46 | 47 | true 48 | 49 | 50 | 51 | org.codehaus.mojo 52 | build-helper-maven-plugin 53 | 1.7 54 | 55 | 56 | package 57 | 58 | attach-artifact 59 | 60 | 61 | 62 | 63 | jar 64 | ${project.build.directory}/${project.build.finalName}.jar 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /library/proguard.cfg: -------------------------------------------------------------------------------- 1 | -optimizationpasses 5 2 | -dontusemixedcaseclassnames 3 | -dontskipnonpubliclibraryclasses 4 | -dontpreverify 5 | -verbose 6 | -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* 7 | 8 | -keep public class * extends android.app.Activity 9 | -keep public class * extends android.app.Application 10 | -keep public class * extends android.app.Service 11 | -keep public class * extends android.content.BroadcastReceiver 12 | -keep public class * extends android.content.ContentProvider 13 | -keep public class * extends android.app.backup.BackupAgentHelper 14 | -keep public class * extends android.preference.Preference 15 | -keep public class com.android.vending.licensing.ILicensingService 16 | 17 | -keepclasseswithmembernames class * { 18 | native ; 19 | } 20 | 21 | -keepclasseswithmembers class * { 22 | public (android.content.Context, android.util.AttributeSet); 23 | } 24 | 25 | -keepclasseswithmembers class * { 26 | public (android.content.Context, android.util.AttributeSet, int); 27 | } 28 | 29 | -keepclassmembers class * extends android.app.Activity { 30 | public void *(android.view.View); 31 | } 32 | 33 | -keepclassmembers enum * { 34 | public static **[] values(); 35 | public static ** valueOf(java.lang.String); 36 | } 37 | 38 | -keep class * implements android.os.Parcelable { 39 | public static final android.os.Parcelable$Creator *; 40 | } 41 | -------------------------------------------------------------------------------- /library/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | android.library=true 11 | target=android-16 12 | -------------------------------------------------------------------------------- /library/res/anim/fadein.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | -------------------------------------------------------------------------------- /library/res/anim/fadeout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /library/res/drawable-hdpi/btn_zoom_down_disabled.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/btn_zoom_down_disabled.9.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/btn_zoom_down_disabled_focused.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/btn_zoom_down_disabled_focused.9.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/btn_zoom_down_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/btn_zoom_down_normal.9.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/btn_zoom_down_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/btn_zoom_down_pressed.9.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/btn_zoom_down_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/btn_zoom_down_selected.9.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/btn_zoom_up_disabled.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/btn_zoom_up_disabled.9.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/btn_zoom_up_disabled_focused.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/btn_zoom_up_disabled_focused.9.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/btn_zoom_up_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/btn_zoom_up_normal.9.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/btn_zoom_up_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/btn_zoom_up_pressed.9.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/btn_zoom_up_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/btn_zoom_up_selected.9.png -------------------------------------------------------------------------------- /library/res/drawable-hdpi/ic_maps_indicator_current_position.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-hdpi/ic_maps_indicator_current_position.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/btn_zoom_down_disabled.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-mdpi/btn_zoom_down_disabled.9.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/btn_zoom_down_disabled_focused.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-mdpi/btn_zoom_down_disabled_focused.9.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/btn_zoom_down_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-mdpi/btn_zoom_down_normal.9.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/btn_zoom_down_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-mdpi/btn_zoom_down_pressed.9.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/btn_zoom_down_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-mdpi/btn_zoom_down_selected.9.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/btn_zoom_up_disabled.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-mdpi/btn_zoom_up_disabled.9.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/btn_zoom_up_disabled_focused.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-mdpi/btn_zoom_up_disabled_focused.9.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/btn_zoom_up_normal.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-mdpi/btn_zoom_up_normal.9.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/btn_zoom_up_pressed.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-mdpi/btn_zoom_up_pressed.9.png -------------------------------------------------------------------------------- /library/res/drawable-mdpi/btn_zoom_up_selected.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/library/res/drawable-mdpi/btn_zoom_up_selected.9.png -------------------------------------------------------------------------------- /library/res/drawable/btn_zoom_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /library/res/drawable/btn_zoom_up.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /library/res/layout/ll_tiledscroll_view_zoom_buttons.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 13 | 20 | -------------------------------------------------------------------------------- /library/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /library/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | asia.ivity.android.tiledscrollview 4 | 5 | -------------------------------------------------------------------------------- /library/src/asia/ivity/android/tiledscrollview/ConfigurationSet.java: -------------------------------------------------------------------------------- 1 | package asia.ivity.android.tiledscrollview; 2 | 3 | /** 4 | * Configures the ScrollView. A configuration set is depending on the zoom level it's in. 5 | * 6 | * @author Sebastian Roth 7 | */ 8 | public class ConfigurationSet { 9 | String filePattern; 10 | int tileWidth; 11 | int tileHeight; 12 | int imageWidth; 13 | int imageHeight; 14 | 15 | public ConfigurationSet(String filePattern, int tileWidth, int tileHeight, int imageWidth, int imageHeight) { 16 | this.filePattern = filePattern; 17 | this.tileWidth = tileWidth; 18 | this.tileHeight = tileHeight; 19 | this.imageWidth = imageWidth; 20 | this.imageHeight = imageHeight; 21 | } 22 | 23 | public String getFilePattern() { 24 | return filePattern; 25 | } 26 | 27 | public int getTileWidth() { 28 | return tileWidth; 29 | } 30 | 31 | public int getTileHeight() { 32 | return tileHeight; 33 | } 34 | 35 | public int getImageWidth() { 36 | return imageWidth; 37 | } 38 | 39 | public int getImageHeight() { 40 | return imageHeight; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /library/src/asia/ivity/android/tiledscrollview/OnZoomLevelChangedListener.java: -------------------------------------------------------------------------------- 1 | package asia.ivity.android.tiledscrollview; 2 | 3 | /** 4 | * DESCRIPTION 5 | * 6 | * @author Sebastian Roth 7 | */ 8 | public interface OnZoomLevelChangedListener { 9 | void onZoomLevelChanged(TiledScrollView.ZoomLevel newLevel); 10 | } 11 | -------------------------------------------------------------------------------- /library/src/asia/ivity/android/tiledscrollview/Tile.java: -------------------------------------------------------------------------------- 1 | package asia.ivity.android.tiledscrollview; 2 | 3 | /** Simple tile coordinates (X, Y). */ 4 | class Tile { 5 | public Tile(int x_, int y_) { 6 | x = x_; 7 | y = y_; 8 | } 9 | 10 | int x; 11 | int y; 12 | 13 | @Override 14 | public String toString() { 15 | return "Tile{" + 16 | "x=" + x + 17 | ", y=" + y + 18 | '}'; 19 | } 20 | 21 | @Override 22 | public boolean equals(Object o) { 23 | if (this == o) return true; 24 | if (o == null || getClass() != o.getClass()) return false; 25 | 26 | Tile tile = (Tile) o; 27 | 28 | if (x != tile.x) return false; 29 | if (y != tile.y) return false; 30 | 31 | return true; 32 | } 33 | 34 | @Override 35 | public int hashCode() { 36 | int result = x; 37 | result = 31 * result + y; 38 | return result; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /library/src/asia/ivity/android/tiledscrollview/TiledScrollView.java: -------------------------------------------------------------------------------- 1 | package asia.ivity.android.tiledscrollview; 2 | 3 | import android.content.Context; 4 | import android.content.res.TypedArray; 5 | import android.util.AttributeSet; 6 | import android.view.Gravity; 7 | import android.view.LayoutInflater; 8 | import android.view.View; 9 | import android.widget.FrameLayout; 10 | import android.widget.ImageButton; 11 | 12 | /** 13 | * Tiled scroll view main class. 14 | *

15 | * This class supports scrolling through a huge picture based on image tiles. 16 | * Most of the real "work" is done in the {@link TiledScrollViewWorker} class. 17 | * 18 | * @author Sebastian Roth 19 | */ 20 | public class TiledScrollView extends FrameLayout { 21 | 22 | private TiledScrollViewWorker mScrollView; 23 | private ImageButton mBtnZoomDown; 24 | private ImageButton mBtnZoomUp; 25 | private boolean mZoomButtonsEnabled = true; 26 | 27 | public enum ZoomLevel { 28 | DEFAULT, 29 | LEVEL_1, 30 | LEVEL_2; 31 | 32 | public ZoomLevel upLevel() { 33 | switch (this) { 34 | case DEFAULT: 35 | return LEVEL_1; 36 | case LEVEL_1: 37 | return LEVEL_2; 38 | case LEVEL_2: 39 | return LEVEL_2; 40 | } 41 | 42 | return this; 43 | } 44 | 45 | public ZoomLevel downLevel() { 46 | switch (this) { 47 | case DEFAULT: 48 | return DEFAULT; 49 | case LEVEL_1: 50 | return DEFAULT; 51 | case LEVEL_2: 52 | return LEVEL_1; 53 | } 54 | 55 | return this; 56 | } 57 | } 58 | 59 | public TiledScrollView(Context context, AttributeSet attrs) { 60 | super(context, attrs); 61 | 62 | init(attrs); 63 | } 64 | 65 | public TiledScrollView(Context context, AttributeSet attrs, int defStyle) { 66 | super(context, attrs, defStyle); 67 | 68 | init(attrs); 69 | } 70 | 71 | private void init(AttributeSet attrs) { 72 | LayoutInflater lf = LayoutInflater.from(getContext()); 73 | 74 | mScrollView = new TiledScrollViewWorker(getContext(), attrs); 75 | mScrollView.setOnZoomLevelChangedListener(new OnZoomLevelChangedListener() { 76 | public void onZoomLevelChanged(ZoomLevel newLevel) { 77 | updateZoomButtons(); 78 | } 79 | }); 80 | 81 | addView(mScrollView); 82 | 83 | final TypedArray a = getContext().obtainStyledAttributes(attrs, 84 | R.styleable.asia_ivity_android_tiledscrollview_TiledScrollView); 85 | mZoomButtonsEnabled = a.getBoolean(R.styleable.asia_ivity_android_tiledscrollview_TiledScrollView_zoom_buttons, true); 86 | 87 | if (mZoomButtonsEnabled) { 88 | View btns = lf.inflate(R.layout.ll_tiledscroll_view_zoom_buttons, this, false); 89 | 90 | mBtnZoomDown = (ImageButton) btns.findViewById(R.id.btn_zoom_down); 91 | mBtnZoomUp = (ImageButton) btns.findViewById(R.id.btn_zoom_up); 92 | 93 | mBtnZoomDown.setOnClickListener(new OnClickListener() { 94 | @Override 95 | public void onClick(View view) { 96 | mScrollView.zoomDown(); 97 | } 98 | }); 99 | mBtnZoomUp.setOnClickListener(new OnClickListener() { 100 | @Override 101 | public void onClick(View view) { 102 | mScrollView.zoomUp(); 103 | } 104 | }); 105 | 106 | LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); 107 | params.gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL; 108 | addView(btns, params); 109 | 110 | updateZoomButtons(); 111 | } 112 | } 113 | 114 | public void addConfigurationSet(ZoomLevel level, ConfigurationSet set) { 115 | mScrollView.addConfigurationSet(level, set); 116 | 117 | updateZoomButtons(); 118 | } 119 | 120 | private void updateZoomButtons() { 121 | if (mZoomButtonsEnabled) { 122 | if (!mScrollView.canZoomFurtherDown() && !mScrollView.canZoomFurtherUp()) { 123 | mBtnZoomDown.setVisibility(GONE); 124 | mBtnZoomUp.setVisibility(GONE); 125 | } else { 126 | mBtnZoomDown.setVisibility(VISIBLE); 127 | mBtnZoomUp.setVisibility(VISIBLE); 128 | mBtnZoomDown.setEnabled(mScrollView.canZoomFurtherDown()); 129 | mBtnZoomUp.setEnabled(mScrollView.canZoomFurtherUp()); 130 | } 131 | } 132 | } 133 | 134 | public void cleanupOldTiles() { 135 | mScrollView.cleanupOldTiles(); 136 | } 137 | 138 | public void addMarker(int x, int y, String description) { 139 | mScrollView.addMarker(x, y, description); 140 | } 141 | 142 | public void setMarkerOnClickListener(OnClickListener listener) { 143 | mScrollView.setMarkerOnClickListener(listener); 144 | } 145 | } 146 | -------------------------------------------------------------------------------- /library/src/asia/ivity/android/tiledscrollview/TiledScrollViewWorker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /* 17 | * (c) 2011 Sebastian Roth 18 | */ 19 | 20 | package asia.ivity.android.tiledscrollview; 21 | 22 | import android.content.Context; 23 | import android.content.res.TypedArray; 24 | import android.graphics.Bitmap; 25 | import android.graphics.BitmapFactory; 26 | import android.graphics.Rect; 27 | import android.os.AsyncTask; 28 | import android.os.Handler; 29 | import android.os.Message; 30 | import android.util.AttributeSet; 31 | import android.util.FloatMath; 32 | import android.util.Log; 33 | import android.view.Gravity; 34 | import android.view.MotionEvent; 35 | import android.view.animation.Animation; 36 | import android.view.animation.AnimationUtils; 37 | import android.widget.FrameLayout; 38 | import android.widget.ImageView; 39 | 40 | import java.io.IOException; 41 | import java.io.InputStream; 42 | import java.lang.ref.SoftReference; 43 | import java.util.ArrayList; 44 | import java.util.HashMap; 45 | import java.util.List; 46 | import java.util.Map; 47 | import java.util.Random; 48 | import java.util.concurrent.ConcurrentHashMap; 49 | 50 | /** 51 | * Tiled Scroll View worker class that handles loading and display of the pictures. 52 | * 53 | * @author Sebastian Roth 54 | */ 55 | public class TiledScrollViewWorker extends TwoDScrollView { 56 | static final int UPDATE_TILES = 123; 57 | // static final int CLEANUP_OLD_TILES = 124; 58 | static final int FILL_TILES_DELAY = 200; 59 | 60 | private Animation mFadeInAnimation; 61 | private OnZoomLevelChangedListener onZoomLevelChangedListener = null; 62 | private List mMarkers = new ArrayList(); 63 | 64 | private OnClickListener mOnMarkerOnClickListener; 65 | private List mMarkerViews = new ArrayList(); 66 | 67 | public void setMarkerOnClickListener(OnClickListener mOnMarkerOnClickListener) { 68 | this.mOnMarkerOnClickListener = mOnMarkerOnClickListener; 69 | } 70 | 71 | public void setOnZoomLevelChangedListener(OnZoomLevelChangedListener listener) { 72 | this.onZoomLevelChangedListener = listener; 73 | } 74 | 75 | public void addMarker(int x, int y, String description) { 76 | mMarkers.add(new Marker(x, y, description)); 77 | } 78 | 79 | TiledScrollView.ZoomLevel mCurrentZoomLevel = TiledScrollView.ZoomLevel.DEFAULT; 80 | 81 | Map mConfigurationSets = new HashMap(); 82 | 83 | private ConfigurationSet getCurrentConfigurationSet() { 84 | if (mConfigurationSets.containsKey(mCurrentZoomLevel)) { 85 | return mConfigurationSets.get(mCurrentZoomLevel); 86 | } 87 | 88 | return mConfigurationSets.get(TiledScrollView.ZoomLevel.DEFAULT); 89 | } 90 | 91 | public void addConfigurationSet(TiledScrollView.ZoomLevel level, ConfigurationSet set) { 92 | mConfigurationSets.put(level, set); 93 | } 94 | 95 | private FrameLayout mContainer; 96 | private static final String TAG = TiledScrollViewWorker.class.getSimpleName(); 97 | // private float mDensity; 98 | private Handler mHandler = new Handler() { 99 | @Override 100 | public void handleMessage(final Message msg) { 101 | switch (msg.what) { 102 | case UPDATE_TILES: 103 | try { 104 | fillTiles(); 105 | } catch (IOException e) { 106 | e.printStackTrace(); 107 | } 108 | // mHandler.sendMessageDelayed(Message.obtain(mHandler, CLEANUP_OLD_TILES), 1000); 109 | break; 110 | // case CLEANUP_OLD_TILES: 111 | // cleanupOldTiles(); 112 | // break; 113 | } 114 | } 115 | }; 116 | 117 | private Map> tiles = new ConcurrentHashMap>(); 118 | 119 | public TiledScrollViewWorker(Context context, AttributeSet attrs) { 120 | super(context, attrs); 121 | 122 | readAttributes(attrs); 123 | 124 | init(); 125 | } 126 | 127 | public TiledScrollViewWorker(Context context, AttributeSet attrs, int defStyle) { 128 | super(context, attrs, defStyle); 129 | 130 | readAttributes(attrs); 131 | 132 | init(); 133 | } 134 | 135 | private void readAttributes(AttributeSet attrs) { 136 | final TypedArray a = getContext().obtainStyledAttributes(attrs, 137 | R.styleable.asia_ivity_android_tiledscrollview_TiledScrollView); 138 | 139 | int imageWidth = a.getInt(R.styleable.asia_ivity_android_tiledscrollview_TiledScrollView_image_width, -1); 140 | int imageHeight = a.getInt(R.styleable.asia_ivity_android_tiledscrollview_TiledScrollView_image_height, -1); 141 | int tileWidth = a.getInt(R.styleable.asia_ivity_android_tiledscrollview_TiledScrollView_tile_width, -1); 142 | int tileHeight = a.getInt(R.styleable.asia_ivity_android_tiledscrollview_TiledScrollView_tile_height, -1); 143 | String filePattern = a.getString(R.styleable.asia_ivity_android_tiledscrollview_TiledScrollView_file_pattern); 144 | 145 | // TODO: Move Validation to ConfigurationSet itself. 146 | if (imageWidth == -1 || imageHeight == -1 || tileWidth == -1 || tileHeight == -1 || filePattern == null) { 147 | throw new IllegalArgumentException("Please set all attributes correctly!"); 148 | } 149 | 150 | mConfigurationSets.put(TiledScrollView.ZoomLevel.DEFAULT, 151 | new ConfigurationSet(filePattern, tileWidth, tileHeight, imageWidth, imageHeight)); 152 | } 153 | 154 | private void init() { 155 | mFadeInAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.fadein); 156 | 157 | mContainer = new ZoomingFrameLayout(getContext()); 158 | 159 | ConfigurationSet set = getCurrentConfigurationSet(); 160 | 161 | final LayoutParams lp = new LayoutParams(set.getImageWidth(), set.getImageHeight()); 162 | 163 | // Required? 164 | mContainer.setMinimumWidth(set.getImageWidth()); 165 | mContainer.setMinimumHeight(set.getImageHeight()); 166 | mContainer.setLayoutParams(lp); 167 | 168 | addView(mContainer, lp); 169 | 170 | mContainer.setBackgroundColor(android.R.color.white); 171 | // 172 | // mDensity = getContext().getResources().getDisplayMetrics().density; 173 | } 174 | 175 | @Override 176 | protected void onSizeChanged(int w, int h, int oldw, int oldh) { 177 | super.onSizeChanged(w, h, oldw, oldh); 178 | 179 | try { 180 | fillTiles(); 181 | } catch (IOException e) { 182 | e.printStackTrace(); 183 | } 184 | } 185 | 186 | 187 | @Override 188 | protected void onScrollChanged(int l, int t, int oldl, int oldt) { 189 | super.onScrollChanged(l, t, oldl, oldt); 190 | 191 | Message msg = Message.obtain(); 192 | msg.what = UPDATE_TILES; 193 | 194 | if (mHandler.hasMessages(UPDATE_TILES)) { 195 | mHandler.removeMessages(UPDATE_TILES); 196 | } 197 | 198 | mHandler.sendMessageDelayed(msg, FILL_TILES_DELAY); 199 | } 200 | 201 | private void fillTiles() throws IOException { 202 | Rect visible = new Rect(); 203 | mContainer.getDrawingRect(visible); 204 | 205 | for (ImageView iv : mMarkerViews) { 206 | mContainer.removeView(iv); 207 | } 208 | 209 | // for (int i = 0; i < mContainer.getChildCount(); i++) { 210 | // View x = mContainer.getChildAt(i); 211 | // if (x.getTag() instanceof Marker) { 212 | // mContainer.removeView(x); 213 | // i--; 214 | // } 215 | // } 216 | 217 | final int left = visible.left + getScrollX(); 218 | final int top = visible.top + getScrollY(); 219 | 220 | final ConfigurationSet set = getCurrentConfigurationSet(); 221 | 222 | // Update the logic here. Sometimes, we don't need to add 1 tile to the right and bottom, 223 | // as it might be already exact. In that case, it's loading tiles that will be cleaned up 224 | // immediately in #cleanupTiles(). 225 | final int width = (int) (getMeasuredWidth()) + getScrollX() + set.getTileWidth(); 226 | final int height = (int) (getMeasuredHeight()) + getScrollY() + set.getTileHeight(); 227 | 228 | // Log.d(TAG, "Top : " + top); 229 | // Log.d(TAG, "Left : " + left); 230 | // Log.d(TAG, "Width : " + width); 231 | // Log.d(TAG, "Height : " + height); 232 | // 233 | new AsyncTask() { 234 | @Override 235 | protected Void doInBackground(Void... params) { 236 | for (int y = top; y < height; ) { 237 | final int tileY = new Double(Math.ceil(y / set.getTileHeight())).intValue(); 238 | for (int x = left; x < width; ) { 239 | final int tileX = new Double(Math.ceil(x / set.getTileWidth())).intValue(); 240 | 241 | final Tile tile = new Tile(tileX, tileY); 242 | 243 | if (!tiles.containsKey(tile) || tiles.get(tile).get() == null) { 244 | try { 245 | publishProgress(getNewTile(tile)); 246 | } catch (IOException e) { 247 | // Do nothing. 248 | } 249 | } else { 250 | } 251 | 252 | x = x + set.getTileWidth(); 253 | } 254 | y = y + set.getTileHeight(); 255 | } 256 | 257 | return null; 258 | } 259 | 260 | @Override 261 | protected void onProgressUpdate(ImageView... ivs) { 262 | for (ImageView iv : ivs) { 263 | if (iv == null) { 264 | continue; 265 | } 266 | 267 | final Tile tile = (Tile) iv.getTag(); 268 | 269 | iv.setId(new Random().nextInt()); 270 | FrameLayout.LayoutParams lp2 = new FrameLayout.LayoutParams( 271 | LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); 272 | 273 | lp2.leftMargin = tile.x * set.getTileWidth(); 274 | lp2.topMargin = tile.y * set.getTileHeight(); 275 | lp2.gravity = Gravity.TOP | Gravity.LEFT; 276 | iv.setLayoutParams(lp2); 277 | 278 | mContainer.addView(iv, lp2); 279 | 280 | // Not yet functional. 281 | // Log.d(TAG, "Animating: " + tile); 282 | // iv.startAnimation(mFadeInAnimation); 283 | 284 | tiles.put(tile, new SoftReference(iv)); 285 | } 286 | } 287 | 288 | @Override 289 | protected void onPostExecute(Void aVoid) { 290 | if (mMarkerViews.isEmpty()) { 291 | Bitmap b = BitmapFactory.decodeResource(getContext().getResources(), R.drawable.ic_maps_indicator_current_position); 292 | for (Marker m : mMarkers) { 293 | Log.d(TAG, "Adding: " + m); 294 | FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); 295 | lp.leftMargin = m.getX() - (b.getWidth() / 2); 296 | lp.topMargin = m.getY() - (b.getHeight() / 2); 297 | lp.gravity = Gravity.TOP | Gravity.LEFT; 298 | 299 | ImageView iv = new ImageView(getContext()); 300 | iv.setTag(m); 301 | iv.setImageResource(R.drawable.ic_maps_indicator_current_position); 302 | iv.setLayoutParams(lp); 303 | 304 | if (mOnMarkerOnClickListener != null) { 305 | iv.setOnClickListener(mOnMarkerOnClickListener); 306 | } 307 | 308 | mMarkerViews.add(iv); 309 | } 310 | } 311 | for (ImageView iv : mMarkerViews) { 312 | mContainer.addView(iv, iv.getLayoutParams()); 313 | } 314 | } 315 | }.execute((Void[]) null); 316 | } 317 | 318 | private ImageView getNewTile(Tile tile) throws IOException { 319 | ImageView iv = new ImageView(getContext()); 320 | 321 | ConfigurationSet set = getCurrentConfigurationSet(); 322 | 323 | InputStream is; 324 | String path = set.getFilePattern().replace("%col%", new Integer(tile.y).toString()) 325 | .replace("%row%", new Integer(tile.x).toString()); 326 | try { 327 | is = getResources().getAssets().open(path); 328 | Bitmap bm = BitmapFactory.decodeStream(is); 329 | iv.setImageBitmap(bm); 330 | iv.setMinimumWidth(bm.getWidth()); 331 | iv.setMinimumHeight(bm.getHeight()); 332 | iv.setMaxWidth(bm.getWidth()); 333 | iv.setMaxHeight(bm.getHeight()); 334 | is.close(); 335 | } catch (IOException e) { 336 | throw new IOException("Cannot open asset at:" + path); 337 | } 338 | 339 | iv.setTag(tile); 340 | 341 | return iv; 342 | } 343 | 344 | public void cleanupOldTiles() { 345 | Log.d(TAG, "Cleanup old tiles"); 346 | 347 | Rect actualRect = new Rect( 348 | getScrollX(), getScrollY(), 349 | getWidth() + getScrollX(), 350 | getHeight() + getScrollY() 351 | ); 352 | 353 | for (Tile tile : tiles.keySet()) { 354 | final ImageView v = tiles.get(tile).get(); 355 | Rect r = new Rect(); 356 | v.getHitRect(r); 357 | 358 | if (!Rect.intersects(actualRect, r)) { 359 | mContainer.removeView(v); 360 | tiles.remove(tile); 361 | } 362 | } 363 | } 364 | 365 | private boolean inZoomMode = false; 366 | private boolean ignoreLastFinger = false; 367 | private float mOrigSeparation; 368 | private static final float ZOOMJUMP = 75f; 369 | 370 | @Override 371 | public boolean onTouchEvent(MotionEvent e) { 372 | int action = e.getAction() & MotionEvent.ACTION_MASK; 373 | if (e.getPointerCount() == 2) { 374 | inZoomMode = true; 375 | } else { 376 | inZoomMode = false; 377 | } 378 | if (inZoomMode) { 379 | switch (action) { 380 | case MotionEvent.ACTION_POINTER_DOWN: 381 | // We may be starting a new pinch so get ready 382 | mOrigSeparation = calculateSeparation(e); 383 | break; 384 | case MotionEvent.ACTION_POINTER_UP: 385 | // We're ending a pinch so prepare to 386 | // ignore the last finger while it's the 387 | // only one still down. 388 | ignoreLastFinger = true; 389 | break; 390 | case MotionEvent.ACTION_MOVE: 391 | // We're in a pinch so decide if we need to change 392 | // the zoom level. 393 | float newSeparation = calculateSeparation(e); 394 | TiledScrollView.ZoomLevel next = mCurrentZoomLevel; 395 | if (newSeparation - mOrigSeparation > ZOOMJUMP) { 396 | Log.d(TAG, "Zoom In!"); 397 | 398 | next = mCurrentZoomLevel.upLevel(); 399 | mOrigSeparation = newSeparation; 400 | } else if (mOrigSeparation - newSeparation > ZOOMJUMP) { 401 | Log.d(TAG, "Zoom Out!"); 402 | 403 | next = mCurrentZoomLevel.downLevel(); 404 | mOrigSeparation = newSeparation; 405 | } 406 | 407 | changeZoomLevel(next); 408 | 409 | break; 410 | } 411 | // Don't pass these events to Android because we're 412 | // taking care of them. 413 | return true; 414 | } else { 415 | // cleanup if necessary from zooming logic 416 | } 417 | // Throw away events if we're on the last finger 418 | // until the last finger goes up. 419 | if (ignoreLastFinger) { 420 | if (action == MotionEvent.ACTION_UP) 421 | ignoreLastFinger = false; 422 | return true; 423 | } 424 | return super.onTouchEvent(e); 425 | } 426 | 427 | private void changeZoomLevel(TiledScrollView.ZoomLevel next) { 428 | if (next != mCurrentZoomLevel && mConfigurationSets.containsKey(next)) { 429 | mCurrentZoomLevel = next; 430 | Log.d(TAG, "new zoom level: " + mCurrentZoomLevel); 431 | 432 | tiles.clear(); 433 | 434 | double x = getScrollX(); 435 | double y = getScrollY(); 436 | double w = mContainer.getWidth(); 437 | double h = mContainer.getHeight(); 438 | 439 | removeAllViews(); 440 | 441 | init(); 442 | 443 | double newW = getCurrentConfigurationSet().getImageWidth(); 444 | double newH = getCurrentConfigurationSet().getImageHeight(); 445 | 446 | Log.d(TAG, "1: " + x + ", " + y); 447 | Log.d(TAG, "2: " + w + ", " + h); 448 | Log.d(TAG, "3: " + newW + ", " + newH); 449 | 450 | Log.d(TAG, "new sX: " + (int) x / w * newW); 451 | Log.d(TAG, "new sY: " + (int) y / h * newH); 452 | 453 | smoothScrollTo((int) (x / w * newW), (int) (y / h * newH)); 454 | 455 | if (onZoomLevelChangedListener != null) { 456 | onZoomLevelChangedListener.onZoomLevelChanged(mCurrentZoomLevel); 457 | } 458 | 459 | try { 460 | fillTiles(); 461 | } catch (IOException e1) { 462 | Log.e(TAG, "Problem loading new tiles.", e1); 463 | } 464 | } 465 | } 466 | 467 | private float calculateSeparation(MotionEvent e) { 468 | float x = e.getX(0) - e.getX(1); 469 | float y = e.getY(0) - e.getY(1); 470 | return FloatMath.sqrt(x * x + y * y); 471 | } 472 | 473 | public boolean canZoomFurtherDown() { 474 | return mCurrentZoomLevel.downLevel() != mCurrentZoomLevel && 475 | mConfigurationSets.containsKey(mCurrentZoomLevel.downLevel()); 476 | } 477 | 478 | public void zoomDown() { 479 | changeZoomLevel(mCurrentZoomLevel.downLevel()); 480 | } 481 | 482 | public boolean canZoomFurtherUp() { 483 | return mCurrentZoomLevel.upLevel() != mCurrentZoomLevel && 484 | mConfigurationSets.containsKey(mCurrentZoomLevel.upLevel()); 485 | } 486 | 487 | public void zoomUp() { 488 | changeZoomLevel(mCurrentZoomLevel.upLevel()); 489 | } 490 | 491 | public class Marker { 492 | private int x; 493 | private int y; 494 | 495 | public int getX() { 496 | return x; 497 | } 498 | 499 | public int getY() { 500 | return y; 501 | } 502 | 503 | public String getDescription() { 504 | return description; 505 | } 506 | 507 | private String description; 508 | 509 | public Marker(int x, int y, String description) { 510 | this.x = x; 511 | this.y = y; 512 | this.description = description; 513 | } 514 | 515 | @Override 516 | public String toString() { 517 | return "Marker{" + 518 | "x=" + x + 519 | ", y=" + y + 520 | ", description='" + description + '\'' + 521 | '}'; 522 | } 523 | } 524 | } 525 | -------------------------------------------------------------------------------- /library/src/asia/ivity/android/tiledscrollview/TwoDScrollView.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | /* 17 | * Updated 2010 for Grammercy Consultants by GORGES 18 | * http://GORGES.us 19 | */ 20 | 21 | package asia.ivity.android.tiledscrollview; 22 | 23 | import android.content.Context; 24 | import android.util.AttributeSet; 25 | import android.view.MotionEvent; 26 | import android.view.VelocityTracker; 27 | import android.view.View; 28 | import android.view.ViewConfiguration; 29 | import android.view.ViewGroup; 30 | import android.view.animation.AnimationUtils; 31 | import android.widget.FrameLayout; 32 | import android.widget.LinearLayout; 33 | import android.widget.Scroller; 34 | import android.widget.TextView; 35 | 36 | /** 37 | * Layout container for a view hierarchy that can be scrolled by the user, 38 | * allowing it to be larger than the physical display. A TwoDScrollView 39 | * is a {@link FrameLayout}, meaning you should place one child in it 40 | * containing the entire contents to scroll; this child may itself be a layout 41 | * manager with a complex hierarchy of objects. A child that is often used 42 | * is a {@link LinearLayout} in a vertical orientation, presenting a vertical 43 | * array of top-level items that the user can scroll through. 44 | * 45 | *

The {@link TextView} class also 46 | * takes care of its own scrolling, so does not require a TwoDScrollView, but 47 | * using the two together is possible to achieve the effect of a text view 48 | * within a larger container. 49 | * 50 | *

TwoDScrollView only supports vertical scrolling. 51 | */ 52 | public class TwoDScrollView extends FrameLayout { 53 | static final int ANIMATED_SCROLL_GAP = 250; 54 | static final float MAX_SCROLL_FACTOR = 0.5f; 55 | 56 | private long mLastScroll; 57 | private Scroller mScroller; 58 | 59 | /** 60 | * Position of the last motion event. 61 | */ 62 | private float mLastMotionY; 63 | private float mLastMotionX; 64 | 65 | /** 66 | * True if the user is currently dragging this TwoDScrollView around. This is 67 | * not the same as 'is being flinged', which can be checked by 68 | * mScroller.isFinished() (flinging begins when the user lifts his finger). 69 | */ 70 | private boolean mIsBeingDragged = false; 71 | 72 | /** 73 | * Determines speed during touch scrolling 74 | */ 75 | private VelocityTracker mVelocityTracker; 76 | 77 | /** 78 | * Whether arrow scrolling is animated. 79 | */ 80 | private int mTouchSlop; 81 | private int mMinimumVelocity; 82 | //private int mMaximumVelocity; 83 | 84 | public TwoDScrollView(Context context) { 85 | super(context); 86 | initTwoDScrollView(); 87 | } 88 | 89 | public TwoDScrollView(Context context, AttributeSet attrs) { 90 | super(context, attrs); 91 | initTwoDScrollView(); 92 | } 93 | 94 | public TwoDScrollView(Context context, AttributeSet attrs, int defStyle) { 95 | super(context, attrs, defStyle); 96 | initTwoDScrollView(); 97 | } 98 | 99 | @Override 100 | protected float getTopFadingEdgeStrength() { 101 | if (getChildCount() == 0) { 102 | return 0.0f; 103 | } 104 | 105 | final int length = getVerticalFadingEdgeLength(); 106 | if (getScrollY() < length) { 107 | return getScrollY() / (float) length; 108 | } 109 | 110 | return 1.0f; 111 | } 112 | 113 | @Override 114 | protected float getBottomFadingEdgeStrength() { 115 | if (getChildCount() == 0) { 116 | return 0.0f; 117 | } 118 | 119 | final int length = getVerticalFadingEdgeLength(); 120 | final int bottomEdge = getHeight() - getPaddingBottom(); 121 | final int span = getChildAt(0).getBottom() - getScrollY() - bottomEdge; 122 | if (span < length) { 123 | return span / (float) length; 124 | } 125 | 126 | return 1.0f; 127 | } 128 | 129 | @Override 130 | protected float getLeftFadingEdgeStrength() { 131 | if (getChildCount() == 0) { 132 | return 0.0f; 133 | } 134 | 135 | final int length = getHorizontalFadingEdgeLength(); 136 | if (getScrollX() < length) { 137 | return getScrollX() / (float) length; 138 | } 139 | 140 | return 1.0f; 141 | } 142 | 143 | @Override 144 | protected float getRightFadingEdgeStrength() { 145 | if (getChildCount() == 0) { 146 | return 0.0f; 147 | } 148 | 149 | final int length = getHorizontalFadingEdgeLength(); 150 | final int rightEdge = getWidth() - getPaddingRight(); 151 | final int span = getChildAt(0).getRight() - getScrollX() - rightEdge; 152 | if (span < length) { 153 | return span / (float) length; 154 | } 155 | 156 | return 1.0f; 157 | } 158 | 159 | private void initTwoDScrollView() { 160 | mScroller = new Scroller(getContext()); 161 | setFocusable(true); 162 | setDescendantFocusability(FOCUS_AFTER_DESCENDANTS); 163 | setWillNotDraw(false); 164 | final ViewConfiguration configuration = ViewConfiguration.get(getContext()); 165 | mTouchSlop = configuration.getScaledTouchSlop(); 166 | mMinimumVelocity = configuration.getScaledMinimumFlingVelocity(); 167 | //mMaximumVelocity = mMinimumVelocity * 5;//configuration.getScaledMaximumFlingVelocity(); 168 | } 169 | 170 | @Override 171 | public void addView(View child) { 172 | if (getChildCount() > 0) { 173 | throw new IllegalStateException("TwoDScrollView can host only one direct child"); 174 | } 175 | 176 | super.addView(child); 177 | } 178 | 179 | @Override 180 | public void addView(View child, int index) { 181 | if (getChildCount() > 0) { 182 | throw new IllegalStateException("TwoDScrollView can host only one direct child"); 183 | } 184 | 185 | super.addView(child, index); 186 | } 187 | 188 | @Override 189 | public void addView(View child, ViewGroup.LayoutParams params) { 190 | if (getChildCount() > 0) { 191 | throw new IllegalStateException("TwoDScrollView can host only one direct child"); 192 | } 193 | 194 | super.addView(child, params); 195 | } 196 | 197 | @Override 198 | public void addView(View child, int index, ViewGroup.LayoutParams params) { 199 | if (getChildCount() > 0) { 200 | throw new IllegalStateException("TwoDScrollView can host only one direct child"); 201 | } 202 | 203 | super.addView(child, index, params); 204 | } 205 | 206 | /** 207 | * @return Returns true this TwoDScrollView can be scrolled 208 | */ 209 | private boolean canScroll() { 210 | View child = getChildAt(0); 211 | if (child != null) { 212 | int childHeight = child.getHeight(); 213 | int childWidth = child.getWidth(); 214 | return (getHeight() < childHeight + getPaddingTop() + getPaddingBottom()) || 215 | (getWidth() < childWidth + getPaddingLeft() + getPaddingRight()); 216 | } 217 | return false; 218 | } 219 | 220 | @Override 221 | public boolean onInterceptTouchEvent(MotionEvent ev) { 222 | /* 223 | * This method JUST determines whether we want to intercept the motion. 224 | * If we return true, onMotionEvent will be called and we do the actual 225 | * scrolling there. 226 | */ 227 | 228 | /* 229 | * Shortcut the most recurring case: the user is in the dragging 230 | * state and he is moving his finger. We want to intercept this 231 | * motion. 232 | */ 233 | final int action = ev.getAction(); 234 | if ((action == MotionEvent.ACTION_MOVE) && (mIsBeingDragged)) { 235 | return true; 236 | } 237 | 238 | if (!canScroll()) { 239 | mIsBeingDragged = false; 240 | return false; 241 | } 242 | 243 | final float y = ev.getY(); 244 | final float x = ev.getX(); 245 | 246 | switch (action) { 247 | case MotionEvent.ACTION_MOVE: 248 | /* 249 | * mIsBeingDragged == false, otherwise the shortcut would have caught it. Check 250 | * whether the user has moved far enough from his original down touch. 251 | */ 252 | 253 | /* 254 | * Locally do absolute value. mLastMotionY is set to the y value 255 | * of the down event. 256 | */ 257 | final int yDiff = (int) Math.abs(y - mLastMotionY); 258 | final int xDiff = (int) Math.abs(x - mLastMotionX); 259 | if (yDiff > mTouchSlop || xDiff > mTouchSlop) { 260 | mIsBeingDragged = true; 261 | } 262 | break; 263 | 264 | case MotionEvent.ACTION_DOWN: 265 | /* Remember location of down touch */ 266 | mLastMotionY = y; 267 | mLastMotionX = x; 268 | 269 | /* 270 | * If being flinged and user touches the screen, initiate drag; 271 | * otherwise don't. mScroller.isFinished should be false when 272 | * being flinged. 273 | */ 274 | mIsBeingDragged = !mScroller.isFinished(); 275 | break; 276 | 277 | case MotionEvent.ACTION_CANCEL: 278 | case MotionEvent.ACTION_UP: 279 | /* Release the drag */ 280 | mIsBeingDragged = false; 281 | break; 282 | } 283 | 284 | /* 285 | * The only time we want to intercept motion events is if we are in the 286 | * drag mode. 287 | */ 288 | return mIsBeingDragged; 289 | } 290 | 291 | @Override 292 | public boolean onTouchEvent(MotionEvent ev) { 293 | 294 | if (ev.getAction() == MotionEvent.ACTION_DOWN && ev.getEdgeFlags() != 0) { 295 | // Don't handle edge touches immediately -- they may actually belong to one of our 296 | // descendants. 297 | return false; 298 | } 299 | 300 | if (!canScroll()) { 301 | return false; 302 | } 303 | 304 | if (mVelocityTracker == null) { 305 | mVelocityTracker = VelocityTracker.obtain(); 306 | } 307 | mVelocityTracker.addMovement(ev); 308 | 309 | final int action = ev.getAction(); 310 | final float y = ev.getY(); 311 | final float x = ev.getX(); 312 | 313 | switch (action) { 314 | case MotionEvent.ACTION_DOWN: 315 | /* 316 | * If being flinged and user touches, stop the fling. isFinished 317 | * will be false if being flinged. 318 | */ 319 | if (!mScroller.isFinished()) { 320 | mScroller.abortAnimation(); 321 | } 322 | 323 | // Remember where the motion event started 324 | mLastMotionY = y; 325 | mLastMotionX = x; 326 | break; 327 | case MotionEvent.ACTION_MOVE: 328 | // Scroll to follow the motion event 329 | int deltaX = (int) (mLastMotionX - x); 330 | int deltaY = (int) (mLastMotionY - y); 331 | mLastMotionX = x; 332 | mLastMotionY = y; 333 | 334 | if (deltaX < 0) { 335 | if (getScrollX() < 0) { 336 | deltaX = 0; 337 | } 338 | } else if (deltaX > 0) { 339 | final int rightEdge = getWidth() - getPaddingRight(); 340 | final int availableToScroll = getChildAt(0).getRight() - getScrollX() - rightEdge; 341 | if (availableToScroll > 0) { 342 | deltaX = Math.min(availableToScroll, deltaX); 343 | } else { 344 | deltaX = 0; 345 | } 346 | } 347 | if (deltaY < 0) { 348 | if (getScrollY() < 0) { 349 | deltaY = 0; 350 | } 351 | } else if (deltaY > 0) { 352 | final int bottomEdge = getHeight() - getPaddingBottom(); 353 | final int availableToScroll = getChildAt(0).getBottom() - getScrollY() - bottomEdge; 354 | if (availableToScroll > 0) { 355 | deltaY = Math.min(availableToScroll, deltaY); 356 | } else { 357 | deltaY = 0; 358 | } 359 | } 360 | if (deltaY != 0 || deltaX != 0) 361 | scrollBy(deltaX, deltaY); 362 | break; 363 | case MotionEvent.ACTION_UP: 364 | final VelocityTracker velocityTracker = mVelocityTracker; 365 | velocityTracker.computeCurrentVelocity(1000); 366 | //velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); 367 | int initialXVelocity = (int) velocityTracker.getXVelocity(); 368 | int initialYVelocity = (int) velocityTracker.getYVelocity(); 369 | 370 | if ((Math.abs(initialXVelocity) + Math.abs(initialYVelocity) > mMinimumVelocity) && getChildCount() > 0) { 371 | fling(-initialXVelocity, -initialYVelocity); 372 | } 373 | 374 | if (mVelocityTracker != null) { 375 | mVelocityTracker.recycle(); 376 | mVelocityTracker = null; 377 | } 378 | } 379 | return true; 380 | } 381 | 382 | /** 383 | *

Handles scrolling in response to a "home/end" shortcut press.

384 | * 385 | * @param direction_vert the scroll direction: {@link android.view.View#FOCUS_UP} 386 | * to go the top of the view or 387 | * {@link android.view.View#FOCUS_DOWN} to go the bottom 388 | * @return true if the key event is consumed by this method, false otherwise 389 | */ 390 | public boolean fullScroll(int direction_vert, int direction_horz) { 391 | int scrollAmountY = 0, scrollAmountX = 0; 392 | // vertical 393 | switch (direction_vert) { 394 | case View.FOCUS_UP: 395 | scrollAmountY = -getScrollY(); 396 | break; 397 | case View.FOCUS_DOWN: 398 | int count = getChildCount(); 399 | if (count > 0) { 400 | View view = getChildAt(count - 1); 401 | scrollAmountY = (view.getBottom() - getHeight()) - getScrollY(); 402 | } 403 | break; 404 | } 405 | // horizontal 406 | switch (direction_horz) { 407 | case View.FOCUS_LEFT: 408 | scrollAmountX = -getScrollX(); 409 | break; 410 | case View.FOCUS_RIGHT: 411 | int count = getChildCount(); 412 | if (count > 0) { 413 | View view = getChildAt(count - 1); 414 | scrollAmountX = (view.getRight() - getWidth()) - getScrollX(); 415 | } 416 | break; 417 | } 418 | boolean handled = (scrollAmountX != 0) || (scrollAmountY != 0); 419 | if (handled) 420 | doScroll(scrollAmountX, scrollAmountY); 421 | return handled; 422 | } 423 | 424 | /** 425 | * Smooth scroll by a Y delta 426 | * 427 | * @param deltaX the number of pixels to scroll by on the Y axis 428 | */ 429 | private void doScroll(int deltaX, int deltaY) { 430 | if (deltaX != 0 || deltaY != 0) { 431 | smoothScrollBy(deltaX, deltaY); 432 | } 433 | } 434 | 435 | /** 436 | * Like {@link View#scrollBy}, but scroll smoothly instead of immediately. 437 | * 438 | * @param dx the number of pixels to scroll by on the X axis 439 | * @param dy the number of pixels to scroll by on the Y axis 440 | */ 441 | public final void smoothScrollBy(int dx, int dy) { 442 | long duration = AnimationUtils.currentAnimationTimeMillis() - mLastScroll; 443 | if (duration > ANIMATED_SCROLL_GAP) { 444 | mScroller.startScroll(getScrollX(), getScrollY(), dx, dy); 445 | awakenScrollBars(mScroller.getDuration()); 446 | invalidate(); 447 | } else { 448 | if (!mScroller.isFinished()) { 449 | mScroller.abortAnimation(); 450 | } 451 | scrollBy(dx, dy); 452 | } 453 | mLastScroll = AnimationUtils.currentAnimationTimeMillis(); 454 | } 455 | 456 | /** 457 | * Like {@link #scrollTo}, but scroll smoothly instead of immediately. 458 | * 459 | * @param x the position where to scroll on the X axis 460 | * @param y the position where to scroll on the Y axis 461 | */ 462 | public final void smoothScrollTo(int x, int y) { 463 | smoothScrollBy(x - getScrollX(), y - getScrollY()); 464 | } 465 | 466 | /** 467 | *

The scroll range of a scroll view is the overall height of all of its 468 | * children.

469 | */ 470 | @Override 471 | protected int computeVerticalScrollRange() { 472 | int count = getChildCount(); 473 | return count == 0 ? getHeight() : (getChildAt(0)).getBottom(); 474 | } 475 | @Override 476 | protected int computeHorizontalScrollRange() { 477 | int count = getChildCount(); 478 | return count == 0 ? getWidth() : (getChildAt(0)).getRight(); 479 | } 480 | 481 | @Override 482 | protected void measureChild(View child, int parentWidthMeasureSpec, int parentHeightMeasureSpec) { 483 | ViewGroup.LayoutParams lp = child.getLayoutParams(); 484 | 485 | int childWidthMeasureSpec; 486 | int childHeightMeasureSpec; 487 | 488 | childWidthMeasureSpec = getChildMeasureSpec(parentWidthMeasureSpec, getPaddingLeft() + getPaddingRight(), lp.width); 489 | childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 490 | 491 | child.measure(childWidthMeasureSpec, childHeightMeasureSpec); 492 | } 493 | 494 | @Override 495 | protected void measureChildWithMargins(View child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed) { 496 | final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); 497 | 498 | final int childWidthMeasureSpec = getChildMeasureSpec(parentWidthMeasureSpec, 499 | getPaddingLeft() + getPaddingRight() + lp.leftMargin + lp.rightMargin + widthUsed, lp.width); 500 | final int childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.topMargin + lp.bottomMargin, MeasureSpec.UNSPECIFIED); 501 | 502 | child.measure(childWidthMeasureSpec, childHeightMeasureSpec); 503 | } 504 | 505 | @Override 506 | public void computeScroll() { 507 | if (mScroller.computeScrollOffset()) { 508 | // This is called at drawing time by ViewGroup. We don't want to 509 | // re-show the scrollbars at this point, which scrollTo will do, 510 | // so we replicate most of scrollTo here. 511 | // 512 | // It's a little odd to call onScrollChanged from inside the drawing. 513 | // 514 | // It is, except when you remember that computeScroll() is used to 515 | // animate scrolling. So unless we want to defer the onScrollChanged() 516 | // until the end of the animated scrolling, we don't really have a 517 | // choice here. 518 | // 519 | // I agree. The alternative, which I think would be worse, is to post 520 | // something and tell the subclasses later. This is bad because there 521 | // will be a window where mScrollX/Y is different from what the app 522 | // thinks it is. 523 | // 524 | int oldX = getScrollX(); 525 | int oldY = getScrollY(); 526 | int x = mScroller.getCurrX(); 527 | int y = mScroller.getCurrY(); 528 | if (getChildCount() > 0) { 529 | View child = getChildAt(0); 530 | scrollTo(clamp(x, getWidth() - getPaddingRight() - getPaddingLeft(), child.getWidth()), 531 | clamp(y, getHeight() - getPaddingBottom() - getPaddingTop(), child.getHeight())); 532 | } else { 533 | scrollTo(x, y); 534 | } 535 | if (oldX != getScrollX() || oldY != getScrollY()) { 536 | onScrollChanged(getScrollX(), getScrollY(), oldX, oldY); 537 | } 538 | 539 | // Keep on drawing until the animation has finished. 540 | postInvalidate(); 541 | } 542 | } 543 | 544 | @Override 545 | protected void onLayout(boolean changed, int l, int t, int r, int b) { 546 | super.onLayout(changed, l, t, r, b); 547 | // Calling this with the present values causes it to re-clam them 548 | scrollTo(getScrollX(), getScrollY()); 549 | } 550 | 551 | /** 552 | * Fling the scroll view 553 | * 554 | * @param velocityY The initial velocity in the Y direction. Positive 555 | * numbers mean that the finger/curor is moving down the screen, 556 | * which means we want to scroll towards the top. 557 | */ 558 | public void fling(int velocityX, int velocityY) { 559 | if (getChildCount() > 0) { 560 | int height = getHeight() - getPaddingBottom() - getPaddingTop(); 561 | int bottom = getChildAt(0).getHeight(); 562 | int width = getWidth() - getPaddingRight() - getPaddingLeft(); 563 | int right = getChildAt(0).getWidth(); 564 | 565 | mScroller.fling(getScrollX(), getScrollY(), velocityX, velocityY, 0, right - width, 0, bottom - height); 566 | 567 | awakenScrollBars(mScroller.getDuration()); 568 | invalidate(); 569 | } 570 | } 571 | 572 | /** 573 | * {@inheritDoc} 574 | * 575 | *

This version also clamps the scrolling to the bounds of our child. 576 | */ 577 | public void scrollTo(int x, int y) { 578 | // we rely on the fact the View.scrollBy calls scrollTo. 579 | if (getChildCount() > 0) { 580 | View child = getChildAt(0); 581 | x = clamp(x, getWidth() - getPaddingRight() - getPaddingLeft(), child.getWidth()); 582 | y = clamp(y, getHeight() - getPaddingBottom() - getPaddingTop(), child.getHeight()); 583 | if (x != getScrollX() || y != getScrollY()) { 584 | super.scrollTo(x, y); 585 | } 586 | } 587 | } 588 | 589 | private int clamp(int n, int my, int child) { 590 | if (my >= child || n < 0) { 591 | /* my >= child is this case: 592 | * |--------------- me ---------------| 593 | * |------ child ------| 594 | * or 595 | * |--------------- me ---------------| 596 | * |------ child ------| 597 | * or 598 | * |--------------- me ---------------| 599 | * |------ child ------| 600 | * 601 | * n < 0 is this case: 602 | * |------ me ------| 603 | * |-------- child --------| 604 | * |-- mScrollX --| 605 | */ 606 | return 0; 607 | } 608 | if ((my+n) > child) { 609 | /* this case: 610 | * |------ me ------| 611 | * |------ child ------| 612 | * |-- mScrollX --| 613 | */ 614 | return child-my; 615 | } 616 | return n; 617 | } 618 | } -------------------------------------------------------------------------------- /library/src/asia/ivity/android/tiledscrollview/ZoomingFrameLayout.java: -------------------------------------------------------------------------------- 1 | package asia.ivity.android.tiledscrollview; 2 | 3 | import android.content.Context; 4 | import android.graphics.Canvas; 5 | import android.util.AttributeSet; 6 | import android.widget.FrameLayout; 7 | 8 | /** 9 | * DESCRIPTION 10 | * 11 | * @author Sebastian Roth 12 | */ 13 | public class ZoomingFrameLayout extends FrameLayout { 14 | public ZoomingFrameLayout(Context context) { 15 | super(context); 16 | } 17 | 18 | public ZoomingFrameLayout(Context context, AttributeSet attrs) { 19 | super(context, attrs); 20 | } 21 | 22 | public ZoomingFrameLayout(Context context, AttributeSet attrs, int defStyle) { 23 | super(context, attrs, defStyle); 24 | } 25 | 26 | @Override 27 | public void onDraw(Canvas canvas) { 28 | canvas.save(); 29 | canvas.scale(10, 10); 30 | canvas.rotate(5); 31 | 32 | super.onDraw(canvas); 33 | 34 | canvas.restore(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 4.0.0 5 | 6 | 7 | org.sonatype.oss 8 | oss-parent 9 | 7 10 | 11 | 12 | asia.ivity 13 | tiledscrollview.parent 14 | pom 15 | 1.1.2-SNAPSHOT 16 | 17 | TiledScrollView (Parent) 18 | Android library to display large images (like Metro maps, paintings) while keeping the memory consumption as low as possible. 19 | https://github.com/ened/Android-Tiling-ScrollView 20 | 2011 21 | 22 | 23 | library 24 | 25 | 26 | 27 | https://github.com/ened/Android-Tiling-ScrollView/ 28 | scm:git:git://github.com/ened/Android-Tiling-ScrollView.git 29 | scm:git:git@github.com:ened/Android-Tiling-ScrollView.git 30 | 31 | 32 | 33 | 34 | Sebastian Roth 35 | sebastian.roth@gmail.com 36 | ened 37 | http://www.sebroth.com 38 | +8 39 | 40 | developer 41 | 42 | 43 | 44 | 45 | 46 | 47 | BSD License 48 | http://opensource.org/licenses/bsd-license.php 49 | repo 50 | 51 | 52 | 53 | 54 | Sebastian Roth 55 | http://www.sebroth.com 56 | 57 | 58 | 59 | GitHub Issues 60 | https://github.com/ened/Android-Tiling-ScrollView/issues 61 | 62 | 63 | 64 | UTF-8 65 | UTF-8 66 | 67 | 1.6 68 | 4.0.1.2 69 | 16 70 | r7 71 | 72 | 3.3.2 73 | 74 | ened 75 | Android-Tiling-ScrollView 76 | 77 | 78 | 79 | 80 | 81 | com.google.android 82 | android 83 | ${android.version} 84 | 85 | 86 | com.google.android 87 | support-v4 88 | ${android-support.version} 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | org.apache.maven.plugins 98 | maven-compiler-plugin 99 | 2.5 100 | 101 | ${java.version} 102 | ${java.version} 103 | 104 | 105 | 106 | 107 | com.jayway.maven.plugins.android.generation2 108 | android-maven-plugin 109 | 3.3.2 110 | 111 | 112 | ${android.platform} 113 | 114 | 115 | 116 | 117 | 118 | org.apache.maven.plugins 119 | maven-javadoc-plugin 120 | 2.8 121 | 122 | 123 | 124 | org.apache.maven.plugins 125 | maven-checkstyle-plugin 126 | 2.9.1 127 | 128 | true 129 | 130 | 131 | 132 | 133 | org.apache.maven.plugins 134 | maven-site-plugin 135 | 3.0 136 | 137 | true 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | org.apache.maven.plugins 146 | maven-release-plugin 147 | 2.2.2 148 | 149 | true 150 | 151 | 152 | 153 | org.apache.maven.plugins 154 | maven-gpg-plugin 155 | 156 | 157 | sign-artifacts 158 | verify 159 | 160 | sign 161 | 162 | 163 | 164 | 165 | 166 | 167 | -------------------------------------------------------------------------------- /sample/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_0_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_0_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_10_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_10_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_11_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_11_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_1_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_1_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_2_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_2_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_3_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_3_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_4_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_4_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_5_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_5_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_6_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_6_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_7_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_7_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_8_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_8_9.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_0.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_1.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_10.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_11.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_12.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_13.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_14.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_15.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_2.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_3.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_4.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_5.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_6.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_7.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_8.png -------------------------------------------------------------------------------- /sample/assets/tiger1600/crop_9_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger1600/crop_9_9.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_0_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_0_0.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_0_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_0_1.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_0_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_0_2.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_0_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_0_3.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_1_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_1_0.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_1_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_1_1.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_1_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_1_2.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_1_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_1_3.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_2_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_2_0.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_2_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_2_1.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_2_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_2_2.png -------------------------------------------------------------------------------- /sample/assets/tiger400/crop_2_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger400/crop_2_3.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_0_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_0_0.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_0_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_0_1.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_0_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_0_2.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_0_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_0_3.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_0_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_0_4.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_0_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_0_5.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_0_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_0_6.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_0_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_0_7.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_1_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_1_0.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_1_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_1_1.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_1_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_1_2.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_1_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_1_3.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_1_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_1_4.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_1_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_1_5.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_1_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_1_6.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_1_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_1_7.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_2_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_2_0.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_2_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_2_1.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_2_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_2_2.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_2_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_2_3.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_2_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_2_4.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_2_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_2_5.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_2_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_2_6.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_2_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_2_7.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_3_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_3_0.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_3_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_3_1.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_3_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_3_2.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_3_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_3_3.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_3_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_3_4.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_3_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_3_5.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_3_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_3_6.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_3_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_3_7.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_4_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_4_0.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_4_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_4_1.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_4_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_4_2.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_4_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_4_3.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_4_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_4_4.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_4_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_4_5.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_4_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_4_6.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_4_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_4_7.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_5_0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_5_0.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_5_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_5_1.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_5_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_5_2.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_5_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_5_3.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_5_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_5_4.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_5_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_5_5.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_5_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_5_6.png -------------------------------------------------------------------------------- /sample/assets/tiger800/crop_5_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/assets/tiger800/crop_5_7.png -------------------------------------------------------------------------------- /sample/build.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked in Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /sample/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | 27 | 28 | 29 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 42 | 54 | 55 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /sample/default.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "build.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=Google Inc.:Google APIs:8 12 | -------------------------------------------------------------------------------- /sample/proguard.cfg: -------------------------------------------------------------------------------- 1 | -optimizationpasses 5 2 | -dontusemixedcaseclassnames 3 | -dontskipnonpubliclibraryclasses 4 | -dontpreverify 5 | -verbose 6 | -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* 7 | 8 | -keep public class * extends android.app.Activity 9 | -keep public class * extends android.app.Application 10 | -keep public class * extends android.app.Service 11 | -keep public class * extends android.content.BroadcastReceiver 12 | -keep public class * extends android.content.ContentProvider 13 | -keep public class * extends android.app.backup.BackupAgentHelper 14 | -keep public class * extends android.preference.Preference 15 | -keep public class com.android.vending.licensing.ILicensingService 16 | 17 | -keepclasseswithmembernames class * { 18 | native ; 19 | } 20 | 21 | -keepclasseswithmembernames class * { 22 | public (android.content.Context, android.util.AttributeSet); 23 | } 24 | 25 | -keepclasseswithmembernames class * { 26 | public (android.content.Context, android.util.AttributeSet, int); 27 | } 28 | 29 | -keepclassmembers enum * { 30 | public static **[] values(); 31 | public static ** valueOf(java.lang.String); 32 | } 33 | 34 | -keep class * implements android.os.Parcelable { 35 | public static final android.os.Parcelable$Creator *; 36 | } 37 | -------------------------------------------------------------------------------- /sample/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /sample/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /sample/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ened/Android-Tiling-ScrollView/4db66f8a1a529c5a3d60ff889f427568e180c120/sample/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /sample/res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /sample/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tiling Scroll View Sample 4 | 5 | -------------------------------------------------------------------------------- /sample/src/asia/ivity/android/tiledscrollview/TiledScrollViewSample.java: -------------------------------------------------------------------------------- 1 | package asia.ivity.android.tiledscrollview; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | 6 | public class TiledScrollViewSample extends Activity { 7 | /** Called when the activity is first created. */ 8 | @Override 9 | public void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | setContentView(R.layout.main); 12 | 13 | final TiledScrollView tiledScrollView = (TiledScrollView) findViewById(R.id.tiledScrollView); 14 | 15 | tiledScrollView.addConfigurationSet(TiledScrollView.ZoomLevel.LEVEL_1, 16 | new ConfigurationSet("tiger800/crop_%col%_%row%.png", 100, 100, 800, 600)); 17 | tiledScrollView.addConfigurationSet(TiledScrollView.ZoomLevel.LEVEL_2, 18 | new ConfigurationSet("tiger1600/crop_%col%_%row%.png", 100, 100, 1600, 1200)); 19 | } 20 | } 21 | --------------------------------------------------------------------------------