diff options
author | nicolasroard <nicolasroard@google.com> | 2013-04-19 17:13:30 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-04-24 20:23:36 -0700 |
commit | c4ee244da0fe31a9fce8cb5ec07ad1d8e52d6daf (patch) | |
tree | c7b8e20b7e13d4f714a09ec3efb2afa75d9b3ccc /res/layout-land | |
parent | ac1e8231b96042b3fdfef504dd03ba04c71c5fd0 (diff) | |
download | android_packages_apps_Snap-c4ee244da0fe31a9fce8cb5ec07ad1d8e52d6daf.tar.gz android_packages_apps_Snap-c4ee244da0fe31a9fce8cb5ec07ad1d8e52d6daf.tar.bz2 android_packages_apps_Snap-c4ee244da0fe31a9fce8cb5ec07ad1d8e52d6daf.zip |
UI changes
bug:8664728
Change-Id: I133328543af534c745526d0d58aa7a61f5748a9d
Diffstat (limited to 'res/layout-land')
-rw-r--r-- | res/layout-land/filtershow_activity.xml | 142 | ||||
-rw-r--r-- | res/layout-land/filtershow_category_panel_new.xml | 32 | ||||
-rw-r--r-- | res/layout-land/filtershow_editor_panel.xml | 126 | ||||
-rw-r--r-- | res/layout-land/filtershow_main_panel.xml | 98 | ||||
-rw-r--r-- | res/layout-land/filtershow_state_panel_new.xml | 33 |
5 files changed, 292 insertions, 139 deletions
diff --git a/res/layout-land/filtershow_activity.xml b/res/layout-land/filtershow_activity.xml index 311a3e639..4d098e6f7 100644 --- a/res/layout-land/filtershow_activity.xml +++ b/res/layout-land/filtershow_activity.xml @@ -16,7 +16,6 @@ --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:iconbutton="http://schemas.android.com/apk/res/com.android.gallery3d" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/mainView" @@ -46,32 +45,20 @@ 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" - android:layout_weight="1" /> - </LinearLayout> <LinearLayout android:id="@+id/mainPanel" android:layout_width="350dip" android:layout_height="match_parent" - android:orientation="vertical"> + android:orientation="vertical" + android:animateLayoutChanges="true" > - <FrameLayout android:id="@+id/state_panel_container" + <FrameLayout android:id="@+id/main_panel_container" android:layout_width="350dip" android:layout_height="0dip" android:layout_weight="1" /> - <ViewStub android:id="@+id/historyPanelStub" - android:inflatedId="@+id/historyPanel" - android:layout="@layout/filtershow_history_panel" - android:layout_width="match_parent" - android:layout_height="0dip" - android:visibility="gone"/> - <FrameLayout android:layout_gravity="bottom" android:layout_width="match_parent" @@ -91,129 +78,6 @@ </FrameLayout> - <com.android.gallery3d.filtershow.CenteredLinearLayout - xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d" - android:id="@+id/filtersPanel" - android:layout_width="match_parent" - android:layout_height="177dip" - android:layout_gravity="center|bottom" - custom:max_width="600dip" - android:orientation="vertical"> - - <FrameLayout - android:id="@+id/secondRowPanel" - android:layout_width="fill_parent" - android:layout_height="128dip"> - - <LinearLayout - android:id="@+id/filterButtonsList" - android:layout_width="fill_parent" - android:layout_height="@dimen/thumbnail_size" - android:orientation="horizontal" - android:visibility="gone"> - - <ViewStub android:id="@+id/editorPanelStub" - android:inflatedId="@+id/editorPanel" - android:layout="@layout/filtershow_editor_panel" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:visibility="visible"/> - - </LinearLayout> - - <HorizontalScrollView - android:id="@+id/fxList" - android:layout_width="match_parent" - android:layout_height="@dimen/thumbnail_size" - android:background="@color/background_main_toolbar" - android:scrollbars="none"> - - <LinearLayout - android:id="@+id/listFilters" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_marginLeft="@dimen/thumbnail_margin" - android:orientation="horizontal"> - </LinearLayout> - </HorizontalScrollView> - - <HorizontalScrollView - android:id="@+id/bordersList" - android:layout_width="match_parent" - android:layout_height="@dimen/thumbnail_size" - android:background="@color/background_main_toolbar" - android:visibility="gone" - android:scrollbars="none"> - - <LinearLayout - android:id="@+id/listBorders" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_marginLeft="@dimen/thumbnail_margin" - android:orientation="horizontal"> - </LinearLayout> - </HorizontalScrollView> - - <HorizontalScrollView - android:id="@+id/geometryList" - android:layout_width="fill_parent" - android:layout_height="@dimen/thumbnail_size" - android:background="@color/background_main_toolbar" - android:visibility="gone" - android:scrollbars="none"> - - <LinearLayout - android:id="@+id/listGeometry" - android:layout_width="wrap_content" - android:layout_height="fill_parent" - android:layout_gravity="left" - android:orientation="horizontal"/> - - </HorizontalScrollView> - - <HorizontalScrollView - android:id="@+id/colorsFxList" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:background="@color/background_main_toolbar" - android:visibility="gone" - android:scrollbars="none"> - - <LinearLayout - android:id="@+id/listColorsFx" - android:layout_width="wrap_content" - android:layout_height="@dimen/thumbnail_size" - android:background="@color/background_main_toolbar" - android:layout_marginLeft="@dimen/thumbnail_margin" - android:orientation="horizontal"> - - </LinearLayout> - </HorizontalScrollView> - </FrameLayout> - - <View - android:background="@color/toolbar_separation_line" - android:layout_height="1dip" - android:layout_width="match_parent"/> - - <com.android.gallery3d.filtershow.CenteredLinearLayout - android:layout_width="match_parent" - android:layout_height="48dip" - android:layout_gravity="center" - custom:max_width="400dip" - android:orientation="vertical"> - - <ViewStub android:id="@+id/stateCategoryStub" - android:inflatedId="@+id/imageCategoryPanel" - android:layout="@layout/filtershow_category_panel" - android:layout_width="match_parent" - android:layout_height="48dip" - android:visibility="visible"/> - - </com.android.gallery3d.filtershow.CenteredLinearLayout> - - </com.android.gallery3d.filtershow.CenteredLinearLayout> - </LinearLayout> </LinearLayout> diff --git a/res/layout-land/filtershow_category_panel_new.xml b/res/layout-land/filtershow_category_panel_new.xml new file mode 100644 index 000000000..10a6c97ba --- /dev/null +++ b/res/layout-land/filtershow_category_panel_new.xml @@ -0,0 +1,32 @@ +<?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"> + + <ListView + android:id="@+id/listItems" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_margin="8dip" + android:divider="@android:color/transparent" + android:dividerHeight="8dip" /> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout-land/filtershow_editor_panel.xml b/res/layout-land/filtershow_editor_panel.xml new file mode 100644 index 000000000..85ab010db --- /dev/null +++ b/res/layout-land/filtershow_editor_panel.xml @@ -0,0 +1,126 @@ +<?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:visibility="visible"> + + <Button + android:id="@+id/toggle_state" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/imageState" + android:background="@color/background_main_toolbar" + /> + + <FrameLayout android:id="@+id/state_panel_container" + android:layout_width="match_parent" + android:layout_height="0dip" + android:visibility="visible" + android:layout_gravity="top" + android:layout_weight="1" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:layout_gravity="bottom"> + + <LinearLayout + android:id="@+id/controlArea" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_alignParentBottom="true" + android:visibility="visible"> + + <SeekBar + android:id="@+id/primarySeekBar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + style="@style/FilterShowSlider"/> + + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="56dip" + android:background="@color/background_main_toolbar" + android:orientation="horizontal" + android:baselineAligned="false" + 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:background="@android:color/transparent" + android:layout_weight=".1" + android:gravity="center" + android:src="@drawable/ic_menu_cancel_holo_light" + android:textSize="18dip"/> + + <ImageView + android:layout_width="2dp" + android:layout_height="fill_parent" + android:src="@drawable/filtershow_vertical_bar"/> + + <LinearLayout + android:id="@+id/panelAccessoryViewList" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:orientation="horizontal" + android:visibility="visible"> + + <com.android.gallery3d.filtershow.editors.SwapButton + android:id="@+id/applyEffect" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_gravity="center" + android:background="@android:color/transparent" + android:gravity="center" + android:text="@string/apply_effect" + android:textSize="18dip" + android:drawableRight="@drawable/filtershow_menu_marker"/> + + </LinearLayout> + + <ImageView + android:layout_width="2dp" + android:layout_height="fill_parent" + android:src="@drawable/filtershow_vertical_bar"/> + + <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/ic_menu_done_holo_light" + android:textSize="18dip"/> + </LinearLayout> + </LinearLayout> + +</LinearLayout> diff --git a/res/layout-land/filtershow_main_panel.xml b/res/layout-land/filtershow_main_panel.xml new file mode 100644 index 000000000..705eb690b --- /dev/null +++ b/res/layout-land/filtershow_main_panel.xml @@ -0,0 +1,98 @@ +<?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:baselineAligned="false" + android:orientation="vertical" + android:animateLayoutChanges="true" + android:visibility="visible" > + + <FrameLayout android:id="@+id/state_panel_container" + android:layout_width="match_parent" + android:layout_height="0dip" + android:visibility="visible" + android:layout_gravity="top" + android:layout_weight="1" /> + + <FrameLayout android:id="@+id/category_panel_container" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1"/> + + <View + android:background="@color/toolbar_separation_line" + android:layout_height="1dip" + android:layout_width="match_parent"/> + + <com.android.gallery3d.filtershow.CenteredLinearLayout + xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d" + android:layout_width="match_parent" + android:layout_height="48dip" + android:layout_gravity="center|bottom" + custom:max_width="400dip" + android:orientation="vertical"> + + <LinearLayout android:layout_width="wrap_content" + android:layout_height="match_parent" + android:background="@color/background_main_toolbar"> + + <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> + + </com.android.gallery3d.filtershow.CenteredLinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout-land/filtershow_state_panel_new.xml b/res/layout-land/filtershow_state_panel_new.xml new file mode 100644 index 000000000..c83cd8833 --- /dev/null +++ b/res/layout-land/filtershow_state_panel_new.xml @@ -0,0 +1,33 @@ +<?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="match_parent"> + + <ScrollView + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:scrollbars="none"> + + <com.android.gallery3d.filtershow.state.StatePanelTrack + android:id="@+id/listStates" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + custom:elemSize="72dip" + custom:elemEndSize="32dip" + android:layout_margin="8dip" + android:animateLayoutChanges="true" /> + + </ScrollView> + + <View + android:background="@color/state_panel_separation_line" + android:layout_height="6dip" + android:layout_width="match_parent" + android:paddingTop="8dip"/> + +</LinearLayout> |