summaryrefslogtreecommitdiff
path: root/android/testData/rename/MyView5_after.java
blob: accbbdfd77657f569b9deddcd8a572c1e60b6264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package p1.p2;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.Button;

@SuppressWarnings("UnusedDeclaration")
public class MyView extends Button {
    public MyView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        int attribute = R.attr.newname;
        TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.MyView);
        int answer = a.getInt(R.styleable.MyView_newname, 0);
        a.recycle();
    }
}