1 package com.android.test.hwui; 2 3 import android.app.Activity; 4 import android.content.Context; 5 import android.graphics.Canvas; 6 import android.graphics.Paint; 7 import android.graphics.RectF; 8 import android.os.Bundle; 9 import android.util.AttributeSet; 10 import android.view.RenderNode; 11 import android.view.View; 12 13 public class ProjectionClippingActivity extends Activity { 14 @Override onCreate(Bundle savedInstanceState)15 protected void onCreate(Bundle savedInstanceState) { 16 super.onCreate(savedInstanceState); 17 setContentView(R.layout.projection_clipping); 18 View.OnClickListener listener = new View.OnClickListener() { 19 @Override 20 public void onClick(View v) { 21 // woo! nothing! 22 } 23 }; 24 findViewById(R.id.clickable1).setOnClickListener(listener); 25 findViewById(R.id.clickable2).setOnClickListener(listener); 26 } 27 } 28