package com.github.kubode.wiggle;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

public class MockView extends View {

    private final WiggleHelper helper = new WiggleHelper();

    public MockView(Context context) {
        super(context);
    }

    public MockView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MockView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        helper.onViewAttachedToWindow(this);
    }

    @Override
    protected void onDetachedFromWindow() {
        helper.onViewDetachedFromWindow(this);
        super.onDetachedFromWindow();
    }
}

@@ -28,16 +28,56 @@
 iggle;%0A%0A
+import android.annotation.SuppressLint;%0A
 import a
@@ -153,13 +153,19 @@
 oid.
-view.
+widget.Text
 View
@@ -197,16 +197,20 @@
 extends 
+Text
 View %7B%0A%0A
@@ -858,11 +858,213 @@
 );%0A    %7D
+%0A%0A    @SuppressLint(%22SetTextI18n%22)%0A    @Override%0A    public void setTranslationY(float translationY) %7B%0A        super.setTranslationY(translationY);%0A        setText(%22translationY=%22 + translationY);%0A    %7D
 %0A%7D%0A

Add readable text for debugging.