Files
android_development/samples/BrowserPlugin/src/com/android/sampleplugin/AnimationSurface.java
Derek Sollenberger 349bc37aa8 Update Animation Plugin to use OpenGL.
Change-Id: Ib20fa69422a0dae804c95f71b70a65027ad8e9cf
2011-01-04 16:39:05 -05:00

23 lines
597 B
Java

package com.android.sampleplugin;
import android.content.Context;
import android.graphics.Color;
import android.util.Log;
import android.widget.TextView;
public class AnimationSurface extends TextView {
public AnimationSurface(Context context) {
super(context);
Log.e("AnimSurface", "IN ANIMATION SURFACE");
this.setBackgroundColor(Color.GRAY);
this.setTextColor(Color.WHITE);
this.setText("This is a full-screen plugin");
// ensure that the view system is aware that we will be drawing
this.setWillNotDraw(false);
}
}