summaryrefslogtreecommitdiffstats
path: root/tests/HwAccelerationTest/src/com/android/test/hwui/ProjectionClippingActivity.java
blob: 2ae960bd08dbb06c0d4af63316cd2c1622e8552e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.android.test.hwui;

import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.os.Bundle;
import android.util.AttributeSet;
import android.view.RenderNode;
import android.view.View;

public class ProjectionClippingActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.projection_clipping);
        View.OnClickListener listener = new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // woo! nothing!
            }
        };
        findViewById(R.id.clickable1).setOnClickListener(listener);
        findViewById(R.id.clickable2).setOnClickListener(listener);
    }
}