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.
The source image will be provided in TILES, so that all tiles combined create the full scale image.
Current features:
Planned features:
<asia.ivity.android.tiledscrollview.TiledScrollView
android:id="@+id/tiledScrollView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
app:file_pattern="tiger400/crop_%col%_%row%.png"
app:tile_height="100"
app:tile_width="100"
app:image_width="400"
app:image_height="300"
app:zoom_buttons="true"
/>
Attributes:
%col% and %row% are mandatorytrue.The attributes are very likely to be reduced and cut. I prefer the widget to be more simple in the long term.
The View supports different zoom levels. You can add them using Java.
final TiledScrollView tiledScrollView = (TiledScrollView) findViewById(R.id.tiledScrollView);
tiledScrollView.addConfigurationSet(TiledScrollView.ZoomLevel.LEVEL_1,
new ConfigurationSet("tiger800/crop_%col%_%row%.png", 100, 100, 800, 600));
tiledScrollView.addConfigurationSet(TiledScrollView.ZoomLevel.LEVEL_2,
new ConfigurationSet("tiger1600/crop_%col%_%row%.png", 100, 100, 1600, 1200));
The plugin is available in the maven central repository.
<dependency>
<groupId>asia.ivity</groupId>
<artifactId>tiledscrollview</artifactId>
<version>1.0</version>
<type>apklib</type>
</dependency>
This library is released under a BSD license. See the LICENSE file included with the distribution for details.
$ claude mcp add Android-Tiling-ScrollView \
-- python -m otcore.mcp_server <graph>