透明//Transparent 半透明//Translucent
package rw.Trans;import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
import android.view.SurfaceHolder.Callback;
import android.view.SurfaceView;public class TransParentActivity extends Activity {/** Called when the activity is first created. */class MySurfaceView extends SurfaceView implements Callback{float left,top;Bitmap bitmap=BitmapFactory.decodeResource(getResources(), R.drawable.reen);public MySurfaceView(Context context) {super(context);/