I have the following View and TextView, How can I add the TextView to the View as it's child ?
public class MyView extends View {
public MyView(Context context, AttributeSet attrs) {
super(context);
TextView textView = new TextView(context);
textView.setText("Hello My Friends");
}
}
Thanks!