diff options
author | Chung-yih Wang <cywang@google.com> | 2011-09-19 17:49:19 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2011-09-19 22:21:17 +0800 |
commit | db3556078a75be0bd4a08195d90f060724034e88 (patch) | |
tree | 9dd6fc20ac6ef48f1cb4b9dcfc8a1f5bbda91c68 /src/com/android/camera/ui/SecondLevelIndicatorControlBar.java | |
parent | 440bb1665b8288a6e94340d1f37b5b3e6bc0e79c (diff) | |
download | LegacyCamera-db3556078a75be0bd4a08195d90f060724034e88.zip LegacyCamera-db3556078a75be0bd4a08195d90f060724034e88.tar.gz LegacyCamera-db3556078a75be0bd4a08195d90f060724034e88.tar.bz2 |
Fix indicator bar height in video mode.
bug:5287560
Change-Id: I000d11aa3974e1d48d18f4dcf6ec31166f6ef8ec
Diffstat (limited to 'src/com/android/camera/ui/SecondLevelIndicatorControlBar.java')
-rw-r--r-- | src/com/android/camera/ui/SecondLevelIndicatorControlBar.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java b/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java index 4b87bdc..670bbb9 100644 --- a/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java +++ b/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java @@ -108,9 +108,11 @@ public class SecondLevelIndicatorControlBar extends IndicatorControl implements int width = right - left; int height = bottom - top; int h = height / count; + + // TODO: follow the redlines of UI design in next change. The icons are + // simply distributed on the bar equally with current implmentation. for (int i = 0; i < count; i++) { - getChildAt(i).layout(0, top + i * height / count, width, - top + i * height / count + h); + getChildAt(i).layout(0, i * h, width, (i + 1) * h); } } |