Tengo la siguiente vista y TextView, ¿cómo puedo agregar el TextView a la vista como su hijo?Android Ver agregar niño
public class MyView extends View {
public MyView(Context context, AttributeSet attrs) {
super(context);
TextView textView = new TextView(context);
textView.setText("Hello My Friends");
}
}
¡Gracias!