Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic diagram viewer v1.0.1 released (Read 2601 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 688
Joined: Apr 6th, 2003
diagram viewer v1.0.1 released
Jul 10th, 2013 at 12:18pm
Print Post  
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:

Code
Select All
// in Activity.OnCreate
ScrollView scrollView = (ScrollView)findViewById(R.id.scroll_view);
scrollView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); 



or altogether for the application:

Code
Select All
<!-- in AndroidManifest.xml -->
android:hardwareAccelerated="false" 



The new version is available for download here:
https://www.mindfusion.eu/DiagAndroid.zip

Enjoy!
« Last Edit: Sep 5th, 2013 at 4:09pm by Forum Admin »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint