|
void | onCreate (Bundle savedInstanceState) |
|
Definition at line 306 of file CubeActivity.java.
◆ [static initializer]()
◆ onCreate()
void org.skia.jetskidemo.CubeActivity.onCreate |
( |
Bundle |
savedInstanceState | ) |
|
|
inlineprotected |
Definition at line 315 of file CubeActivity.java.
315 {
316 super.onCreate(savedInstanceState);
317 setContentView(
R.layout.activity_cube);
318
319 SurfaceView sv = findViewById(
R.id.surfaceView);
320
321 CubeRenderer
renderer =
new CubeRenderer(getResources());
322 sv.getHolder().addCallback(
renderer);
323
324 mGestureDetector =
new GestureDetector(
this,
renderer);
325 mScaleDetector =
new ScaleGestureDetector(
this,
renderer);
326 }
◆ onTouchEvent()
boolean org.skia.jetskidemo.CubeActivity.onTouchEvent |
( |
MotionEvent |
e | ) |
|
|
inline |
Definition at line 329 of file CubeActivity.java.
329 {
330
331 mGestureDetector.onTouchEvent(
e);
332 mScaleDetector.onTouchEvent(
e);
333
334 return true;
335 }
The documentation for this class was generated from the following file:
- third_party/skia/platform_tools/android/apps/jetskidemo/src/main/java/org/skia/jetskidemo/CubeActivity.java