diff options
Diffstat (limited to 'src/com/android/camera/ui/IndicatorControlBar.java')
-rw-r--r-- | src/com/android/camera/ui/IndicatorControlBar.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/IndicatorControlBar.java b/src/com/android/camera/ui/IndicatorControlBar.java index 3838508..c1e6607 100644 --- a/src/com/android/camera/ui/IndicatorControlBar.java +++ b/src/com/android/camera/ui/IndicatorControlBar.java @@ -18,6 +18,7 @@ package com.android.camera.ui; import com.android.camera.PreferenceGroup; import com.android.camera.R; +import com.android.camera.Util; import android.content.Context; import android.util.AttributeSet; @@ -32,6 +33,9 @@ public class IndicatorControlBar extends IndicatorControl implements View.OnClickListener, View.OnTouchListener { private static final String TAG = "IndicatorControlBar"; + // Space between indicator icons. + public static final int ICON_SPACING = Util.dpToPixel(16); + private ImageView mZoomIcon; private ImageView mSecondLevelIcon; @@ -103,7 +107,7 @@ public class IndicatorControlBar extends IndicatorControl implements View view = getChildAt(i); if (view instanceof IndicatorButton) { view.layout(0, offset, width, offset + width); - offset += width; + offset += (width + ICON_SPACING); } } if (mCameraPicker != null) mCameraPicker.layout(0, offset, width, offset + width); |