We have released version 1.0.1 of Android Diagram Viewer. It contains the following improvements and bug fixes:
~ improved text rendering on high density displays;
~ Android does not render correctly Path objects when hardware acceleration is enabled, leading to incorrectly rendered ShapeNodes. As a work-around, DiagramView now disables hardware acceleration for itself;
~ DiagramView now overrides onMeasure and returns a size that will fit diagram.Bounds for the current zoom level and measure unit. A new layout pass is requested when loading new files. This automatically makes all diagram content accessible when DiagramView is inside ScrollView;
~ fixed incorrect clipping of items with some measure units;
On a related note, our tests show that if hardware acceleration is enabled, Canvas objects cannot be larger than texture sizes supported by the device GPU. This prevents the DiagramView from rendering on large and xlarge displays if the part of it shown by ScrollView is large enough. To work around this, disable hardware acceleration either for the parent ScrollView:
// in Activity.OnCreate
ScrollView scrollView = (ScrollView)findViewById(R.id.scroll_view);
scrollView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
or altogether for the application:
<!-- in AndroidManifest.xml -->
android:hardwareAccelerated="false"
The new version is available for download here:
https://www.mindfusion.eu/DiagAndroid.zipEnjoy!