Removed dependence on java interfaces and use only one surface for both embedded and fullscreen surfaces.

This commit is contained in:
Derek Sollenberger
2010-01-11 12:31:49 -05:00
parent a0e762caea
commit d53b56d180
14 changed files with 444 additions and 366 deletions

View File

@@ -0,0 +1,19 @@
package com.android.sampleplugin;
import android.content.Context;
import android.graphics.Color;
import android.widget.TextView;
public class BackgroundSurface extends TextView {
public BackgroundSurface(Context context) {
super(context);
this.setBackgroundColor(Color.BLACK);
this.setTextColor(Color.WHITE);
this.setText("This is a java background plugin");
// ensure that the view system is aware that we will be drawing
this.setWillNotDraw(false);
}
}