summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/PreviewFrameLayout.java
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2009-11-02 18:25:43 +0800
committerChih-Chung Chang <chihchung@google.com>2009-11-03 11:59:05 +0800
commit271b3095b9f763421c0547109da9de774795072d (patch)
tree71c875e50fcfad9485a87cb13fc2344405f1e1bc /src/com/android/camera/PreviewFrameLayout.java
parent77c1cdc8f2cda250b1db842204efb49f87e094ae (diff)
downloadLegacyCamera-271b3095b9f763421c0547109da9de774795072d.zip
LegacyCamera-271b3095b9f763421c0547109da9de774795072d.tar.gz
LegacyCamera-271b3095b9f763421c0547109da9de774795072d.tar.bz2
Clean up and add comments for classes.
Diffstat (limited to 'src/com/android/camera/PreviewFrameLayout.java')
-rw-r--r--src/com/android/camera/PreviewFrameLayout.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/camera/PreviewFrameLayout.java b/src/com/android/camera/PreviewFrameLayout.java
index 7ef9206..b153052 100644
--- a/src/com/android/camera/PreviewFrameLayout.java
+++ b/src/com/android/camera/PreviewFrameLayout.java
@@ -25,9 +25,14 @@ import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.FrameLayout;
+/**
+ * A layout which handles the preview aspect ratio and the position of
+ * the gripper.
+ */
public class PreviewFrameLayout extends ViewGroup {
private static final int MIN_HORIZONTAL_MARGIN = 10; // 10dp
+ /** A callback to be invoked when the preview frame's size changes. */
public interface OnSizeChangedListener {
public void onSizeChanged();
}