// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.oliodevices.assist.app.views; import android.graphics.Canvas; import android.graphics.Paint; import android.text.style.ReplacementSpan; import android.view.View; // Referenced classes of package com.oliodevices.assist.app.views: // RuleToken class mView extends ReplacementSpan { final String mText; final View mView; final RuleToken this$0; private void prepareView() { int i = android.view.keMeasureSpec(0, 0); int j = android.view.keMeasureSpec(0, 0); mView.measure(i, j); mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); } public void draw(Canvas canvas, CharSequence charsequence, int i, int j, float f, int k, int l, int i1, Paint paint) { prepareView(); canvas.save(); canvas.translate(f, k); mView.draw(canvas); canvas.restore(); } public int getSize(Paint paint, CharSequence charsequence, int i, int j, android.graphics.t t) { prepareView(); if (t != null) { i = mView.getMeasuredHeight() - (t.descent - t.ascent); if (i > 0) { j = i / 2; t.descent = t.descent + (i - j); t.ascent = t.ascent - j; t.bottom = t.bottom + (i - j); t.top = t.top - i / 2; } } return mView.getRight(); } public _cls9(View view, String s) { this$0 = RuleToken.this; super(); mView = view; mText = s; mView.setLayoutParams(new android.view.ams(-2, -2)); } }