tags:

views:

539

answers:

1

Hi, I have a view that I would like a text view to popup over when events happen.

I have done this before (a long time ago) but can't remember how I did it...

My code is for the view element, upon adding the textview I would like it to show over the top. Thanks

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);
}

}

A: 

http://www.curious-creature.org/2009/03/01/android-layout-tricks-3-optimize-part-1/

Solves it. Someone delete that wierd comment please...