diff options
author | Angus Kong <shkong@google.com> | 2011-09-07 08:10:55 +0800 |
---|---|---|
committer | Angus Kong <shkong@google.com> | 2011-09-08 07:10:14 +0800 |
commit | 2f9ed6f52580b8fecb77ec3ca123a804eea89f8c (patch) | |
tree | 5a7dd7a9a482114af3eee39c91937d6212f21247 /res/layout | |
parent | 2670b3d7c318604f07b680b22360d349103144be (diff) | |
download | LegacyCamera-2f9ed6f52580b8fecb77ec3ca123a804eea89f8c.zip LegacyCamera-2f9ed6f52580b8fecb77ec3ca123a804eea89f8c.tar.gz LegacyCamera-2f9ed6f52580b8fecb77ec3ca123a804eea89f8c.tar.bz2 |
A customized dialog for preparing low-res review.
According to UI spec, a customized dialog is needed. The customized dialog has a rounded rectangle
as a background and a spinner over a text view.
bug:5244268
Change-Id: I21a5709babbaf92e507c8900a8cfb322e29bae4c
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/pano_capture.xml | 2 | ||||
-rw-r--r-- | res/layout/pano_dialog_view.xml | 53 |
2 files changed, 55 insertions, 0 deletions
diff --git a/res/layout/pano_capture.xml b/res/layout/pano_capture.xml index a271d23..7cf6c01 100644 --- a/res/layout/pano_capture.xml +++ b/res/layout/pano_capture.xml @@ -60,4 +60,6 @@ android:layout_width="wrap_content" android:visibility="gone" android:layout_centerInParent="true" /> + + <include layout="@layout/pano_dialog_view" /> </RelativeLayout> diff --git a/res/layout/pano_dialog_view.xml b/res/layout/pano_dialog_view.xml new file mode 100644 index 0000000..288d00f --- /dev/null +++ b/res/layout/pano_dialog_view.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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/pano_preview_progress_dialog" + android:visibility="gone" + android:background="#AA000000" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + android:id="@+id/pano_custom_dialog_background" + android:src="@drawable/pano_rounded_rectangle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" /> + + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true"> + + <ProgressBar + android:layout_width="wrap_content" + android:layout_height="@dimen/pano_custom_dialog_spinner_height" + android:layout_gravity="center_horizontal" /> + + <TextView + style="@style/PanoCustomDialogText" + android:id="@+id/pano_custom_dialog_text_view" + android:text="@string/pano_dialog_prepare_preview" + android:paddingTop="15dp" + android:editable="false" + android:gravity="center" + android:layout_gravity="center_horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </LinearLayout> +</RelativeLayout> |