I have a view that I would like a TextView to pop up when an event occurs. I did this before (a long time ago), but I canβt remember how I did it ...
My code for the View element. After adding the TextView, I would like it to appear on top of the top of the view.
public class test extends View { public test(Context context) { super(context); setBackgroundColor(Color.RED); } TextView tv; public void adText(TextView tv){ this.tv =tv; tv.setVisibility(tv.VISIBLE); } }
Dawson
source share