diff options
| author | Likai Ding <likaid@codeaurora.org> | 2016-05-30 09:36:04 +0800 |
|---|---|---|
| committer | Likai Ding <likaid@codeaurora.org> | 2016-05-30 09:36:04 +0800 |
| commit | 615373450f031e3054e2eaba9d25c791719584a7 (patch) | |
| tree | b8ab1dec4b1717ca4f8b507a71954e2d7cd6ccb1 /res/layout | |
| parent | 81a71364d948354c5de4a0d3eaf2851ffaad5904 (diff) | |
| parent | 3de604ea8251c1d16c9c9e9d194b6b0f6975c775 (diff) | |
| download | android_packages_apps_Gallery2-615373450f031e3054e2eaba9d25c791719584a7.tar.gz android_packages_apps_Gallery2-615373450f031e3054e2eaba9d25c791719584a7.tar.bz2 android_packages_apps_Gallery2-615373450f031e3054e2eaba9d25c791719584a7.zip | |
Merge branch 'android_ui.lnx.1.2-dev'
Change-Id: Ieb06cc58c083cb03f3dfba07bef506968e36775d
Diffstat (limited to 'res/layout')
108 files changed, 5487 insertions, 0 deletions
diff --git a/res/layout/action_bar_text.xml b/res/layout/action_bar_text.xml new file mode 100644 index 000000000..10839eaa0 --- /dev/null +++ b/res/layout/action_bar_text.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2006 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. +--> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/text1" + android:background="?android:attr/activatedBackgroundIndicator" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center_vertical" + android:paddingStart="18dp" + android:paddingEnd="18dp" + android:singleLine="true" + android:minHeight="?attr/listPreferredItemHeightSmall" +/> diff --git a/res/layout/action_bar_two_line_text.xml b/res/layout/action_bar_two_line_text.xml new file mode 100644 index 000000000..6233d8eb0 --- /dev/null +++ b/res/layout/action_bar_two_line_text.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2006 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. +--> +<TwoLineListItem xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/ActionBarTwoLineItem" + android:layout_height="match_parent" + android:orientation="vertical" + android:gravity="center_vertical" + android:duplicateParentState="false" + android:layout_alignParentStart="true" + android:layout_width="wrap_content" > + <TextView + android:id="@android:id/text1" + style="@style/ActionBarTwoLinePrimary" + android:singleLine="true" + android:ellipsize="end" + android:includeFontPadding="false" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + <TextView + android:id="@android:id/text2" + style="@style/ActionBarTwoLineSecondary" + android:singleLine="true" + android:ellipsize="end" + android:includeFontPadding="false" + android:layout_marginEnd="4dp" + android:layout_below="@android:id/text1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> +</TwoLineListItem> diff --git a/res/layout/action_mode.xml b/res/layout/action_mode.xml new file mode 100644 index 000000000..ec4704d92 --- /dev/null +++ b/res/layout/action_mode.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/navigation_bar" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal"> + + <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="match_parent"> + <ImageView android:layout_gravity="right|center_vertical" + android:layout_width="8dp" + android:layout_height="8dp" + android:src="@drawable/dropdown_ic_arrow_normal_holo_dark" /> + <Button android:id="@+id/selection_menu" + style="?android:attr/actionButtonStyle" + android:divider="?android:attr/listDividerAlertDialog" + android:textAppearance="?android:attr/textAppearanceLargePopupMenu" + android:textColor="#8A000000" + android:textSize="20sp" + android:singleLine="true" + android:gravity="start|center_vertical" + android:paddingEnd="15dip" + android:paddingStart="0dp" + android:layout_width="wrap_content" + android:layout_height="match_parent" /> + </FrameLayout> +</LinearLayout> diff --git a/res/layout/album_content.xml b/res/layout/album_content.xml new file mode 100644 index 000000000..97509fd3e --- /dev/null +++ b/res/layout/album_content.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <LinearLayout android:id="@+id/progressContainer" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" + android:gravity="center"> + + <ProgressBar style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + <TextView android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="@string/loading" + android:paddingTop="4dip" + android:singleLine="true" /> + + </LinearLayout> + + <FrameLayout android:id="@+id/gridContainer" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <com.android.photos.views.HeaderGridView android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:choiceMode="multipleChoiceModal" + android:numColumns="auto_fit" + android:stretchMode="columnWidth" + android:drawSelectorOnTop="true" /> + <TextView android:id="@android:id/empty" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:textAppearance="?android:attr/textAppearanceMedium" /> + </FrameLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/res/layout/album_header.xml b/res/layout/album_header.xml new file mode 100644 index 000000000..caae962b3 --- /dev/null +++ b/res/layout/album_header.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" > + + <ImageView + android:id="@+id/album_header_image" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="centerCrop" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentStart="true" + android:paddingStart="15dip" + android:paddingBottom="10dip" + android:paddingTop="20dip" + android:background="@drawable/white_text_bg_gradient" + android:layout_gravity="bottom" + android:orientation="vertical" > + + <TextView + android:id="@+id/album_header_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@android:color/white" + android:textAppearance="?android:attr/textAppearanceLarge" /> + + <TextView + android:id="@+id/album_header_subtitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="@android:color/white" + android:textAppearance="?android:attr/textAppearanceSmall" /> + + </LinearLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/res/layout/album_set_item.xml b/res/layout/album_set_item.xml new file mode 100644 index 000000000..ad0e0db20 --- /dev/null +++ b/res/layout/album_set_item.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:orientation="vertical" + android:background="?android:attr/activatedBackgroundIndicator" + android:padding="2dp" > + + <LinearLayout + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:orientation="vertical" + android:padding="10dp" + android:background="#FFF" > + + <TextView + android:id="@+id/album_set_item_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <TextView + android:id="@+id/album_set_item_count" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="#AAA" /> + </LinearLayout> + + <ImageView + android:id="@+id/album_set_item_image" + android:layout_width="match_parent" + android:layout_height="@dimen/album_set_item_image_height" + android:scaleType="centerCrop" /> +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/appwidget_drm_empty_item.xml b/res/layout/appwidget_drm_empty_item.xml new file mode 100644 index 000000000..8261dbe77 --- /dev/null +++ b/res/layout/appwidget_drm_empty_item.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015, The Linux Foundation. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/appwidget_photo_border" > + + <RelativeLayout + android:layout_width="@dimen/stack_photo_width" + android:layout_height="@dimen/stack_photo_height" + android:background="@android:color/darker_gray" > + + <ImageView + android:id="@+id/drm_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:background="@drawable/drm_image" /> + </RelativeLayout> +s +</FrameLayout>
\ No newline at end of file diff --git a/res/layout/appwidget_loading_item.xml b/res/layout/appwidget_loading_item.xml new file mode 100644 index 000000000..ee8a2063a --- /dev/null +++ b/res/layout/appwidget_loading_item.xml @@ -0,0 +1,30 @@ +<?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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/appwidget_photo_border"> + <RelativeLayout + android:layout_width="@dimen/stack_photo_width" + android:layout_height="@dimen/stack_photo_height" + android:background="@android:color/darker_gray"> + <ProgressBar + android:id="@+id/appwidget_loading_item" + android:layout_centerInParent="true" + android:layout_height="wrap_content" + android:layout_width="wrap_content" /> + </RelativeLayout> +</FrameLayout> diff --git a/res/layout/appwidget_main.xml b/res/layout/appwidget_main.xml new file mode 100644 index 000000000..368d90bc5 --- /dev/null +++ b/res/layout/appwidget_main.xml @@ -0,0 +1,43 @@ +<?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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <RelativeLayout + android:id="@+id/appwidget_empty_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone"> + <FrameLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:background="@drawable/appwidget_photo_border"> + <TextView + android:id="@+id/appwidget_photo_item" + android:layout_width="@dimen/stack_photo_width" + android:layout_height="@dimen/stack_photo_height" + android:gravity="center" + android:textColor="@android:color/black" + android:text="@string/appwidget_empty_text"/> + </FrameLayout> + </RelativeLayout> + <StackView + android:id="@+id/appwidget_stack_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:loopViews="true" /> +</FrameLayout> diff --git a/res/layout/appwidget_photo_item.xml b/res/layout/appwidget_photo_item.xml new file mode 100644 index 000000000..25e88f5fb --- /dev/null +++ b/res/layout/appwidget_photo_item.xml @@ -0,0 +1,35 @@ +<?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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:background="@drawable/appwidget_photo_border"> + <ImageView + android:id="@+id/appwidget_photo_item" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:scaleType="fitCenter" + android:adjustViewBounds="true" /> + + <ImageView + android:id="@+id/drm_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:background="@drawable/drm_image" /> + +</FrameLayout> diff --git a/res/layout/audio_effects_dialog.xml b/res/layout/audio_effects_dialog.xml new file mode 100644 index 000000000..a14cd1e54 --- /dev/null +++ b/res/layout/audio_effects_dialog.xml @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (c) 2013, 2016, The Linux Foundation. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + android:gravity="center"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + android:gravity="center_horizontal" + android:layout_marginStart="12dp" + android:layout_marginEnd="12dp"> + + <RelativeLayout + android:id="@+id/aEffectsPanel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="12dp" + android:layout_marginBottom="10dp" + android:gravity="center_vertical"> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="12dp" + android:layout_weight="1"> + <com.android.gallery3d.ui.Knob + android:id="@+id/bBStrengthKnob" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + custom:foreground="@drawable/knob"/> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_below="@id/bBStrengthKnob" + android:layout_marginTop="12dp" + android:textColor="@android:color/black" + android:text="@string/bass_boost_strength"/> + </RelativeLayout> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="12dp" + android:layout_alignParentRight="true" + android:layout_weight="1"> + <com.android.gallery3d.ui.Knob + android:id="@+id/vIStrengthKnob" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + custom:foreground="@drawable/knob"/> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/vIStrengthKnob" + android:layout_marginTop="12dp" + android:layout_centerHorizontal="true" + android:textColor="@android:color/black" + android:text="@string/virtualizer_strength"/> + </RelativeLayout> + </RelativeLayout> + </LinearLayout> +</LinearLayout> diff --git a/res/layout/audio_effects_title.xml b/res/layout/audio_effects_title.xml new file mode 100644 index 000000000..2e200d5aa --- /dev/null +++ b/res/layout/audio_effects_title.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (c) 2014, 2016, The Linux Foundation. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:gravity="left|center_vertical"> + + <TextView + android:text="@string/audio_effects_dialog_title" + android:gravity="left|center_vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="24dp" + android:layout_marginTop="10dp" + android:layout_marginBottom="10dp" + android:textColor="@android:color/black" + android:textSize="20dp" /> + + <View + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" /> + + <ToggleButton + android:id="@+id/audio_effects_switch" + android:textOn="" + android:textOff="" + android:background="@null" + android:gravity="center_vertical|right" + android:layout_width="72dp" + android:layout_height="34dp"/> +</LinearLayout> diff --git a/res/layout/bg_replacement_training_message.xml b/res/layout/bg_replacement_training_message.xml new file mode 100644 index 000000000..8d881d64e --- /dev/null +++ b/res/layout/bg_replacement_training_message.xml @@ -0,0 +1,56 @@ +<?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/bg_replace_message_frame" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:visibility="gone" + android:onClick="onProtectiveCurtainClick" + android:background="#77000000"> + <com.android.camera.ui.RotateLayout + android:id="@+id/bg_replace_message" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_centerInParent="true"> + <LinearLayout + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:orientation="vertical" + android:background="@drawable/dialog_full_holo_dark"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/bg_replacement_message" + android:padding="32dp" /> + + <View + android:layout_width="match_parent" + android:layout_height="1dp" + android:background="#aaaaaa" /> + + <Button android:layout_width="match_parent" + android:layout_height="48dip" + android:layout_gravity="center" + android:textAppearance="?android:attr/textAppearanceMedium" + style="?android:attr/borderlessButtonStyle" + android:text="@android:string/cancel" + android:onClick="onCancelBgTraining" + android:contentDescription="@android:string/cancel" /> + </LinearLayout> + </com.android.camera.ui.RotateLayout> +</RelativeLayout> diff --git a/res/layout/bookmark.xml b/res/layout/bookmark.xml new file mode 100644 index 000000000..ac4ac34a4 --- /dev/null +++ b/res/layout/bookmark.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + <TextView + android:id="@android:id/empty" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_centerInParent="true" + android:gravity="center" + android:paddingBottom="30dip" + android:text="@string/bookmark_empty" + android:textAppearance="?android:attr/textAppearanceLarge" + android:visibility="gone" /> +</FrameLayout> diff --git a/res/layout/bookmark_edit_dialog.xml b/res/layout/bookmark_edit_dialog.xml new file mode 100644 index 000000000..8282d39af --- /dev/null +++ b/res/layout/bookmark_edit_dialog.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="8dip" > + + <TextView + style="?android:attr/textAppearanceSmallInverse" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/bookmark_title" /> + + <EditText + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="2dip" + android:inputType="text" + android:scrollHorizontally="true" + android:singleLine="true" /> + + <TextView + style="?android:attr/textAppearanceSmallInverse" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/bookmark_location" /> + + <EditText + android:id="@+id/data" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="2dip" + android:inputType="textUri" + android:scrollHorizontally="true" + android:singleLine="true" /> + </LinearLayout> + +</ScrollView> diff --git a/res/layout/bookmark_item.xml b/res/layout/bookmark_item.xml new file mode 100644 index 000000000..3fb2fab89 --- /dev/null +++ b/res/layout/bookmark_item.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/panel" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:padding="6dip" > + + <TextView + android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <TextView + android:id="@+id/data" + android:layout_width="wrap_content" + android:layout_height="match_parent" /> + +</LinearLayout> diff --git a/res/layout/camera.xml b/res/layout/camera.xml new file mode 100644 index 000000000..9a3a01a86 --- /dev/null +++ b/res/layout/camera.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<com.android.camera.ui.CameraRootView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/camera_app_root" + android:layout_width="match_parent" + android:layout_height="match_parent" > +</com.android.camera.ui.CameraRootView> diff --git a/res/layout/camera_filmstrip.xml b/res/layout/camera_filmstrip.xml new file mode 100644 index 000000000..6fbc62114 --- /dev/null +++ b/res/layout/camera_filmstrip.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <com.android.camera.ui.FilmStripView + android:id="@+id/filmstrip_view" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + <ImageButton + android:id="@+id/filmstrip_bottom_control_panorama" + android:layout_width="70dp" + android:layout_height="70dp" + android:layout_gravity="bottom|center_horizontal" + android:background="@drawable/transparent_button_background" + android:clickable="true" + android:paddingBottom="5dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" + android:paddingTop="5dp" + android:visibility="gone" + android:src="@drawable/ic_view_photosphere" /> + + <LinearLayout + android:id="@+id/pano_stitching_progress_panel" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom|center_horizontal" + android:paddingBottom="52dp" + android:paddingStart="5dp" + android:paddingEnd="5dp" + android:paddingTop="5dp" + android:visibility="gone" + android:orientation="vertical"> + + <TextView + android:id="@+id/pano_stitching_progress_text" + android:text="@string/pano_progress_text" + android:textColor="#ffffffff" + android:textSize="14dp" + android:shadowColor="#ff000000" + android:shadowDx="0" + android:shadowDy="0" + android:shadowRadius="2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:paddingBottom="8dp" + android:visibility="visible" + android:layout_gravity="end"/> + + <ProgressBar + android:id="@+id/pano_stitching_progress_bar" + style="@android:style/Widget.Holo.Light.ProgressBar.Horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="visible" + android:layout_gravity="bottom|center_horizontal" /> + </LinearLayout> + +</FrameLayout> diff --git a/res/layout/choose_widget_type.xml b/res/layout/choose_widget_type.xml new file mode 100644 index 000000000..d8af048b9 --- /dev/null +++ b/res/layout/choose_widget_type.xml @@ -0,0 +1,54 @@ +<?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. +--> + +<RadioGroup xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/widget_type" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + <RadioButton android:id="@+id/widget_type_album" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:minHeight="48dp" + android:text="@string/widget_type_album"/> + <RadioButton android:id="@+id/widget_type_photo" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:minHeight="48dp" + android:text="@string/widget_type_photo"/> + <RadioButton android:id="@+id/widget_type_shuffle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:minHeight="48dp" + android:text="@string/widget_type_shuffle"/> + <View android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_weight="0" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" + android:background="?android:attr/dividerHorizontal" /> + <Button style="?android:attr/buttonBarButtonStyle" + android:id="@+id/cancel" + android:layout_weight="0" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@android:string/cancel" /> +</RadioGroup> diff --git a/res/layout/count_down_to_capture.xml b/res/layout/count_down_to_capture.xml new file mode 100644 index 000000000..5cf1e3f94 --- /dev/null +++ b/res/layout/count_down_to_capture.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<com.android.camera.ui.CountDownView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/count_down_to_capture" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="invisible" > + <TextView android:id="@+id/remaining_seconds" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:textSize="160sp" + android:textColor="@android:color/white" + android:gravity="center" /> + <TextView android:id="@+id/count_down_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingStart="10dp" + android:paddingTop="20dp" + android:textSize="20sp" + android:textColor="@android:color/white" + android:text="@string/count_down_title_text" /> +</com.android.camera.ui.CountDownView>
\ No newline at end of file diff --git a/res/layout/countdown_setting_popup.xml b/res/layout/countdown_setting_popup.xml new file mode 100644 index 000000000..1a314ad56 --- /dev/null +++ b/res/layout/countdown_setting_popup.xml @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (c) 2013, 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. +--> + +<com.android.camera.ui.CountdownTimerPopup xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/SettingPopupWindow"> + + <LinearLayout android:orientation="vertical" + android:background="@color/popup_background" + android:layout_height="wrap_content" + android:layout_width="@dimen/big_setting_popup_window_width"> + + <TextView + android:id="@+id/title" + style="@style/PopupTitleText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:gravity="center_vertical|center_horizontal" + android:minHeight="@dimen/popup_title_frame_min_height" /> + + <View style="@style/PopupTitleSeparator" /> + + <LinearLayout + android:id="@+id/time_duration_picker" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:orientation="vertical" > + + <TextView + android:id="@+id/set_time_interval_title" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:paddingTop="5dip" + android:text="@string/set_duration" + android:textAppearance="?android:attr/textAppearanceMedium" /> + <!-- A number picker to set timer --> + + <NumberPicker + android:id="@+id/duration" + android:layout_width="160dp" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:layout_marginStart="16dip" + android:layout_marginEnd="16dip" + android:focusable="false" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <View + android:background="#40ffffff" + android:layout_width="match_parent" + android:layout_height="1dip" /> + <LinearLayout + android:id="@+id/timer_sound" + style="@style/SettingRow" > + + <TextView android:id="@+id/beep_title" + style="@style/SettingItemTitle" + android:text="@string/pref_camera_timer_sound_title" /> + + <CheckBox android:id="@+id/sound_check_box" + android:layout_gravity="center_vertical|right" + android:layout_width="wrap_content" + android:layout_height="match_parent" /> + </LinearLayout> + + <View + android:background="#40ffffff" + android:layout_width="match_parent" + android:layout_height="1dip" /> + + <Button + android:id="@+id/timer_set_button" + style="?android:attr/buttonBarButtonStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:text="@string/time_lapse_interval_set" + android:textAppearance="?android:attr/textAppearanceMedium" /> + </LinearLayout> + </LinearLayout> +</com.android.camera.ui.CountdownTimerPopup> diff --git a/res/layout/crop_activity.xml b/res/layout/crop_activity.xml new file mode 100644 index 000000000..0620cf4d9 --- /dev/null +++ b/res/layout/crop_activity.xml @@ -0,0 +1,54 @@ +<?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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/mainView"> + + <LinearLayout + android:id="@+id/mainPanel" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:orientation="vertical" > + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" > + + <com.android.gallery3d.filtershow.crop.CropView + android:id="@+id/cropView" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <ProgressBar + android:id="@+id/loading" + style="@android:style/Widget.Holo.ProgressBar.Large" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:indeterminate="true" + android:indeterminateOnly="true" + android:background="@android:color/transparent" /> + + </FrameLayout> + + </LinearLayout> + +</FrameLayout> diff --git a/res/layout/cropimage.xml b/res/layout/cropimage.xml new file mode 100644 index 000000000..c434fb6a6 --- /dev/null +++ b/res/layout/cropimage.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <include layout="@layout/gl_root_group"/> +</FrameLayout> diff --git a/res/layout/details.xml b/res/layout/details.xml new file mode 100644 index 000000000..0c3622bcf --- /dev/null +++ b/res/layout/details.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2006 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. +--> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/text1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="16sp" + android:textColor="@color/albumset_label_background" + android:gravity="start" +/> diff --git a/res/layout/details_list.xml b/res/layout/details_list.xml new file mode 100644 index 000000000..aa5842c7b --- /dev/null +++ b/res/layout/details_list.xml @@ -0,0 +1,25 @@ +<?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. +--> + +<ListView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="20dp" + android:paddingBottom="16dp" + android:paddingLeft="24dp" + android:paddingRight="24dp" + android:dividerHeight="8dp" +/> diff --git a/res/layout/dialog_picker.xml b/res/layout/dialog_picker.xml new file mode 100644 index 000000000..fc5f2877a --- /dev/null +++ b/res/layout/dialog_picker.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <FrameLayout + android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="0dp"> + <include layout="@layout/gl_root_group" /> + </FrameLayout> + <ImageView android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" + android:background="@drawable/list_divider_holo_dark" /> + <Button style="?android:attr/buttonBarButtonStyle" + android:id="@+id/cancel" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@android:string/cancel" + android:visibility="gone" /> +</LinearLayout> diff --git a/res/layout/drawer_list_item.xml b/res/layout/drawer_list_item.xml new file mode 100644 index 000000000..aee19831e --- /dev/null +++ b/res/layout/drawer_list_item.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015, The Linux Foundation. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="48dp" + android:paddingTop="10dp" + android:paddingBottom="10dp"> + + <ImageView + android:id="@+id/ivItem" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentStart="true" + android:layout_marginStart="16dp" + /> + + <TextView + android:id="@+id/itemTitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="12sp" + android:layout_centerVertical="true" + android:fontFamily="sans-serif-medium" + android:textColor="#000000" + android:alpha="0.87" + android:layout_marginStart="64dp" + /> +</RelativeLayout> diff --git a/res/layout/editor_grad_button.xml b/res/layout/editor_grad_button.xml new file mode 100644 index 000000000..032eb686a --- /dev/null +++ b/res/layout/editor_grad_button.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_alignParentTop="true" + android:layout_marginStart="26dp" + android:layout_marginTop="21dp" + android:orientation="horizontal" > + + <com.android.gallery3d.filtershow.ui.FramedTextButton + android:id="@+id/editorGradButton" + android:layout_width="84dip" + android:layout_height="84dip" + android:layout_gravity="center_vertical|left" + android:background="@drawable/filtershow_button_background" + android:scaleType="centerInside" + android:visibility="visible" + android:text="@string/editor_grad_style" /> + + <ToggleButton + android:id="@+id/editor_grad_new" + android:layout_width="84dip" + android:layout_height="84dip" + android:layout_gravity="center_vertical|left" + android:background="@drawable/filtershow_grad_button" + android:scaleType="centerInside" + android:visibility="visible" + android:textOff="@string/editor_grad_new" + android:textOn="@string/editor_grad_new" /> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/effect_setting_item.xml b/res/layout/effect_setting_item.xml new file mode 100644 index 000000000..655625c18 --- /dev/null +++ b/res/layout/effect_setting_item.xml @@ -0,0 +1,29 @@ +<?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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + tools:ignore="UseCompoundDrawables" + style="@style/EffectSettingItem"> + + <ImageView android:id="@+id/image" + android:layout_height="@dimen/effect_setting_item_icon_width" + android:layout_width="@dimen/effect_setting_item_icon_width" + android:layout_gravity="center_horizontal" + android:scaleType="fitCenter" + android:adjustViewBounds="true" /> + <TextView android:id="@+id/text" + style="@style/EffectSettingItemTitle"/> +</LinearLayout> diff --git a/res/layout/effect_setting_popup.xml b/res/layout/effect_setting_popup.xml new file mode 100644 index 000000000..63b7ab458 --- /dev/null +++ b/res/layout/effect_setting_popup.xml @@ -0,0 +1,68 @@ +<?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. +--> +<com.android.camera.ui.EffectSettingPopup xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/SettingPopupWindow"> + <LinearLayout android:orientation="vertical" + android:background="@color/popup_background" + android:layout_height="wrap_content" + android:layout_width="@dimen/big_setting_popup_window_width"> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="@dimen/popup_title_frame_min_height"> + <TextView android:id="@+id/title" + style="@style/PopupTitleText" /> + </FrameLayout> + <View style="@style/PopupTitleSeparator" /> + <ScrollView + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <TextView android:id="@+id/clear_effects" + android:text="@string/clear_effects" + style="@style/EffectSettingTypeTitle" + android:textSize="@dimen/effect_setting_clear_text_size" + android:minHeight="@dimen/effect_setting_clear_text_min_height" + android:background="@drawable/bg_pressed"/> + <TextView android:id="@+id/effect_silly_faces_title" + android:text="@string/effect_silly_faces" + android:visibility="gone" + style="@style/EffectSettingTypeTitle"/> + <View android:id="@+id/effect_silly_faces_title_separator" + android:visibility="gone" + style="@style/EffectTypeSeparator"/> + <com.android.camera.ui.ExpandedGridView android:id="@+id/effect_silly_faces" + style="@style/EffectSettingGrid"/> + <View android:id="@+id/effect_background_separator" + android:visibility="gone" + style="@style/EffectTitleSeparator"/> + <TextView android:id="@+id/effect_background_title" + android:text="@string/effect_background" + android:visibility="gone" + style="@style/EffectSettingTypeTitle"/> + <View android:id="@+id/effect_background_title_separator" + android:visibility="gone" + style="@style/EffectTypeSeparator"/> + <com.android.camera.ui.ExpandedGridView android:id="@+id/effect_background" + android:visibility="gone" + style="@style/EffectSettingGrid"/> + </LinearLayout> + </ScrollView> + </LinearLayout> +</com.android.camera.ui.EffectSettingPopup> diff --git a/res/layout/face_view.xml b/res/layout/face_view.xml new file mode 100644 index 000000000..63e78860b --- /dev/null +++ b/res/layout/face_view.xml @@ -0,0 +1,19 @@ +<?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. +--> +<com.android.camera.ui.FaceView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone"/> diff --git a/res/layout/filtershow_actionbar.xml b/res/layout/filtershow_actionbar.xml new file mode 100644 index 000000000..a23ca80b7 --- /dev/null +++ b/res/layout/filtershow_actionbar.xml @@ -0,0 +1,43 @@ +<?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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="@dimen/toolbar_height" + android:orientation="horizontal"> + + <ImageButton + android:id="@+id/filtershow_exit" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:scaleType="fitCenter" + android:src="@drawable/cancel" + android:layout_gravity="left|center_vertical" + android:paddingStart="6dp" /> + + <TextView + android:id="@+id/filtershow_done" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingRight="13dp" + android:textSize="17sp" + android:text="@string/save" + android:textAllCaps="true" + android:layout_gravity="center_vertical|right" + android:textColor="#ffffff" /> + +</FrameLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_actionbar_effects.xml b/res/layout/filtershow_actionbar_effects.xml new file mode 100644 index 000000000..c2b05ebe0 --- /dev/null +++ b/res/layout/filtershow_actionbar_effects.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="48dip" + android:baselineAligned="false" + android:orientation="horizontal" + android:visibility="visible" > + + <ImageButton + android:id="@+id/cancelFilter" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="left|center_vertical" + android:layout_weight=".1" + android:background="@android:color/transparent" + android:gravity="center" + android:src="@drawable/cancel" + android:paddingStart="16dp" + android:textSize="18dip" /> + + <LinearLayout + android:id="@+id/panelAccessoryViewList" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center" + android:orientation="horizontal" + android:visibility="visible" > + + <com.android.gallery3d.filtershow.editors.SwapButton + android:id="@+id/applyEffect" + android:layout_width="@dimen/swap_button_width" + android:layout_height="@dimen/swap_button_height" + android:layout_gravity="center_vertical|center_horizontal" + android:background="@android:color/transparent" + android:drawableEnd="@drawable/spinner_triangle" + android:gravity="center" + android:text="@string/apply_effect" + android:textColor="#ffffff" + android:textSize="16sp" /> + </LinearLayout> + + <ImageButton + android:id="@+id/applyFilter" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="right|center_vertical" + android:layout_weight=".1" + android:background="@android:color/transparent" + android:gravity="center" + android:src="@drawable/done" + android:paddingEnd="16dp" + android:textSize="18dip" /> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_actionbar_new.xml b/res/layout/filtershow_actionbar_new.xml new file mode 100644 index 000000000..1e56b8d57 --- /dev/null +++ b/res/layout/filtershow_actionbar_new.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015, The Linux Foundation. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="@dimen/toolbar_height" + android:paddingTop="15dp"> + + <ImageButton + android:id="@+id/imgCancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:background="@android:color/transparent" + android:src="@drawable/cancel" + android:paddingLeft="16dp"/> + + <ImageButton + android:id="@+id/imgDone" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:background="@android:color/transparent" + android:src="@drawable/done" + android:paddingRight="16dp" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_activity.xml b/res/layout/filtershow_activity.xml new file mode 100644 index 000000000..87adf730b --- /dev/null +++ b/res/layout/filtershow_activity.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/mainView" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/background_screen" > + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" > + + <RelativeLayout + android:id="@+id/imageContainer" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_weight="1" + android:orientation="horizontal" > + + <FrameLayout + android:id="@+id/editorContainer" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:visibility="gone" /> + + <com.android.gallery3d.filtershow.imageshow.ImageShow + android:id="@+id/imageShow" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_weight="1" /> + + <ImageButton + android:id="@+id/imgComparison" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_marginRight="@dimen/compare_margin_right" + android:layout_marginTop="@dimen/compare_margin_top" + android:background="@android:color/transparent" + android:src="@drawable/comparison_before" + android:visibility="visible" /> + </RelativeLayout> + + <com.android.gallery3d.filtershow.CenteredLinearLayout + xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d" + android:id="@+id/mainPanel" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center|bottom" + android:background="@android:color/transparent" + android:orientation="vertical" + custom:max_width="650dip" > + + <FrameLayout + android:id="@+id/main_panel_container" + android:layout_width="match_parent" + android:layout_height="0dip" + android:background="@android:color/transparent" + android:layout_gravity="center" + android:layout_weight="1" /> + </com.android.gallery3d.filtershow.CenteredLinearLayout> + </FrameLayout> + + <com.android.gallery3d.filtershow.category.CategorySelected + android:id="@+id/categorySelectedIndicator" + android:layout_width="@dimen/category_panel_icon_size" + android:layout_height="@dimen/category_panel_icon_size" + android:visibility="gone" /> + +</FrameLayout> diff --git a/res/layout/filtershow_bottom_panel.xml b/res/layout/filtershow_bottom_panel.xml new file mode 100644 index 000000000..80efe1a08 --- /dev/null +++ b/res/layout/filtershow_bottom_panel.xml @@ -0,0 +1,137 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2016, The Linux Foundation. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<com.android.gallery3d.filtershow.CenteredLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/bottom_panel" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center|bottom" + android:background="@color/bottom_panel_background_color" + android:orientation="vertical"> + + <LinearLayout + android:id="@+id/effectsContainer" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/transparent"> + + <ImageButton + android:id="@+id/fxButton" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@android:color/transparent" + android:scaleType="centerInside" + android:src="@drawable/color_background" /> + + <ImageButton + android:id="@+id/borderButton" + android:layout_width="@dimen/thumbnail_size" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@android:color/transparent" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/frames_background" + android:visibility="gone" /> + + <ImageButton + android:id="@+id/geometryButton" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@android:color/transparent" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/crop_background" /> + + <ImageButton + android:id="@+id/colorsButton" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@android:color/transparent" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/exposure_background" /> + + <ImageButton + android:id="@+id/makeupButton" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@android:color/transparent" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/beautify_background" + android:visibility="gone" /> + + <ImageButton + android:id="@+id/dualCamButton" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@android:color/transparent" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/dualcamera_background" + android:visibility="gone" /> + + <ImageButton + android:id="@+id/trueScannerButton" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@android:color/transparent" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/truescanner" /> + + <ImageButton + android:id="@+id/hazeBusterButton" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@android:color/transparent" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/hazebuster" /> + + <ImageButton + android:id="@+id/seeStraightButton" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@android:color/transparent" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/seestraight" /> + </LinearLayout> +</com.android.gallery3d.filtershow.CenteredLinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_brightness.xml b/res/layout/filtershow_brightness.xml new file mode 100644 index 000000000..88c5d3a5b --- /dev/null +++ b/res/layout/filtershow_brightness.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/top" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:visibility="visible" > + + <com.android.gallery3d.filtershow.colorpicker.ColorBrightnessView + android:id="@+id/brightnessView" + android:layout_width="match_parent" + android:layout_height="90dp" + android:layout_above="@+id/btnSelect" /> + +</LinearLayout> diff --git a/res/layout/filtershow_category_geometry_panel.xml b/res/layout/filtershow_category_geometry_panel.xml new file mode 100644 index 000000000..92dc359d6 --- /dev/null +++ b/res/layout/filtershow_category_geometry_panel.xml @@ -0,0 +1,163 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2016, The Linux Foundation. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/transparent" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="@dimen/category_panel_height" + android:background="@android:color/transparent" + android:clickable="true" + android:orientation="horizontal"> + + <LinearLayout + android:id="@+id/leftPanel" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@android:color/transparent" + android:orientation="vertical" > + + <ImageButton + android:id="@+id/leftButton" + android:layout_width="match_parent" + android:layout_height="@dimen/crop_icon_size" + android:scaleType="centerInside" + android:background="@android:color/transparent" + android:layout_marginTop="@dimen/crop_icon_margin_padding" /> + + <TextView + android:id="@+id/leftText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:clickable="true" + android:background="@android:color/transparent" + android:layout_marginTop="@dimen/crop_text_margin_padding" + android:textColor="#ffffff" + android:textSize="12sp" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/centerPanel" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:clickable="true" + android:background="@android:color/transparent" + android:orientation="vertical"> + + <ImageButton + android:id="@+id/centerButton" + android:layout_width="match_parent" + android:layout_height="@dimen/crop_icon_size" + android:scaleType="centerInside" + android:background="@android:color/transparent" + android:layout_marginTop="@dimen/crop_icon_margin_padding" /> + + <TextView + android:id="@+id/centerText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:clickable="true" + android:background="@android:color/transparent" + android:layout_marginTop="@dimen/crop_text_margin_padding" + android:textColor="#ffffff" + android:textSize="12sp" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/rightPanel" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:clickable="true" + android:background="@android:color/transparent" + android:orientation="vertical"> + + <ImageButton + android:id="@+id/rightButton" + android:layout_width="match_parent" + android:layout_height="@dimen/crop_icon_size" + android:scaleType="centerInside" + android:layout_marginTop="@dimen/crop_icon_margin_padding" + android:background="@android:color/transparent" /> + + <TextView + android:id="@+id/rightText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:clickable="true" + android:background="@android:color/transparent" + android:layout_marginTop="@dimen/crop_text_margin_padding" + android:textColor="#ffffff" + android:textSize="12sp" /> + </LinearLayout> + + </LinearLayout> + + <FrameLayout + android:id="@+id/bottom_panel" + android:layout_width="match_parent" + android:layout_height="@dimen/category_actionbar_panel_height" + android:background="@color/edit_actionbar_background" + android:visibility="gone"> + + <ImageButton + android:id="@+id/cancel" + android:layout_width="@dimen/category_actionbar_panel_height" + android:layout_height="@dimen/category_actionbar_panel_height" + android:background="@color/edit_actionbar_background" + android:src="@drawable/cancel" /> + + <TextView + android:id="@+id/editor_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="16sp" + android:textColor="#fff" + android:layout_gravity="center"/> + + <ImageButton + android:id="@+id/done" + android:layout_width="@dimen/category_actionbar_panel_height" + android:layout_height="@dimen/category_actionbar_panel_height" + android:background="@color/edit_actionbar_background" + android:layout_gravity="right" + android:src="@drawable/done" /> + </FrameLayout> + +</LinearLayout> diff --git a/res/layout/filtershow_category_panel.xml b/res/layout/filtershow_category_panel.xml new file mode 100644 index 000000000..74ead6376 --- /dev/null +++ b/res/layout/filtershow_category_panel.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="80dp" + android:background="@color/edit_actionbar_background" > + + <ImageButton + android:id="@+id/fxButton" + android:layout_width="@dimen/thumbnail_size" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@drawable/filtershow_button_background" + android:scaleType="centerInside" + android:src="@drawable/ic_photoeditor_effects" /> + + <ImageButton + android:id="@+id/borderButton" + android:layout_width="@dimen/thumbnail_size" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@drawable/filtershow_button_background" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/ic_photoeditor_border" /> + + <ImageButton + android:id="@+id/geometryButton" + android:layout_width="@dimen/thumbnail_size" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@drawable/filtershow_button_background" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/ic_photoeditor_fix" /> + + <ImageButton + android:id="@+id/colorsButton" + android:layout_width="@dimen/thumbnail_size" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@drawable/filtershow_button_background" + android:padding="2dip" + android:scaleType="centerInside" + android:src="@drawable/ic_photoeditor_color" /> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_category_panel_new.xml b/res/layout/filtershow_category_panel_new.xml new file mode 100644 index 000000000..58d45272e --- /dev/null +++ b/res/layout/filtershow_category_panel_new.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@android:color/transparent"> + + <HorizontalScrollView + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:color/transparent" + android:scrollbars="none" > + + <com.android.gallery3d.filtershow.category.CategoryTrack + android:id="@+id/listItems" + android:layout_width="match_parent" + android:layout_height="@dimen/category_panel_height" + android:background="@android:color/transparent" + custom:iconSize="@dimen/category_panel_icon_size" + android:divider="@android:color/transparent" + android:dividerPadding="8dip" + /> + + </HorizontalScrollView> + + <com.android.gallery3d.filtershow.category.IconView + android:id="@+id/addButton" + android:layout_width="@dimen/category_panel_height" + android:layout_height="@dimen/category_panel_height" + android:src="@drawable/filtershow_add"/> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_color_gird.xml b/res/layout/filtershow_color_gird.xml new file mode 100644 index 000000000..2dbbc5f05 --- /dev/null +++ b/res/layout/filtershow_color_gird.xml @@ -0,0 +1,203 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <TextView + android:id="@+id/textView1" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <TableLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" > + + <TableRow + android:id="@+id/tableRow1" + android:layout_width="match_parent" + android:layout_height="wrap_content" > + + <Button + android:id="@+id/cp_grid_button01" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button2" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button03" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button04" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button05" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + </TableRow> + + <TableRow + android:id="@+id/tableRow2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" > + + <Button + android:id="@+id/Button06" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button07" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button08" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button09" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button10" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + </TableRow> + + <TableRow + android:id="@+id/tableRow3" + android:layout_width="wrap_content" + android:layout_height="wrap_content" > + + <Button + android:id="@+id/Button11" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button12" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button13" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button14" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button15" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + </TableRow> + + <TableRow + android:id="@+id/tableRow4" + android:layout_width="wrap_content" + android:layout_height="wrap_content" > + + <Button + android:id="@+id/Button16" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button17" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button18" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button19" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/button20" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@drawable/filtershow_color_picker_circle" /> + </TableRow> + </TableLayout> + + <Button + android:id="@+id/filtershow_cp_custom" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/color_pick_select" /> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_color_picker.xml b/res/layout/filtershow_color_picker.xml new file mode 100644 index 000000000..482c4636f --- /dev/null +++ b/res/layout/filtershow_color_picker.xml @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/albumset_background"> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:id="@+id/RelativeLayout1" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/albumset_background"> + + <com.android.gallery3d.filtershow.colorpicker.ColorCompareView + android:id="@+id/btnSelect" + android:layout_width="match_parent" + android:layout_height="32dp" + android:layout_marginStart="20dp" + android:layout_marginEnd="20dp" + android:layout_marginTop="20dp" + android:layout_marginBottom="0dp" + /> + <com.android.gallery3d.filtershow.colorpicker.ColorSVRectView + android:id="@+id/colorRectView" + android:layout_width="match_parent" + android:layout_height="256dp" + android:layout_marginTop="0dp" + android:layout_marginEnd="1dp"/> + + <com.android.gallery3d.filtershow.colorpicker.ColorHueView + android:id="@+id/ColorHueView" + android:layout_width="match_parent" + android:layout_marginTop="0dp" + android:layout_height="32dp" /> + + <com.android.gallery3d.filtershow.colorpicker.ColorOpacityView + android:id="@+id/colorOpacityView" + android:layout_width="match_parent" + android:layout_marginTop="24dp" + android:layout_height="32dp" /> + + <LinearLayout android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="4dp"> + <ImageButton + android:id="@+id/cancelColorPick" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="left|center_vertical" + android:background="@android:color/transparent" + android:layout_weight=".1" + android:gravity="center" + android:src="@drawable/cancel2" + android:textSize="18dip"/> + + <ImageView + android:layout_width="2dp" + android:layout_height="fill_parent" + android:src="@drawable/filtershow_vertical_bar"/> + <ImageButton + android:id="@+id/applyColorPick" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="right|center_vertical" + android:layout_weight=".1" + android:background="@android:color/transparent" + android:gravity="center" + android:src="@drawable/done2" + android:textSize="18dip"/> + </LinearLayout> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_control_action_slider.xml b/res/layout/filtershow_control_action_slider.xml new file mode 100644 index 000000000..01d5e126e --- /dev/null +++ b/res/layout/filtershow_control_action_slider.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res/com.example.imagefilterharness" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:gravity="center" > + + <ImageButton + android:id="@+id/leftActionButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="start|center_vertical" + android:scaleType="centerInside" + android:layout_weight="0" + android:background="@drawable/filtershow_button_background" + android:src="@drawable/addspot" + android:paddingBottom="8dp" + android:paddingStart="14dp" /> + + <SeekBar + android:id="@+id/controlValueSeekBar" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_weight="1" + style="@style/FilterShowSlider" /> + + <ImageButton + android:id="@+id/rightActionButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="end|center_vertical" + android:scaleType="centerInside" + android:layout_weight="0" + android:background="@drawable/filtershow_button_background" + android:src="@drawable/delete" + android:paddingBottom="8dp" + android:paddingEnd="14dp" /> + +</LinearLayout> + diff --git a/res/layout/filtershow_control_color_chooser.xml b/res/layout/filtershow_control_color_chooser.xml new file mode 100644 index 000000000..18ac83d10 --- /dev/null +++ b/res/layout/filtershow_control_color_chooser.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res/com.example.imagefilterharness" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical|center_horizontal" + android:orientation="horizontal" > + + <LinearLayout + android:id="@+id/listColors" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="16dp" + android:orientation="horizontal" > + + <Button + android:id="@+id/draw_color_button01" + android:layout_width="@dimen/color_button_width" + android:layout_height="@dimen/color_button_height" + android:layout_marginEnd="22dp" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/draw_color_button02" + android:layout_width="@dimen/color_button_width" + android:layout_height="@dimen/color_button_height" + android:layout_marginEnd="22dp" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/draw_color_button03" + android:layout_width="@dimen/color_button_width" + android:layout_height="@dimen/color_button_height" + android:layout_marginEnd="22dp" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/draw_color_button04" + android:layout_width="@dimen/color_button_width" + android:layout_height="@dimen/color_button_height" + android:layout_marginEnd="22dp" + android:background="@drawable/filtershow_color_picker_circle" /> + + <Button + android:id="@+id/draw_color_button05" + android:layout_width="@dimen/color_button_width" + android:layout_height="@dimen/color_button_height" + android:layout_marginEnd="22dp" + android:background="@drawable/filtershow_color_picker_circle" /> + </LinearLayout> + + <FrameLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:layout_marginRight="16dp" > + + <Button + android:id="@+id/draw_color_popupbutton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:background="@drawable/more2" /> + </FrameLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_control_style_chooser.xml b/res/layout/filtershow_control_style_chooser.xml new file mode 100644 index 000000000..d0004ffe2 --- /dev/null +++ b/res/layout/filtershow_control_style_chooser.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res/com.example.imagefilterharness" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + <HorizontalScrollView + android:id="@+id/scrollList" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:scrollbars="none" > + + <LinearLayout + android:id="@+id/listStyles" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:orientation="horizontal" > + </LinearLayout> + + </HorizontalScrollView> +</LinearLayout> + diff --git a/res/layout/filtershow_control_title_slider.xml b/res/layout/filtershow_control_title_slider.xml new file mode 100644 index 000000000..23a59785c --- /dev/null +++ b/res/layout/filtershow_control_title_slider.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:columnCount="2" + android:orientation="horizontal" > + + <TextView + android:id="@+id/controlName" + android:layout_gravity="start" + android:layout_marginStart="8dip" /> + + <TextView + android:id="@+id/controlValue" + android:layout_gravity="end" + android:layout_marginEnd="8dip" + android:textStyle="bold" /> + + <SeekBar + android:id="@+id/controlValueSeekBar" + android:layout_width="match_parent" + android:layout_column="0" + android:layout_columnSpan="2" + android:layout_gravity="fill_horizontal" + style="@style/FilterShowSlider" /> +</GridLayout> + diff --git a/res/layout/filtershow_cp_custom_title.xml b/res/layout/filtershow_cp_custom_title.xml new file mode 100644 index 000000000..5d7ed924b --- /dev/null +++ b/res/layout/filtershow_cp_custom_title.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/customTitle" + android:text="@string/color_pick_title" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:layout_marginStart="20dp" + android:layout_marginEnd="20dp" > +</TextView>
\ No newline at end of file diff --git a/res/layout/filtershow_crop_button.xml b/res/layout/filtershow_crop_button.xml new file mode 100644 index 000000000..b42d6b656 --- /dev/null +++ b/res/layout/filtershow_crop_button.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<com.android.gallery3d.filtershow.ui.FramedTextButton + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/cropUtilityButton" + android:layout_width="84dip" + android:layout_height="84dip" + android:layout_gravity="center_vertical|left" + android:background="@drawable/filtershow_button_background" + android:scaleType="centerInside" + android:visibility="gone" + android:text="@string/aspectNone_effect" />
\ No newline at end of file diff --git a/res/layout/filtershow_curves_button.xml b/res/layout/filtershow_curves_button.xml new file mode 100644 index 000000000..31e8aedca --- /dev/null +++ b/res/layout/filtershow_curves_button.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<com.android.gallery3d.filtershow.ui.FramedTextButton + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/curvesUtilityButton" + android:layout_width="84dip" + android:layout_height="84dip" + android:layout_gravity="center_vertical|left" + android:background="@drawable/filtershow_button_background" + android:scaleType="centerInside" + android:visibility="gone" + android:text="@string/curves_channel_rgb" /> diff --git a/res/layout/filtershow_default_editor.xml b/res/layout/filtershow_default_editor.xml new file mode 100644 index 000000000..b261ea35f --- /dev/null +++ b/res/layout/filtershow_default_editor.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:iconbutton="http://schemas.android.com/apk/res/com.android.gallery3d" + android:id="@+id/basicEditor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" > + + <com.android.gallery3d.filtershow.imageshow.ImageShow + android:id="@+id/imageShow" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </FrameLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_draw_button.xml b/res/layout/filtershow_draw_button.xml new file mode 100644 index 000000000..dba8100ff --- /dev/null +++ b/res/layout/filtershow_draw_button.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<com.android.gallery3d.filtershow.ui.FramedTextButton + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawUtilityButton" + android:layout_width="84dip" + android:layout_height="84dip" + android:layout_gravity="center_vertical|left" + android:background="@drawable/filtershow_button_background" + android:scaleType="centerInside" + android:visibility="gone" + android:text="@string/draw_style" /> diff --git a/res/layout/filtershow_draw_size.xml b/res/layout/filtershow_draw_size.xml new file mode 100644 index 000000000..068493eab --- /dev/null +++ b/res/layout/filtershow_draw_size.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:dividerPadding="20dp" + android:gravity="center_horizontal" + android:orientation="vertical" > + + <SeekBar + android:id="@+id/sizeSeekBar" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <Button + android:id="@+id/sizeAcceptButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/draw_size_accept" /> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_dualcamera_editor.xml b/res/layout/filtershow_dualcamera_editor.xml new file mode 100644 index 000000000..a845e25c9 --- /dev/null +++ b/res/layout/filtershow_dualcamera_editor.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015, The Linux Foundation. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:iconbutton="http://schemas.android.com/apk/res/com.android.gallery3d" + android:id="@+id/editorDualCam" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" > + + <com.android.gallery3d.filtershow.imageshow.ImageDualCamera + android:id="@+id/imageDualCamera" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + +</FrameLayout> diff --git a/res/layout/filtershow_editor_panel.xml b/res/layout/filtershow_editor_panel.xml new file mode 100644 index 000000000..39770c6e8 --- /dev/null +++ b/res/layout/filtershow_editor_panel.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/top" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:background="@color/bottom_panel_background_color" + android:visibility="visible" > + + <Button + android:id="@+id/toggle_state" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:background="@color/background_main_toolbar" + android:text="@string/imageState" + android:visibility="gone"/> + + <!-- <View --> + <!-- android:layout_width="match_parent" --> + <!-- android:layout_height="1dip" --> + <!-- android:background="@color/toolbar_separation_line" /> --> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <LinearLayout + android:id="@+id/controlArea" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_alignParentBottom="true" + android:orientation="horizontal" + android:gravity="center" + android:visibility="visible" > + +<!-- <TextView --> +<!-- android:id="@+id/tvFilterName" --> +<!-- android:layout_width="@dimen/swap_button_width" --> +<!-- android:layout_height="@dimen/swap_button_height" --> +<!-- android:text="@string/apply_effect" --> +<!-- android:layout_gravity="left" --> +<!-- android:textColor="#ffffff" --> +<!-- android:textSize="20sp" --> +<!-- android:layout_weight="1"/> --> + + <SeekBar + android:id="@+id/primarySeekBar" + style="@style/FilterShowSlider" + android:layout_width="@dimen/seekbar_width_filter" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical|center_horizontal" + android:layout_weight="1" + android:layout_marginLeft="54dp" + android:layout_marginRight="54dp" /> + </LinearLayout> + + <FrameLayout + android:id="@+id/state_panel_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="gone" /> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_export_dialog.xml b/res/layout/filtershow_export_dialog.xml new file mode 100644 index 000000000..3b41ddaa4 --- /dev/null +++ b/res/layout/filtershow_export_dialog.xml @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:divider="?android:dividerVertical" + android:showDividers="middle"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal|center_vertical" + android:layout_margin="7dp" + android:paddingStart="8dp" + android:textSize="16sp" + android:textColor="@color/albumset_label_background" + android:text="@string/select_output_settings"/> + + <GridLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:alignmentMode="alignBounds" + android:useDefaultMargins="true" + android:layout_marginTop="24dp" + android:columnOrderPreserved="false" + android:columnCount="5"> + + <TextView + android:text="@string/size" + android:layout_marginStart="8dp" + android:layout_gravity="start|center_vertical" + android:paddingStart="8dp" + android:textSize="16sp" + android:textColor="@color/albumlist_label_title"/> + + <EditText + android:id="@+id/editableWidth" + android:layout_gravity="right|center_vertical" + android:gravity="center" + android:layout_width="70dp" + android:inputType="number"/> + + <TextView + android:text="@string/x" + android:layout_gravity="center" + android:textColor="@color/albumlist_label_title"/> + + <EditText + android:id="@+id/editableHeight" + android:layout_gravity="left|center_vertical" + android:layout_width="70dp" + android:gravity="center" + android:inputType="number"/> + + <TextView + android:id="@+id/estimadedSize" + android:layout_marginEnd="8dp" + android:layout_gravity="end|center_vertical" + android:textSize="16sp" + android:textColor="@color/albumlist_label_title"/> + + <LinearLayout + android:layout_columnSpan="5" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView + android:text="@string/quality" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_margin="8dp" + android:textSize="16sp" + android:textColor="@color/albumlist_label_title" /> + + <SeekBar + android:id="@+id/qualitySeekBar" + android:layout_margin="8dp" + android:layout_gravity="center" + android:max="100" + android:progress="100" + android:layout_height="wrap_content" + android:layout_width="0dp" + android:layout_weight="1" + android:layout_columnSpan="3" + android:minWidth="250dp" /> + + <TextView + android:id="@+id/qualityTextView" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:textSize="16sp" + android:textColor="@color/albumlist_label_title" + android:layout_gravity="end|center_vertical" + /> + + </LinearLayout> + + + </GridLayout> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + style="?android:attr/buttonBarStyle" + android:gravity="right"> + + <Button + android:id="@+id/cancel" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:text="@string/cancel" + android:textSize="14sp" + android:layout_marginRight="8dp" + style="?android:attr/buttonBarButtonStyle" + android:textColor="#009688"/> + + <Button + android:id="@+id/done" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:textSize="14sp" + android:text="@string/done" + style="?android:attr/buttonBarButtonStyle" + android:textColor="#009688"/> + + </LinearLayout> + +</LinearLayout> diff --git a/res/layout/filtershow_grad_editor.xml b/res/layout/filtershow_grad_editor.xml new file mode 100644 index 000000000..6c4721e62 --- /dev/null +++ b/res/layout/filtershow_grad_editor.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/gradEditor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" > + + <com.android.gallery3d.filtershow.imageshow.ImageGrad + android:id="@+id/imageShow" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </FrameLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_history_operation_row.xml b/res/layout/filtershow_history_operation_row.xml new file mode 100644 index 000000000..25a0d26f6 --- /dev/null +++ b/res/layout/filtershow_history_operation_row.xml @@ -0,0 +1,47 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="120dip" + android:gravity="center_horizontal" + android:orientation="horizontal" + android:padding="0dip" + android:background="@color/background_main_toolbar"> + + <ImageView + android:id="@+id/preview" + android:layout_width="180dip" + android:layout_height="120dip" + android:scaleType="centerCrop" + android:cropToPadding="true" + android:visibility="visible" + /> + + <TextView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/rowTextView" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="bottom|right" + android:padding="10dip" + android:textSize="16dip" + android:textStyle="bold"> + </TextView> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_history_panel.xml b/res/layout/filtershow_history_panel.xml new file mode 100644 index 000000000..392e39cbe --- /dev/null +++ b/res/layout/filtershow_history_panel.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/historyPanel" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:layout_weight="1" + android:visibility="gone" > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:gravity="center" + android:padding="2dip" + android:text="@string/history" + android:textColor="@android:color/white" + android:textSize="24sp" + android:textStyle="bold" /> + + <ListView + android:id="@+id/operationsList" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:padding="10dip" + android:divider="@android:color/transparent" + android:dividerHeight="10dip" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <Button + android:id="@+id/resetOperationsButton" + style="@style/FilterShowHistoryButton" + android:gravity="center" + android:text="@string/reset" /> + + <Button + android:id="@+id/saveOperationsButton" + style="@style/FilterShowHistoryButton" + android:text="@string/save" + android:visibility="gone" /> + </LinearLayout> +</LinearLayout> diff --git a/res/layout/filtershow_hue.xml b/res/layout/filtershow_hue.xml new file mode 100644 index 000000000..48d955e40 --- /dev/null +++ b/res/layout/filtershow_hue.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/top" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:visibility="visible" > + + <com.android.gallery3d.filtershow.colorpicker.ColorHueView + android:id="@+id/hueView" + android:layout_width="match_parent" + android:layout_height="90dp" + android:layout_above="@+id/btnSelect" /> + +</LinearLayout> diff --git a/res/layout/filtershow_info_panel.xml b/res/layout/filtershow_info_panel.xml new file mode 100644 index 000000000..552fef2e9 --- /dev/null +++ b/res/layout/filtershow_info_panel.xml @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:minWidth="340dp" + android:layout_height="match_parent" + android:orientation="vertical" + android:background="@color/albumset_background" + android:padding="24dp"> + + <ScrollView + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:weightSum="1" + > + + <TextView + android:id="@+id/imageName" + style="?android:textAppearanceSmall" + android:textStyle="bold" + android:textSize="16sp" + android:textColor="@color/albumlist_label_title" + android:layout_gravity="start" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:gravity="start" + android:ellipsize="end" + android:layout_weight="0.65" + android:maxLines="1"/> + + <TextView + android:id="@+id/imageSize" + style="?android:textAppearanceSmall" + android:textAllCaps="true" + android:textSize="16sp" + android:textColor="@color/albumlist_label_title" + android:textStyle="bold" + android:layout_gravity="end" + android:layout_weight="0.35" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:gravity="end"/> + + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + > + + <ImageView + android:id="@+id/imageThumbnail" + android:layout_weight="0.3" + android:layout_width="0dp" + android:layout_height="196dp" + android:scaleType="centerCrop" + android:layout_marginEnd="16dp" + android:background="@null" + + /> + + <com.android.gallery3d.filtershow.info.HistogramView + android:id="@+id/histogramView" + android:layout_weight="0.7" + android:layout_width="0dp" + android:layout_height="196dp" + android:layout_margin="0dp"/> + </LinearLayout> + + <TextView + style="?android:textAppearanceLarge" + android:id="@+id/exifLabel" + android:textStyle="bold" + android:textSize="20sp" + android:textColor="@color/filtershow_info_text" + android:layout_marginTop="24dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="start" + android:text="@string/filtershow_show_info_panel_exif"/> + + <TextView + android:id="@+id/exifData" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="20dp" + android:textSize="16sp" + android:textColor="@color/albumlist_label_title" + android:layout_gravity="start" + android:layout_marginBottom="32dp" + /> + </LinearLayout> + </ScrollView> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_main_panel.xml b/res/layout/filtershow_main_panel.xml new file mode 100644 index 000000000..5b0510a1c --- /dev/null +++ b/res/layout/filtershow_main_panel.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. + Not a Contribution + + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:animateLayoutChanges="false" + android:baselineAligned="false" + android:orientation="vertical" + android:visibility="visible" + android:background="@android:color/transparent" > + + <FrameLayout android:id="@+id/state_panel_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="visible" + android:layout_gravity="top" + android:layout_weight="1" /> + + <FrameLayout android:id="@+id/category_panel_container" + android:layout_width="match_parent" + android:visibility="visible" + android:layout_height="0dip" + android:layout_gravity="center" + android:paddingRight="5dp" + android:paddingLeft="5dp" + android:background="@color/crop_panel_background_color" + android:layout_weight="1"/> + + <FrameLayout + android:id="@+id/bottom_panel_container" + android:layout_width="match_parent" + android:layout_height="@dimen/bottom_panel_height" + android:visibility="visible" + android:layout_gravity="center"/> +</LinearLayout> diff --git a/res/layout/filtershow_opacity.xml b/res/layout/filtershow_opacity.xml new file mode 100644 index 000000000..8bdc429a9 --- /dev/null +++ b/res/layout/filtershow_opacity.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/top" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:visibility="visible" > + + <com.android.gallery3d.filtershow.colorpicker.ColorOpacityView + android:id="@+id/opacityView" + android:layout_width="match_parent" + android:layout_height="90dp" + android:layout_above="@+id/btnSelect" /> + +</LinearLayout> diff --git a/res/layout/filtershow_presets_management_dialog.xml b/res/layout/filtershow_presets_management_dialog.xml new file mode 100644 index 000000000..68754e2ba --- /dev/null +++ b/res/layout/filtershow_presets_management_dialog.xml @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:divider="?android:dividerVertical" + android:showDividers="middle"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_margin="8dip"> + + <TextView + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:text="@string/filtershow_preset_name" + android:layout_margin="8dp" + /> + + <EditText + android:id="@+id/editView" + android:gravity="center" + android:textSize="18sp" + android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:focusable="true" + android:imeOptions="actionDone" + android:singleLine="true"/> + </LinearLayout> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + style="?android:attr/buttonBarStyle"> + + <Button + android:id="@+id/cancel" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:text="@string/cancel" + style="?android:attr/buttonBarButtonStyle" /> + + <Button + android:id="@+id/ok" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:text="@string/ok" + style="?android:attr/buttonBarButtonStyle"/> + + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_presets_management_row.xml b/res/layout/filtershow_presets_management_row.xml new file mode 100644 index 000000000..bd3e47928 --- /dev/null +++ b/res/layout/filtershow_presets_management_row.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + android:id="@+id/imageView" + android:layout_weight=".1" + android:layout_width="80dip" + android:layout_height="80dip" + android:scaleType="fitCenter" + android:layout_gravity="left|center_vertical"/> + + <EditText + android:id="@+id/editView" + android:gravity="center" + android:textSize="18sp" + android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:focusable="true" + android:imeOptions="actionDone" + android:singleLine="true"/> + + <ImageButton + android:id="@+id/deleteUserPreset" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_gravity="right|center_vertical" + android:background="@android:color/transparent" + android:layout_weight=".1" + android:gravity="center" + android:src="@drawable/ic_menu_trash_holo_light" + android:visibility="gone"/> +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_saturation.xml b/res/layout/filtershow_saturation.xml new file mode 100644 index 000000000..79a00c18b --- /dev/null +++ b/res/layout/filtershow_saturation.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/top" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:visibility="visible" > + + <com.android.gallery3d.filtershow.colorpicker.ColorSaturationView + android:id="@+id/saturationView" + android:layout_width="match_parent" + android:layout_height="90dp" + android:layout_above="@+id/btnSelect" /> + +</LinearLayout> diff --git a/res/layout/filtershow_seekbar.xml b/res/layout/filtershow_seekbar.xml new file mode 100644 index 000000000..216b72a9c --- /dev/null +++ b/res/layout/filtershow_seekbar.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/top" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="visible" > + + <ImageButton + android:id="@+id/slider_cancel" + android:layout_width="60dp" + android:layout_height="60dp" + android:src="@drawable/cancel" + android:layout_gravity="center_vertical" + android:background="@android:color/transparent" /> + + <SeekBar + android:id="@+id/primarySeekBar" + style="@style/FilterShowSlider" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_vertical|center_horizontal" + android:layout_toRightOf="@+id/tvFilterName" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" + android:layout_weight="1" /> + + <ImageButton + android:id="@+id/slider_save" + android:layout_width="60dp" + android:layout_height="60dp" + android:src="@drawable/done" + android:layout_gravity="center_vertical" + android:background="@android:color/transparent" /> + +</LinearLayout> diff --git a/res/layout/filtershow_splashscreen.xml b/res/layout/filtershow_splashscreen.xml new file mode 100644 index 000000000..8d7fe3eb3 --- /dev/null +++ b/res/layout/filtershow_splashscreen.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:gravity="center_horizontal|center_vertical" + android:padding="10dip"> + +<ProgressBar android:id="@+id/progress_bar" + android:layout_alignParentEnd="true" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:visibility="visible" + android:paddingBottom="144dp" /> + +</LinearLayout> diff --git a/res/layout/filtershow_state_panel.xml b/res/layout/filtershow_state_panel.xml new file mode 100644 index 000000000..1f9f970b9 --- /dev/null +++ b/res/layout/filtershow_state_panel.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/imageStatePanel" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_weight="1" + android:visibility="visible" > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@android:color/transparent" + android:gravity="center" + android:padding="2dip" + android:text="@string/imageState" + android:textColor="@android:color/white" + android:textSize="24sp" + android:textStyle="bold" /> + + <ListView + android:id="@+id/imageStateList" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" > + </ListView> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_state_panel_new.xml b/res/layout/filtershow_state_panel_new.xml new file mode 100644 index 000000000..4ea7c8ae7 --- /dev/null +++ b/res/layout/filtershow_state_panel_new.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/edit_actionbar_background"> + + <View + android:background="@color/toolbar_separation_line" + android:layout_height="1dip" + android:layout_width="match_parent"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <HorizontalScrollView + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:scrollbars="none"> + + <com.android.gallery3d.filtershow.state.StatePanelTrack + android:id="@+id/listStates" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dip" + custom:elemEndSize="128dip" + custom:elemSize="128dip" + android:layout_margin="0dip" + android:animateLayoutChanges="true" /> + + </HorizontalScrollView> + + <ImageButton + android:id="@+id/toggleVersionsPanel" + android:layout_width="wrap_content" + android:layout_height="48dip" + android:src="@drawable/filtershow_versions_compare" + style="?android:attr/borderlessButtonStyle" + android:layout_gravity="center"/> + + </LinearLayout> + + <View + android:background="@color/toolbar_separation_line" + android:layout_height="1dip" + android:layout_width="match_parent"/> + +</LinearLayout> diff --git a/res/layout/filtershow_tiny_planet_editor.xml b/res/layout/filtershow_tiny_planet_editor.xml new file mode 100644 index 000000000..fd89f9966 --- /dev/null +++ b/res/layout/filtershow_tiny_planet_editor.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:iconbutton="http://schemas.android.com/apk/res/com.android.gallery3d" + android:id="@+id/tinyPlanetEditor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" > + + <com.android.gallery3d.filtershow.imageshow.ImageTinyPlanet + android:id="@+id/imageTinyPlanet" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </FrameLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_vignette_editor.xml b/res/layout/filtershow_vignette_editor.xml new file mode 100644 index 000000000..9c9b4cb59 --- /dev/null +++ b/res/layout/filtershow_vignette_editor.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:iconbutton="http://schemas.android.com/apk/res/com.android.gallery3d" + android:id="@+id/vignetteEditor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" > + + <com.android.gallery3d.filtershow.imageshow.ImageVignette + android:id="@+id/imageVignette" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </FrameLayout>
\ No newline at end of file diff --git a/res/layout/filtershow_zoom_editor.xml b/res/layout/filtershow_zoom_editor.xml new file mode 100644 index 000000000..9813a283d --- /dev/null +++ b/res/layout/filtershow_zoom_editor.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2013 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:iconbutton="http://schemas.android.com/apk/res/com.android.gallery3d" + android:id="@+id/basicEditor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" > + + <com.android.gallery3d.filtershow.imageshow.ImageShow + android:id="@+id/imageZoom" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </FrameLayout> diff --git a/res/layout/gallery_main.xml b/res/layout/gallery_main.xml new file mode 100644 index 000000000..8aa2c07eb --- /dev/null +++ b/res/layout/gallery_main.xml @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015, The Linux Foundation. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawerLayout" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <!-- MAIN CONTENT --> + + <RelativeLayout + android:id="@+id/gallery_root" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <include layout="@layout/gl_root_group" /> + </RelativeLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <include + android:id="@+id/toolbar" + layout="@layout/toolbar" /> + </LinearLayout> + + <RelativeLayout + android:id="@+id/drawerPane" + android:layout_width="270dp" + android:layout_height="match_parent" + android:layout_gravity="start" + android:background="#fafafa" + android:clickable="true" > + + <!-- Header --> + + <RelativeLayout + android:id="@+id/header" + android:layout_width="match_parent" + android:layout_height="150dp" + android:background="@drawable/drawer_bg" > + + <TextView + android:id="@+id/appName" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_marginBottom="16dp" + android:layout_marginStart="16dp" + android:fontFamily="sans-serif" + android:text="@string/navigation_drawer_title" + android:textColor="#ffffff" + android:textSize="24sp" /> + </RelativeLayout> + + <ListView + android:id="@+id/navList" + android:layout_width="270dp" + android:layout_height="match_parent" + android:layout_below="@id/header" + android:layout_marginTop="4dp" + android:divider="@android:color/transparent" /> + </RelativeLayout> + +</android.support.v4.widget.DrawerLayout>
\ No newline at end of file diff --git a/res/layout/gl_root_group.xml b/res/layout/gl_root_group.xml new file mode 100644 index 000000000..de0f66afe --- /dev/null +++ b/res/layout/gl_root_group.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. +--> + +<merge xmlns:android="http://schemas.android.com/apk/res/android"> + <com.android.gallery3d.ui.GLRootView + android:id="@+id/gl_root_view" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + <View android:id="@+id/gl_root_cover" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="#fafafa" + /> +</merge> diff --git a/res/layout/in_line_setting_check_box.xml b/res/layout/in_line_setting_check_box.xml new file mode 100644 index 000000000..a4d9bba21 --- /dev/null +++ b/res/layout/in_line_setting_check_box.xml @@ -0,0 +1,31 @@ +<?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. +--> + +<com.android.camera.ui.InLineSettingCheckBox xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/SettingRow"> + <TextView android:id="@+id/title" + style="@style/SettingItemTitle" /> + + <!-- The Switch widget always aligns to the right, so we have to wrap it in a frame layout. --> + <FrameLayout + android:layout_width="@dimen/setting_item_text_width" + android:layout_height="match_parent"> + <CheckBox android:id="@+id/setting_check_box" + android:layout_gravity="center" + android:layout_width="wrap_content" + android:layout_height="match_parent" /> + </FrameLayout> +</com.android.camera.ui.InLineSettingCheckBox> diff --git a/res/layout/in_line_setting_menu.xml b/res/layout/in_line_setting_menu.xml new file mode 100644 index 000000000..f45f10ff7 --- /dev/null +++ b/res/layout/in_line_setting_menu.xml @@ -0,0 +1,27 @@ +<?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. +--> + +<com.android.camera.ui.InLineSettingMenu xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/SettingRow" + android:background="@drawable/bg_pressed_exit_fading"> + <TextView android:id="@+id/title" + style="@style/SettingItemTitle" /> + + <TextView android:id="@+id/current_setting" + style="@style/SettingItemText" /> + +</com.android.camera.ui.InLineSettingMenu> + diff --git a/res/layout/ingest_activity_item_list.xml b/res/layout/ingest_activity_item_list.xml new file mode 100644 index 000000000..b91f0ce74 --- /dev/null +++ b/res/layout/ingest_activity_item_list.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<merge xmlns:android="http://schemas.android.com/apk/res/android"> + <com.android.gallery3d.ingest.ui.IngestGridView + android:id="@+id/ingest_gridview" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:columnWidth="120dip" + android:numColumns="auto_fit" + android:fastScrollEnabled="true" + android:background="@android:color/background_dark" + android:choiceMode="multipleChoiceModal" + android:stretchMode="columnWidth" /> + + <android.support.v4.view.ViewPager + android:id="@+id/ingest_view_pager" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/background_dark" + android:visibility="invisible" /> + + <LinearLayout + android:id="@+id/ingest_warning_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_margin="20dip" + android:gravity="center" + android:orientation="horizontal" + android:visibility="invisible" > + + <ImageView + android:id="@+id/ingest_warning_view_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:src="@android:drawable/ic_dialog_alert" /> + + <TextView + android:id="@+id/ingest_warning_view_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="10dip" + android:layout_marginLeft="10dip" + android:textAppearance="?android:attr/textAppearanceSmall" /> + </LinearLayout> +</merge> + diff --git a/res/layout/ingest_date_tile.xml b/res/layout/ingest_date_tile.xml new file mode 100644 index 000000000..b04221361 --- /dev/null +++ b/res/layout/ingest_date_tile.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<com.android.gallery3d.ingest.ui.DateTileView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/black" > + <GridLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" > + <TextView + android:id="@+id/date_tile_month" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_column="0" + android:layout_row="0" + android:layout_gravity="bottom|end" + android:layout_marginTop="7sp" + android:includeFontPadding="false" + android:textSize="16sp" + android:textAllCaps="true" + android:fontFamily="sans-serif" + android:textColor="@color/ingest_date_tile_text" /> + <TextView + android:id="@+id/date_tile_year" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_column="0" + android:layout_row="1" + android:layout_gravity="top|end" + android:includeFontPadding="false" + android:textSize="13sp" + android:fontFamily="sans-serif-light" + android:textColor="@color/ingest_date_tile_text" /> + <TextView + android:id="@+id/date_tile_day" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_column="1" + android:layout_row="0" + android:layout_rowSpan="2" + android:layout_gravity="top|start" + android:layout_marginStart="5sp" + android:layout_marginLeft="5sp" + android:includeFontPadding="false" + android:textSize="44sp" + android:textStyle="bold" + android:fontFamily="sans-serif" + android:textColor="@color/ingest_date_tile_text" /> + </GridLayout> +</com.android.gallery3d.ingest.ui.DateTileView> diff --git a/res/layout/ingest_fullsize.xml b/res/layout/ingest_fullsize.xml new file mode 100644 index 000000000..91a3fcf20 --- /dev/null +++ b/res/layout/ingest_fullsize.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<com.android.gallery3d.ingest.ui.MtpFullscreenView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ProgressBar + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_centerVertical="true" + android:progress="1" + android:indeterminate="true" + android:indeterminateOnly="true" /> + + <com.android.gallery3d.ingest.ui.MtpImageView + android:id="@+id/ingest_fullsize_image" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:scaleType="matrix" /> + + <CheckBox + android:id="@+id/ingest_fullsize_image_checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:text="@string/ingest_import" /> + +</com.android.gallery3d.ingest.ui.MtpFullscreenView> diff --git a/res/layout/ingest_thumbnail.xml b/res/layout/ingest_thumbnail.xml new file mode 100644 index 000000000..b36ec93a8 --- /dev/null +++ b/res/layout/ingest_thumbnail.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<com.android.gallery3d.ingest.ui.MtpThumbnailTileView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="centerCrop" /> diff --git a/res/layout/knob.xml b/res/layout/knob.xml new file mode 100644 index 000000000..d504774e7 --- /dev/null +++ b/res/layout/knob.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (c) 2013, The Linux Foundation. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <ImageView + android:id="@+id/knob_foreground" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + <ImageView + android:id="@+id/knob_toggle_on" + android:layout_gravity="center_horizontal|center_vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/knob_toggle_on" + android:visibility="gone" /> + <ImageView + android:id="@+id/knob_toggle_off" + android:layout_gravity="center_horizontal|center_vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/knob_toggle_off" + android:visibility="gone" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_horizontal" + android:orientation="vertical" + android:gravity="center_horizontal"> + + <TextView + android:id="@+id/knob_value" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" /> + <TextView + android:id="@+id/knob_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center" + android:ellipsize="marquee" + android:visibility="gone" /> + </LinearLayout> + +</FrameLayout> diff --git a/res/layout/list_pref_setting_popup.xml b/res/layout/list_pref_setting_popup.xml new file mode 100644 index 000000000..5bfaa52e6 --- /dev/null +++ b/res/layout/list_pref_setting_popup.xml @@ -0,0 +1,41 @@ +<?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. +--> +<com.android.camera.ui.ListPrefSettingPopup xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/SettingPopupWindow"> + + <LinearLayout android:orientation="vertical" + android:background="@color/popup_background" + android:layout_height="wrap_content" + android:layout_width="@dimen/setting_popup_window_width"> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="@dimen/popup_title_frame_min_height"> + <TextView android:id="@+id/title" + style="@style/PopupTitleText" /> + </FrameLayout> + + <View style="@style/PopupTitleSeparator" /> + + <FrameLayout android:layout_width="match_parent" + android:layout_height="wrap_content"> + <ListView android:id="@+id/settingList" + style="@style/SettingItemList" + android:choiceMode="singleChoice" /> + </FrameLayout> + </LinearLayout> +</com.android.camera.ui.ListPrefSettingPopup> diff --git a/res/layout/main.xml b/res/layout/main.xml new file mode 100644 index 000000000..e26e0fc6b --- /dev/null +++ b/res/layout/main.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/gallery_root" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <include layout="@layout/gl_root_group"/> + <FrameLayout android:id="@+id/header" + android:visibility="gone" + android:layout_alignParentTop="true" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> + <FrameLayout android:id="@+id/footer" + android:visibility="gone" + android:layout_alignParentBottom="true" + android:layout_alignParentStart="true" + android:layout_alignParentEnd="true" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> +</RelativeLayout> diff --git a/res/layout/manage_offline_bar.xml b/res/layout/manage_offline_bar.xml new file mode 100644 index 000000000..6996180f0 --- /dev/null +++ b/res/layout/manage_offline_bar.xml @@ -0,0 +1,61 @@ +<?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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="40dp"> + <TextView android:id="@+id/status" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_centerHorizontal="true" /> + <ProgressBar android:id="@+id/progress" + style="?android:attr/progressBarStyleHorizontal" + android:max="100" + android:progress="30" + android:secondaryProgress="65" + android:layout_marginTop="2dp" + android:layout_marginBottom="2dp" + android:layout_width="130dp" + android:layout_height="4dp" + android:layout_below="@id/status" + android:layout_centerHorizontal="true"/> + </RelativeLayout> + <RelativeLayout android:layout_width="fill_parent" + android:layout_height="@dimen/manage_cache_bottom_height" + android:paddingStart="16dp" + android:paddingEnd="16dp" + android:background="#1f1f1f"> + <TextView android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/make_available_offline" + android:textSize="14sp" + android:layout_alignParentStart="true" + android:layout_centerVertical="true" + android:gravity="center_vertical" + android:drawableStart="@drawable/ic_menu_make_offline" + android:drawablePadding="3dp"/> + <Button android:id="@+id/done" + android:layout_width="74dp" + android:layout_height="match_parent" + android:text="@string/done" + android:textSize="14sp" + android:layout_alignParentEnd="true"/> + </RelativeLayout> +</LinearLayout> diff --git a/res/layout/menu_indicators.xml b/res/layout/menu_indicators.xml new file mode 100644 index 000000000..037700349 --- /dev/null +++ b/res/layout/menu_indicators.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/on_screen_indicators" + android:layout_width="64dip" + android:layout_height="64dip" > + + <ImageView + android:id="@+id/menu_scenemode_indicator" + style="@style/MenuIndicator" + android:layout_gravity="left|top" + android:src="@drawable/ic_indicator_sce_off" /> + + <ImageView + android:id="@+id/menu_timer_indicator" + style="@style/MenuIndicator" + android:layout_gravity="center_horizontal|top" + android:src="@drawable/ic_indicator_timer_off" /> + + <ImageView + android:id="@+id/menu_flash_indicator" + style="@style/MenuIndicator" + android:layout_gravity="right|top" + android:src="@drawable/ic_indicator_flash_off" /> + + <ImageView + android:id="@+id/menu_exposure_indicator" + style="@style/MenuIndicator" + android:layout_gravity="left|bottom" + android:src="@drawable/ic_indicator_ev_0" /> + + <ImageView + android:id="@+id/menu_location_indicator" + style="@style/MenuIndicator" + android:layout_gravity="center_horizontal|bottom" + android:src="@drawable/ic_indicator_loc_on" /> + + <ImageView + android:id="@+id/menu_wb_indicator" + style="@style/MenuIndicator" + android:layout_gravity="right|bottom" + android:src="@drawable/ic_indicator_wb_off" /> + +</FrameLayout> diff --git a/res/layout/menu_indicators_keyguard.xml b/res/layout/menu_indicators_keyguard.xml new file mode 100644 index 000000000..b8f36cf78 --- /dev/null +++ b/res/layout/menu_indicators_keyguard.xml @@ -0,0 +1,57 @@ +<?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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/on_screen_indicators" + android:layout_width="64dip" + android:layout_height="64dip" > + + <ImageView + android:id="@+id/menu_scenemode_indicator" + style="@style/MenuIndicator" + android:layout_gravity="start|top" + android:src="@drawable/ic_indicator_sce_off" /> + + <ImageView + android:id="@+id/menu_timer_indicator" + style="@style/MenuIndicator" + android:layout_gravity="center_horizontal|top" + android:src="@drawable/ic_indicator_timer_off" /> + + <ImageView + android:id="@+id/menu_flash_indicator" + style="@style/MenuIndicator" + android:layout_gravity="end|top" + android:src="@drawable/ic_indicator_flash_auto" /> + + <ImageView + android:id="@+id/menu_exposure_indicator" + style="@style/MenuIndicator" + android:layout_gravity="start|bottom" + android:src="@drawable/ic_indicator_ev_0" /> + + <ImageView + android:id="@+id/menu_location_indicator" + style="@style/MenuIndicator" + android:layout_gravity="center_horizontal|bottom" + android:src="@drawable/ic_indicator_loc_on" /> + + <ImageView + android:id="@+id/menu_wb_indicator" + style="@style/MenuIndicator" + android:layout_gravity="end|bottom" + android:src="@drawable/ic_indicator_wb_off" /> + +</FrameLayout>
\ No newline at end of file diff --git a/res/layout/more_setting_popup.xml b/res/layout/more_setting_popup.xml new file mode 100644 index 000000000..3ccde856c --- /dev/null +++ b/res/layout/more_setting_popup.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (c) 2010, 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. +--> +<com.android.camera.ui.MoreSettingPopup xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/SettingPopupWindow"> + + <FrameLayout + android:background="@color/popup_background" + android:layout_width="@dimen/big_setting_popup_window_width" + android:layout_height="wrap_content"> + <ListView android:id="@+id/settingList" + style="@style/SettingItemList" /> + </FrameLayout> +</com.android.camera.ui.MoreSettingPopup> diff --git a/res/layout/movie_view.xml b/res/layout/movie_view.xml new file mode 100644 index 000000000..de9584bb4 --- /dev/null +++ b/res/layout/movie_view.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 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/movie_view_root" + android:background="@android:color/black" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <org.codeaurora.gallery3d.video.CodeauroraVideoView android:id="@+id/surface_view" + android:visibility="invisible" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_centerInParent="true" /> + + <ImageView + android:id="@+id/img_live" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_alignParentRight="true" + android:src="@drawable/ic_media_live"/> +</RelativeLayout> diff --git a/res/layout/multigrid_content.xml b/res/layout/multigrid_content.xml new file mode 100644 index 000000000..b1cb145a2 --- /dev/null +++ b/res/layout/multigrid_content.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <LinearLayout android:id="@+id/progressContainer" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" + android:gravity="center"> + + <ProgressBar style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + <TextView android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="@string/loading" + android:paddingTop="4dip" + android:singleLine="true" /> + + </LinearLayout> + + <FrameLayout android:id="@+id/gridContainer" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <GridView android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:choiceMode="multipleChoiceModal" + android:numColumns="auto_fit" + android:stretchMode="columnWidth" + android:drawSelectorOnTop="true" /> + <TextView android:id="@android:id/empty" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:textAppearance="?android:attr/textAppearanceMedium" /> + </FrameLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/res/layout/photo_frame.xml b/res/layout/photo_frame.xml new file mode 100755 index 000000000..ede942f6b --- /dev/null +++ b/res/layout/photo_frame.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingTop="4dp" + android:paddingBottom="23dp" + android:paddingStart="12dp" + android:paddingEnd="12dp"> + + <RelativeLayout + android:id="@+id/appwidget_empty_photo" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone"> + + <FrameLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:background="@drawable/appwidget_photo_border"> + + <TextView + android:id="@id/appwidget_photo_item" + android:layout_width="@dimen/stack_photo_width" + android:layout_height="@dimen/stack_photo_height" + android:gravity="center" + android:text="@string/appwidget_empty_text" + android:textColor="@android:color/black" /> + </FrameLayout> + </RelativeLayout> + <ImageView android:id="@+id/photo" + android:layout_gravity="center" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:adjustViewBounds="true" + android:scaleType="fitCenter" + android:cropToPadding="true" + android:background="@drawable/border_photo_frame_widget"/> +</FrameLayout> diff --git a/res/layout/photo_module.xml b/res/layout/photo_module.xml new file mode 100644 index 000000000..390863a71 --- /dev/null +++ b/res/layout/photo_module.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> + +<!-- This layout is shared by phone and tablet in both landscape and portrait + orientation. The purpose of having this layout is to eventually not manually + recreate views when the orientation changes, by migrating the views that do not + need to be recreated in onConfigurationChanged from old photo_module to this + layout. --> + +<merge xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center"> + <TextureView + android:id="@+id/preview_content" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + <View + android:id="@+id/flash_overlay" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/white" + android:visibility="gone" + android:alpha="0" /> + <ViewStub android:id="@+id/face_view_stub" + android:inflatedId="@+id/face_view" + android:layout="@layout/face_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone"/> + <com.android.camera.ui.RenderOverlay + android:id="@+id/render_overlay" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + <include layout="@layout/camera_controls" + android:layout_gravity="center" + style="@style/CameraControls"/> +</merge>
\ No newline at end of file diff --git a/res/layout/photo_set_item.xml b/res/layout/photo_set_item.xml new file mode 100644 index 000000000..0f740fad9 --- /dev/null +++ b/res/layout/photo_set_item.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?android:attr/activatedBackgroundIndicator" + android:padding="2dip"> + + <com.android.photos.views.SquareImageView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/thumbnail" /> + +</FrameLayout>
\ No newline at end of file diff --git a/res/layout/photopage_bottom_controls.xml b/res/layout/photopage_bottom_controls.xml new file mode 100644 index 000000000..f52a704a7 --- /dev/null +++ b/res/layout/photopage_bottom_controls.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/photopage_bottom_controls" + android:layout_width="match_parent" + android:layout_height="56dp" + android:layout_alignParentBottom="true" + android:layout_gravity="bottom" + android:background="@color/photo_page_bottom_panel" + android:gravity="bottom" + android:orientation="horizontal" + android:visibility="gone" > + + <ImageButton + android:id="@+id/photopage_bottom_control_edit" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:background="@null" + android:src="@drawable/edit" + android:visibility="gone" /> + + <ImageButton + android:id="@+id/photopage_bottom_control_share" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:background="@null" + android:src="@drawable/share" + android:visibility="gone" /> + + <ImageButton + android:id="@+id/photopage_bottom_control_delete" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:background="@null" + android:src="@drawable/delete" + android:visibility="gone" /> + +</LinearLayout> diff --git a/res/layout/photopage_progress_bar.xml b/res/layout/photopage_progress_bar.xml new file mode 100644 index 000000000..57b78320b --- /dev/null +++ b/res/layout/photopage_progress_bar.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/photopage_progress_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentStart="true" + android:padding="25dp" + android:visibility="invisible"> + <View + android:id="@+id/photopage_progress_background" + android:background="#ff000000" + android:layout_width="match_parent" + android:layout_height="8dp" + android:layout_alignParentBottom="true" + android:visibility="visible"/> + <View + android:id="@+id/photopage_progress_foreground" + android:background="#ff33b5e5" + android:layout_width="10dp" + android:layout_height="8dp" + android:layout_alignParentStart="true" + android:layout_alignParentBottom="true" + android:visibility="visible"/> + <TextView + android:id="@+id/photopage_progress_bar_text" + android:text="@string/pano_progress_text" + android:textColor="#ffffffff" + android:textSize="14dp" + android:shadowColor="#ff000000" + android:shadowDx="0" + android:shadowDy="0" + android:shadowRadius="2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_above="@id/photopage_progress_background" + android:paddingBottom="8dp" + android:visibility="visible"/> +</RelativeLayout> diff --git a/res/layout/popup_list_item.xml b/res/layout/popup_list_item.xml new file mode 100644 index 000000000..f0bafc1e8 --- /dev/null +++ b/res/layout/popup_list_item.xml @@ -0,0 +1,30 @@ +<?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. +--> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/text1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLargePopupMenu" + android:textSize="20sp" + android:textColor="#8A000000" + android:singleLine="true" + android:gravity="center_vertical" + android:paddingStart="16dp" + android:paddingEnd="16dp" + android:minHeight="?android:attr/listPreferredItemHeight" + android:minWidth="196dp" +/> diff --git a/res/layout/rotate_dialog.xml b/res/layout/rotate_dialog.xml new file mode 100644 index 000000000..c1cf866b7 --- /dev/null +++ b/res/layout/rotate_dialog.xml @@ -0,0 +1,110 @@ +<?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. +--> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/rotate_dialog_root_layout" + android:clickable="true" + android:gravity="center" + android:visibility="gone" + android:background="#55000000" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <com.android.camera.ui.RotateLayout + android:id="@+id/rotate_dialog_layout" + android:gravity="center" + android:layout_gravity="center" + android:layout_width="wrap_content" + android:layout_height="wrap_content" > + + <LinearLayout + android:orientation="vertical" + android:layout_gravity="center" + android:background="@color/popup_background" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <LinearLayout android:id="@+id/rotate_dialog_title_layout" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView android:id="@+id/rotate_dialog_title" + style="@style/TextAppearance.DialogWindowTitle" + android:gravity="center_vertical" + android:layout_marginStart="16dip" + android:layout_marginEnd="16dip" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="64dp"/> + <View style="@style/PopupTitleSeparator" /> + </LinearLayout> + + <LinearLayout + android:orientation="horizontal" + android:background="@color/popup_background" + android:padding="9dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <ProgressBar + android:id="@+id/rotate_dialog_spinner" + android:layout_gravity="center_vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + <TextView + style="@style/TextAppearance.Medium" + android:id="@+id/rotate_dialog_text" + android:layout_gravity="center_vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </LinearLayout> + + <ImageView android:background="@drawable/list_divider" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <LinearLayout android:id="@+id/rotate_dialog_button_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:minHeight="48dp" + android:orientation="horizontal"> + + <Button android:id="@+id/rotate_dialog_button2" + style="@style/Widget.Button.Borderless" + android:gravity="center" + android:maxLines="2" + android:minHeight="48dp" + android:textSize="14sp" + android:layout_weight="1" + android:layout_width="0dp" + android:layout_height="wrap_content" /> + <ImageView android:background="@drawable/list_divider" + android:layout_width="wrap_content" + android:layout_height="match_parent" /> + <Button android:id="@+id/rotate_dialog_button1" + style="@style/Widget.Button.Borderless" + android:gravity="center" + android:maxLines="2" + android:minHeight="48dp" + android:textSize="14sp" + android:layout_weight="1" + android:layout_width="0dp" + android:layout_height="wrap_content" /> + </LinearLayout> + </LinearLayout> + </com.android.camera.ui.RotateLayout> +</FrameLayout> diff --git a/res/layout/rotate_text_toast.xml b/res/layout/rotate_text_toast.xml new file mode 100644 index 000000000..2c89b6f59 --- /dev/null +++ b/res/layout/rotate_text_toast.xml @@ -0,0 +1,39 @@ +<?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. +--> + +<com.android.camera.ui.RotateLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/rotate_toast" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:visibility="gone"> + + <FrameLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/toast_frame_holo"> + <TextView + android:id="@+id/message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:textAppearanceMedium" + android:textColor="@android:color/white" + android:shadowColor="#BB000000" + android:shadowRadius="2.75" /> + </FrameLayout> +</com.android.camera.ui.RotateLayout> + + diff --git a/res/layout/secure_album_placeholder.xml b/res/layout/secure_album_placeholder.xml new file mode 100644 index 000000000..8d9a22901 --- /dev/null +++ b/res/layout/secure_album_placeholder.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> + +<ImageView xmlns:android="http://schemas.android.com/apk/res/android" + android:background="@color/photo_placeholder" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:scaleType="center" + android:src="@drawable/placeholder_locked" +/> diff --git a/res/layout/setting_item.xml b/res/layout/setting_item.xml new file mode 100644 index 000000000..857100362 --- /dev/null +++ b/res/layout/setting_item.xml @@ -0,0 +1,27 @@ +<?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. +--> +<com.android.camera.ui.CheckedLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + tools:ignore="UseCompoundDrawables" + style="@style/SettingRow"> + <TextView android:id="@+id/text" + style="@style/SettingItemTitle" /> + <ImageView android:id="@+id/image" + android:layout_height="@dimen/setting_item_icon_width" + android:layout_width="@dimen/setting_item_icon_width" + android:scaleType="fitCenter" + android:adjustViewBounds="true" /> +</com.android.camera.ui.CheckedLinearLayout> diff --git a/res/layout/setting_list.xml b/res/layout/setting_list.xml new file mode 100644 index 000000000..51ad7538e --- /dev/null +++ b/res/layout/setting_list.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> + <!-- + /* * Copyright (C) 2008 Esmertec AG. * Copyright (C) 2008 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. */ + --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="match_parent" + android:layout_height="match_parent"> + <ListView android:id="@android:id/list" android:layout_width="match_parent" + android:layout_height="0px" android:layout_weight="1" + android:paddingStart="16dip" android:paddingEnd="16dip" + android:paddingTop="0dp" android:paddingBottom="0dp" + android:clipToPadding="false" android:scrollbarStyle="outsideOverlay" + android:drawSelectorOnTop="false" android:cacheColorHint="@android:color/transparent" + android:listPreferredItemHeight="48dp" + android:scrollbarAlwaysDrawVerticalTrack="true" /> +</LinearLayout> + diff --git a/res/layout/time_interval_picker.xml b/res/layout/time_interval_picker.xml new file mode 100644 index 000000000..daab1c8b8 --- /dev/null +++ b/res/layout/time_interval_picker.xml @@ -0,0 +1,65 @@ +<?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. +--> + +<!-- Layout of time interval picker --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/time_interval_picker" + android:orientation="vertical" + android:layout_height="wrap_content" + android:layout_width="match_parent"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+id/set_time_interval_title" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingTop="5dip" + android:gravity="center" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/set_time_interval"/> + </LinearLayout> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="16dip" + android:paddingEnd="16dip" > + + <!-- time interval duration --> + <NumberPicker + android:id="@+id/duration" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:focusable="false" /> + + <!-- time interval duration units (seconds/minutes/hours) --> + <NumberPicker + android:id="@+id/duration_unit" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="2" + android:layout_marginStart="20dip" + android:focusable="false" /> + + </LinearLayout> +</LinearLayout> + diff --git a/res/layout/time_interval_popup.xml b/res/layout/time_interval_popup.xml new file mode 100644 index 000000000..2eadf9005 --- /dev/null +++ b/res/layout/time_interval_popup.xml @@ -0,0 +1,87 @@ +<?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. +--> + +<com.android.camera.ui.TimeIntervalPopup xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/SettingPopupWindow"> + + <LinearLayout android:orientation="vertical" + android:background="@color/popup_background" + android:layout_height="wrap_content" + android:layout_width="@dimen/big_setting_popup_window_width"> + + <LinearLayout android:orientation="horizontal" + android:layout_height="wrap_content" + android:layout_width="match_parent"> + <TextView android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:ellipsize="end" + android:layout_weight="1" + android:minHeight="@dimen/popup_title_frame_min_height" + style="@style/PopupTitleText" /> + <Switch + android:id="@+id/time_lapse_switch" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="0" + android:layout_marginEnd="8dp" + android:layout_gravity="end|center_vertical" /> + </LinearLayout> + + <View style="@style/PopupTitleSeparator" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+id/set_time_interval_help_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingTop="16dip" + android:paddingStart="16dip" + android:paddingEnd="16dip" + android:paddingBottom="16dip" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="@string/set_time_interval_help"/> + </LinearLayout> + + <LinearLayout android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" > + <include layout="@layout/time_interval_picker"/> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:divider="?android:attr/dividerHorizontal" + android:showDividers="beginning" + android:dividerPadding="0dip"> + <Button android:id="@+id/time_lapse_interval_set_button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:textAppearance="?android:attr/textAppearanceMedium" + style="?android:attr/buttonBarButtonStyle" + android:text="@string/time_lapse_interval_set" /> + </LinearLayout> + </LinearLayout> + +</com.android.camera.ui.TimeIntervalPopup> diff --git a/res/layout/toolbar.xml b/res/layout/toolbar.xml new file mode 100644 index 000000000..0d1cea067 --- /dev/null +++ b/res/layout/toolbar.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015, The Linux Foundation. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<Toolbar xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="@dimen/toolbar_height" + android:paddingTop="30dp" + android:background="#e53935" + android:elevation="4dp" + android:theme="@style/ToolbarTheme" + android:popupTheme="@style/ToolbarPopUpTheme" + android:navigationIcon="@drawable/drawer" > + +</Toolbar>
\ No newline at end of file diff --git a/res/layout/trim_menu.xml b/res/layout/trim_menu.xml new file mode 100644 index 000000000..164264546 --- /dev/null +++ b/res/layout/trim_menu.xml @@ -0,0 +1,38 @@ +<?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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_centerVertical="true"> + <ImageView + android:id="@+id/exit_trim" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:src="@drawable/cancel"/> + <TextView + android:id="@+id/start_trim" + android:layout_marginStart="8dp" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:text="@string/save" + android:textAllCaps="true" + android:layout_gravity="right" + android:textSize="16sp" + android:textColor="@color/primary_text" + android:gravity="left|center_vertical" + android:drawablePadding="8dp" /> +</FrameLayout> 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 diff --git a/res/layout/undo_bar.xml b/res/layout/undo_bar.xml new file mode 100644 index 000000000..bd4274d16 --- /dev/null +++ b/res/layout/undo_bar.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<!-- This layout is shared by phone and tablet in portrait or landscape orientation. --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + style="@style/UndoBar"> + <TextView android:text="@string/deleted" + style="@style/UndoBarTextAppearance" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="left|center_vertical" /> + <View style="@style/UndoBarSeparator" /> + <TextView android:id="@+id/undo_button" + style="@style/UndoButton" + android:text="@string/undo" + android:drawableStart="@drawable/ic_menu_revert_holo_dark"/> +</LinearLayout> diff --git a/res/layout/video_module.xml b/res/layout/video_module.xml new file mode 100644 index 000000000..2df1adc9b --- /dev/null +++ b/res/layout/video_module.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> +<!-- This layout is shared by phone and tablet in landscape orientation. --> +<merge xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="match_parent" + android:layout_width="match_parent"> + <TextureView + android:id="@+id/preview_content" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + <View + android:id="@+id/flash_overlay" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/white" + 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" /> + <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" + style="@style/ViewfinderLabelLayout"> + <include layout="@layout/viewfinder_labels_video" android:id="@+id/labels" /> + </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"/> + <ImageView + android:id="@+id/btn_play" + style="@style/ReviewControlIcon" + android:layout_centerInParent="true" + android:src="@drawable/ic_gallery_play_big" + android:visibility="gone" + android:onClick="onReviewPlayClicked"/> + + <include layout="@layout/camera_controls" + android:layout_gravity="center" + style="@style/CameraControls"/> +</merge> diff --git a/res/layout/viewfinder_labels_video.xml b/res/layout/viewfinder_labels_video.xml new file mode 100644 index 000000000..1ed7f3947 --- /dev/null +++ b/res/layout/viewfinder_labels_video.xml @@ -0,0 +1,31 @@ +<?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. +--> +<!-- This layout is shared by phone and tablet in portrait or landscape orientation. --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_height="match_parent" + android:layout_width="match_parent"> + <TextView android:id="@+id/recording_time" + style="@style/OnViewfinderLabel" + android:gravity="center" + android:drawableStart="@drawable/ic_recording_indicator" + android:drawablePadding="5dp" + android:visibility="gone" /> + <TextView android:id="@+id/time_lapse_label" + android:text="@string/time_lapse_title" + style="@style/OnViewfinderLabel" + android:visibility="gone" /> +</LinearLayout> |
