blob: ae35dca1ed2521b1573f25ff8796124fa3f23613 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package com.android.tests.basicProjectWithJava;
import com.android.tests.basicJavaProject.Foo;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;
public class MyTextView extends TextView {
public MyTextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
Foo f = new Foo();
setText("Foo: " + f.getRandomFoo());
}
public MyTextView(Context context, AttributeSet attrs) {
super(context, attrs);
Foo f = new Foo();
setText("Foo: " + f.getRandomFoo());
}
public MyTextView(Context context) {
super(context);
}
}
|