Code example for DynamicLayout

0
	 
	private TextPaint paint = new TextPaint();
	private DynamicLayout textLayout;
	 
	protected void setEditable(Editable edit) {
		textLayout = new DynamicLayout(edit, paint, 100, Layout.Alignment.ALIGN_NORMAL, 1, 0, false);
	} 
	 
	protected TextBox(Tool mTool) {
		super(mTool);
	} 
 
	@Override 
	protected void computeBoundingBox() { 
		// TODO Auto-generated method stub 
 
	} 
 
	@Override 
	public float distance(float x_screen, float y_screen) {
		// TODO Auto-generated method stub