Home | History | Annotate | Download | only in sampleplugin
      1 package com.android.sampleplugin;
      2 
      3 import android.content.Context;
      4 import android.graphics.Color;
      5 import android.util.Log;
      6 import android.widget.TextView;
      7 
      8 public class AnimationSurface extends TextView {
      9 
     10     public AnimationSurface(Context context) {
     11         super(context);
     12 
     13         Log.e("AnimSurface", "IN ANIMATION SURFACE");
     14 
     15         this.setBackgroundColor(Color.GRAY);
     16         this.setTextColor(Color.WHITE);
     17         this.setText("This is a full-screen plugin");
     18 
     19         // ensure that the view system is aware that we will be drawing
     20         this.setWillNotDraw(false);
     21     }
     22 }
     23