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 | a1a2f784d285e7ee8e6e65d5fbee6f903655d888 (patch) | |
tree | 9c641cfe36746e0d5b3443e4dc04083f1a1c76c2 /res/layout/trim_view.xml | |
parent | 9db3b49abc5d29a990c1b82b15b26d64d9279f8d (diff) | |
download | android_packages_apps_Snap-a1a2f784d285e7ee8e6e65d5fbee6f903655d888.tar.gz android_packages_apps_Snap-a1a2f784d285e7ee8e6e65d5fbee6f903655d888.tar.bz2 android_packages_apps_Snap-a1a2f784d285e7ee8e6e65d5fbee6f903655d888.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 'res/layout/trim_view.xml')
-rw-r--r-- | res/layout/trim_view.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/res/layout/trim_view.xml b/res/layout/trim_view.xml new file mode 100644 index 000000000..c95c719c1 --- /dev/null +++ b/res/layout/trim_view.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/trim_view_root" + android:background="@android:color/black" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <VideoView android:id="@+id/surface_view" + android:visibility="visible" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_centerInParent="true" /> +</RelativeLayout>
\ No newline at end of file |