Update Animation Plugin to use OpenGL.

Change-Id: Ib20fa69422a0dae804c95f71b70a65027ad8e9cf
This commit is contained in:
Derek Sollenberger
2011-01-04 16:14:34 -05:00
parent d7394da1a0
commit 349bc37aa8
12 changed files with 558 additions and 113 deletions

View File

@@ -0,0 +1,22 @@
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);
}
}