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.widget.TextView;
      6 
      7 public class BackgroundSurface extends TextView {
      8 
      9     public BackgroundSurface(Context context) {
     10         super(context);
     11 
     12         this.setBackgroundColor(Color.BLACK);
     13         this.setTextColor(Color.WHITE);
     14         this.setText("This is a java background plugin");
     15 
     16         // ensure that the view system is aware that we will be drawing
     17         this.setWillNotDraw(false);
     18     }
     19 }
     20