diff options
-rw-r--r-- | res/drawable/filtershow_background.png | bin | 653905 -> 1863 bytes | |||
-rw-r--r-- | res/drawable/filtershow_tiled_background.xml | 21 | ||||
-rw-r--r-- | res/layout-land/filtershow_activity.xml | 89 | ||||
-rw-r--r-- | res/layout/filtershow_activity.xml | 89 | ||||
-rw-r--r-- | res/layout/filtershow_history_operation_row.xml | 23 | ||||
-rw-r--r-- | res/layout/filtershow_history_panel.xml | 64 | ||||
-rw-r--r-- | res/layout/filtershow_state_panel.xml | 45 |
7 files changed, 172 insertions, 159 deletions
diff --git a/res/drawable/filtershow_background.png b/res/drawable/filtershow_background.png Binary files differindex e7646c33a..22e1641dd 100644 --- a/res/drawable/filtershow_background.png +++ b/res/drawable/filtershow_background.png diff --git a/res/drawable/filtershow_tiled_background.xml b/res/drawable/filtershow_tiled_background.xml new file mode 100644 index 000000000..055fbcd63 --- /dev/null +++ b/res/drawable/filtershow_tiled_background.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. +--> +<bitmap + xmlns:android="http://schemas.android.com/apk/res/android" + android:src="@drawable/filtershow_background" + android:tileMode="repeat" + android:dither="false" />
\ No newline at end of file diff --git a/res/layout-land/filtershow_activity.xml b/res/layout-land/filtershow_activity.xml index 8cef0cef8..957a36592 100644 --- a/res/layout-land/filtershow_activity.xml +++ b/res/layout-land/filtershow_activity.xml @@ -19,7 +19,8 @@ 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"> + android:id="@+id/mainView" + android:background="@drawable/filtershow_tiled_background"> <LinearLayout android:layout_width="match_parent" @@ -58,79 +59,19 @@ android:layout_weight="1" android:orientation="vertical" > - <LinearLayout - 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> - - <LinearLayout - 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" > - </ListView> - - <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> - + <ViewStub android:id="@+id/statePanelStub" + android:inflatedId="@+id/imageStatePanel" + android:layout="@layout/filtershow_state_panel" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="visible" /> + + <ViewStub android:id="@+id/historyPanelStub" + android:inflatedId="@+id/historyPanel" + android:layout="@layout/filtershow_history_panel" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" /> <FrameLayout android:layout_gravity="bottom" diff --git a/res/layout/filtershow_activity.xml b/res/layout/filtershow_activity.xml index 6bdd48710..c723aaba5 100644 --- a/res/layout/filtershow_activity.xml +++ b/res/layout/filtershow_activity.xml @@ -19,7 +19,8 @@ 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"> + android:id="@+id/mainView" + android:background="@drawable/filtershow_tiled_background"> <LinearLayout android:layout_width="match_parent" @@ -247,80 +248,22 @@ </LinearLayout> - <LinearLayout - android:id="@+id/imageStatePanel" - android:layout_width="400dip" - android:layout_height="match_parent" - android:layout_gravity="right" - 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/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> + <ViewStub android:id="@+id/statePanelStub" + android:inflatedId="@+id/imageStatePanel" + android:layout="@layout/filtershow_state_panel" + android:layout_width="200dip" + android:layout_height="match_parent" + android:layout_gravity="right" + android:visibility="visible" /> </LinearLayout> - <LinearLayout - android:id="@+id/historyPanel" - android:layout_width="200dip" - android:layout_height="match_parent" - android:layout_gravity="right" - android:orientation="vertical" - android:visibility="invisible" > - - <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" > - </ListView> - - <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> + <ViewStub android:id="@+id/historyPanelStub" + android:inflatedId="@+id/historyPanel" + android:layout="@layout/filtershow_history_panel" + android:layout_width="200dip" + android:layout_height="match_parent" + android:layout_gravity="right" + android:visibility="invisible" /> </FrameLayout> diff --git a/res/layout/filtershow_history_operation_row.xml b/res/layout/filtershow_history_operation_row.xml index 4042f71db..25a0d26f6 100644 --- a/res/layout/filtershow_history_operation_row.xml +++ b/res/layout/filtershow_history_operation_row.xml @@ -17,20 +17,18 @@ <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="wrap_content" + android:layout_height="120dip" android:gravity="center_horizontal" - android:orientation="vertical" - android:padding="10dip" - android:background="@drawable/filtershow_button_background"> + android:orientation="horizontal" + android:padding="0dip" + android:background="@color/background_main_toolbar"> <ImageView android:id="@+id/preview" - android:background="@android:color/transparent" - android:layout_width="match_parent" - android:layout_height="128dip" + android:layout_width="180dip" + android:layout_height="120dip" android:scaleType="centerCrop" android:cropToPadding="true" - android:paddingTop="10dip" android:visibility="visible" /> @@ -38,11 +36,12 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rowTextView" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:layout_weight="1" - android:gravity="center_horizontal" - android:padding="5dip" - android:textSize="16dip"> + 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_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 |