Back to project page TileView.
The source code is released under:
MIT License
If you think the Android project TileView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.qozix.layouts; /* ww w . j a v a2s. com*/ import android.content.Context; import android.graphics.Canvas; public class ScalingLayout extends FixedLayout { private double scale = 1; public ScalingLayout( Context context ) { super( context ); setWillNotDraw( false ); } public void setScale( double factor ) { scale = factor; postInvalidate(); } public double getScale() { return scale; } @Override public void onDraw( Canvas canvas ) { canvas.scale( (float) scale, (float) scale ); super.onDraw( canvas ); } }