summaryrefslogtreecommitdiff
path: root/samples/ApiDemos/src/com/example/android/apis/graphics/PictureLayout.java
diff options
context:
space:
mode:
authorChristian Mehlmauer <FireFart@gmail.com>2010-05-20 21:02:04 +0200
committerChristian Mehlmauer <FireFart@gmail.com>2010-06-12 12:13:18 +0200
commit62e92d7a2a3fd2798901ec2e7c452ff0e4067163 (patch)
treef2e9f60c4735feb3a6e443a15578de58d0fb54d2 /samples/ApiDemos/src/com/example/android/apis/graphics/PictureLayout.java
parent4b5c09f29e37c8d07dcba57e4c4da13089a9d63d (diff)
Cleaned up Samples by removing unsed imports and variables.
Changed deprecated Config.LOGD to Config.DEBUG Removed unnecessary whitespaces Change-Id: I01414dd83eb6f9a41e56762dd7fc00e7f1115039
Diffstat (limited to 'samples/ApiDemos/src/com/example/android/apis/graphics/PictureLayout.java')
-rw-r--r--samples/ApiDemos/src/com/example/android/apis/graphics/PictureLayout.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/samples/ApiDemos/src/com/example/android/apis/graphics/PictureLayout.java b/samples/ApiDemos/src/com/example/android/apis/graphics/PictureLayout.java
index 9bdb49a81..df5fc928b 100644
--- a/samples/ApiDemos/src/com/example/android/apis/graphics/PictureLayout.java
+++ b/samples/ApiDemos/src/com/example/android/apis/graphics/PictureLayout.java
@@ -26,7 +26,6 @@ import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
-
public class PictureLayout extends ViewGroup {
private final Picture mPicture = new Picture();
@@ -36,7 +35,7 @@ public class PictureLayout extends ViewGroup {
public PictureLayout(Context context, AttributeSet attrs) {
super(context, attrs);
- }
+ }
@Override
public void addView(View child) {
@@ -105,7 +104,7 @@ public class PictureLayout extends ViewGroup {
setMeasuredDimension(resolveSize(maxWidth, widthMeasureSpec),
resolveSize(maxHeight, heightMeasureSpec));
}
-
+
private void drawPict(Canvas canvas, int x, int y, int w, int h,
float sx, float sy) {
canvas.save();
@@ -121,10 +120,10 @@ public class PictureLayout extends ViewGroup {
protected void dispatchDraw(Canvas canvas) {
super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight()));
mPicture.endRecording();
-
+
int x = getWidth()/2;
int y = getHeight()/2;
-
+
if (false) {
canvas.drawPicture(mPicture);
} else {