PathsCacheActivitypublic class PathsCacheActivity extends android.app.Activity
Fields Summary |
---|
private android.graphics.Path | mPath | private final Random | mRandom | private final ArrayList | mPathList |
Methods Summary |
---|
private static void | buildLargePath(android.graphics.Path path)
path.moveTo(0.0f, 0.0f);
path.cubicTo(0.0f, 0.0f, 10000.0f, 15000.0f, 10000.0f, 20000.0f);
path.cubicTo(10000.0f, 20000.0f, 5000.0f, 30000.0f, -8000.0f, 20000.0f);
path.cubicTo(-8000.0f, 20000.0f, 10000.0f, 20000.0f, 20000.0f, 0.0f);
| private static void | buildPath(android.graphics.Path path)
path.moveTo(0.0f, 0.0f);
path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f);
path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f);
path.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f);
| private static android.graphics.Path | makeLargePath()
Path path = new Path();
buildLargePath(path);
return path;
| private static android.graphics.Path | makePath()
Path path = new Path();
buildPath(path);
return path;
| protected void | onCreate(android.os.Bundle savedInstanceState)
super.onCreate(savedInstanceState);
mPath = makePath();
final PathsView view = new PathsView(this);
setContentView(view);
|
|