OSDN Git Service

Add the UI elements for video trim activity.
authorTeng-Hui Zhu <ztenghui@google.com>
Fri, 24 Aug 2012 21:50:37 +0000 (14:50 -0700)
committerTeng-Hui Zhu <ztenghui@google.com>
Tue, 11 Sep 2012 17:36:05 +0000 (10:36 -0700)
commit25930913dc7129a1e6d07a88f9b79d69029d2535
treed8d5efe785696d0ffd4b894c5f1113fc529d0680
parent1a980d945c8715de18bdbe6406599503d812185f
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
gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
src/com/android/gallery3d/app/CommonControllerOverlay.java [new file with mode: 0644]
src/com/android/gallery3d/app/ControllerOverlay.java
src/com/android/gallery3d/app/MovieControllerOverlay.java
src/com/android/gallery3d/app/MoviePlayer.java
src/com/android/gallery3d/app/PhotoPage.java
src/com/android/gallery3d/app/TimeBar.java
src/com/android/gallery3d/app/TrimControllerOverlay.java [new file with mode: 0644]
src/com/android/gallery3d/app/TrimTimeBar.java [new file with mode: 0644]
src/com/android/gallery3d/app/TrimVideo.java [new file with mode: 0644]
src/com/android/gallery3d/ui/MenuExecutor.java