diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2012-08-24 14:50:37 -0700 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2012-09-11 10:36:05 -0700 |
commit | 3f1f1baf3a674927e25cd5cd885fb372796bd3a0 (patch) | |
tree | ec66032f0e6cf43416f564729d6d67568b6171f2 /src/com/android/gallery3d/app/ControllerOverlay.java | |
parent | e9494164bd7dd1c55c99b3ae1e842b88bf6abd78 (diff) | |
download | android_packages_apps_Gallery2-3f1f1baf3a674927e25cd5cd885fb372796bd3a0.tar.gz android_packages_apps_Gallery2-3f1f1baf3a674927e25cd5cd885fb372796bd3a0.tar.bz2 android_packages_apps_Gallery2-3f1f1baf3a674927e25cd5cd885fb372796bd3a0.zip |
Add the UI elements for video trim activity.
1. Refactored the classes to support both the video play and trim.
Now the common code for controller overlay is in CommonControllerOverlay,
which is basically the same as the original MovieControllerOverlay without
animation. Because in trimming, we don't want to hide all the controller.
The specific animations are implemented in the sub-classes which are
TrimControllerOverlay and MovieControllerOverlay.
At the same time, TrimTimeBar extended TimeBar to support the extra
trimming start scrubber and end scrubber.
The interface between the timebar and the controllerOverlay are kept almost
the same way, except adding the trimming info when necessary.
With all these, the activity of TrimVideo now relied on the TrimTimeBar
and TrimControllerOverlay. Similarily, the MovieActivity relied on the TimeBar
and MovieControllerOverlay.
2. Hook the TrimVideo activity with the trim menu.
Note that the icons are temporary for now, still need UX input on that.
bug:7093055
Change-Id: Ib9bfbc090106744a569fce4c451ddffc0a2c699b
Diffstat (limited to 'src/com/android/gallery3d/app/ControllerOverlay.java')
-rw-r--r-- | src/com/android/gallery3d/app/ControllerOverlay.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/app/ControllerOverlay.java b/src/com/android/gallery3d/app/ControllerOverlay.java index 03472134d..078f59e28 100644 --- a/src/com/android/gallery3d/app/ControllerOverlay.java +++ b/src/com/android/gallery3d/app/ControllerOverlay.java @@ -24,7 +24,7 @@ public interface ControllerOverlay { void onPlayPause(); void onSeekStart(); void onSeekMove(int time); - void onSeekEnd(int time); + void onSeekEnd(int time, int trimStartTime, int trimEndTime); void onShown(); void onHidden(); void onReplay(); @@ -51,5 +51,6 @@ public interface ControllerOverlay { void showErrorMessage(String message); - void setTimes(int currentTime, int totalTime); + void setTimes(int currentTime, int totalTime, + int trimStartTime, int trimEndTime); } |