summaryrefslogtreecommitdiffstats
path: root/res/layout/video_module.xml
diff options
context:
space:
mode:
authorByunghun Jeon <bjeon@codeaurora.org>2014-08-29 17:56:11 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2014-11-17 17:55:49 -0800
commitff68f85c5e55d28d329af073f51dea48c37a9df3 (patch)
tree0348209524a34fefdef251cb59d8f8db53a7fd4b /res/layout/video_module.xml
parent74dbd7a70f07f6c3e0e1e3f9a83d7102c681d076 (diff)
downloadandroid_packages_apps_Snap-ff68f85c5e55d28d329af073f51dea48c37a9df3.tar.gz
android_packages_apps_Snap-ff68f85c5e55d28d329af073f51dea48c37a9df3.tar.bz2
android_packages_apps_Snap-ff68f85c5e55d28d329af073f51dea48c37a9df3.zip
SnapdragonCamera: Use MDP composition instead of GPU
Use MDP composition instead of GPU Change-Id: I4f47d26365bd611242a21e66b232d7521b502b04
Diffstat (limited to 'res/layout/video_module.xml')
-rw-r--r--res/layout/video_module.xml86
1 files changed, 43 insertions, 43 deletions
diff --git a/res/layout/video_module.xml b/res/layout/video_module.xml
index af839e774..6f36081e2 100644
--- a/res/layout/video_module.xml
+++ b/res/layout/video_module.xml
@@ -15,25 +15,26 @@
-->
<!-- This layout is shared by phone and tablet in landscape orientation. -->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_width="match_parent">
- <!-- Wrap a frame layout around texture view so that when scaled, texture
- view will not draw outside its unscaled bounds -->
+ android:layout_gravity="center" >
<FrameLayout
android:layout_width="match_parent"
- android:layout_height="match_parent">
- <TextureView
- android:id="@+id/preview_content"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
- <View
- android:id="@+id/preview_cover"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_vertical|center_horizontal" >
+ <SurfaceView
+ android:id="@+id/mdp_preview_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@android:color/black"
android:visibility="gone" />
</FrameLayout>
<View
+ android:id="@+id/preview_cover"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@android:color/black"
+ android:visibility="gone" />
+ <View
android:id="@+id/flash_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -41,47 +42,46 @@
android:visibility="gone"
android:alpha="0" />
<FrameLayout android:id="@+id/preview_border"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:visibility="gone"
- android:background="@drawable/ic_snapshot_border" />
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:visibility="gone"
+ android:background="@drawable/ic_snapshot_border" />
<com.android.camera.ui.RenderOverlay
android:id="@+id/render_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.android.camera.ui.RotateLayout
android:id="@+id/recording_time_rect"
- android:layout_height="match_parent"
- android:layout_width="match_parent">
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- android:layout_height="match_parent"
- android:layout_width="match_parent">
- <com.android.camera.PauseButton android:id="@+id/video_pause"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_marginLeft="50dp"
- android:padding="23dp"
- android:visibility="gone"
- android:src="@drawable/btn_pause_recording"/>
- <include layout="@layout/viewfinder_labels_video"
- android:id="@+id/labels" />
- </LinearLayout>
+ android:layout_height="match_parent"
+ android:layout_width="match_parent">
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent">
+ <com.android.camera.PauseButton android:id="@+id/video_pause"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginLeft="50dp"
+ android:padding="23dp"
+ android:visibility="gone"
+ android:src="@drawable/btn_pause_recording"/>
+ <include layout="@layout/viewfinder_labels_video"
+ android:id="@+id/labels" />
+ </LinearLayout>
</com.android.camera.ui.RotateLayout>
<ImageView android:id="@+id/review_image"
- android:layout_height="match_parent"
- android:layout_width="match_parent"
- android:visibility="gone"
- android:background="@android:color/black"/>
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ android:visibility="gone"
+ android:background="@android:color/black"/>
<ImageView
- android:id="@+id/btn_play"
- style="@style/ReviewControlIcon"
- android:layout_centerInParent="true"
- android:src="@drawable/ic_gallery_play_big"
- android:scaleType="center"
- android:visibility="gone"
- android:onClick="onReviewPlayClicked"/>
-
+ android:id="@+id/btn_play"
+ style="@style/ReviewControlIcon"
+ android:layout_centerInParent="true"
+ android:src="@drawable/ic_gallery_play_big"
+ android:scaleType="center"
+ android:visibility="gone"
+ android:onClick="onReviewPlayClicked"/>
<include layout="@layout/camera_controls"
android:layout_gravity="center"
style="@style/CameraControls"/>