summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillo1978 <millo1978@libero.it>2014-12-22 00:27:42 (GMT)
committerAlessio Milici <alessiomilici@gmail.com>2015-02-11 18:59:49 (GMT)
commita0bb94b70f93e23fefac4e5e89ad77ae47ae65ff (patch)
treef1f5da50d17befd3004850afd419d4a8f1c76b18
parentc3c846294f4e1a78581fddb14d9dda148854739a (diff)
downloadandroid_packages_apps_Trebuchet-a0bb94b70f93e23fefac4e5e89ad77ae47ae65ff.zip
android_packages_apps_Trebuchet-a0bb94b70f93e23fefac4e5e89ad77ae47ae65ff.tar.gz
android_packages_apps_Trebuchet-a0bb94b70f93e23fefac4e5e89ad77ae47ae65ff.tar.bz2
Trebuchet Landscape: Fix Layout for sw360dp devices.
1280x720, xhdpi devices (for example i9300). * Resized THEMES.png: same size of "Widget" and "Wallpapers" images (85x85). * Resized Workspace * Resized dynamic grid screen * Resized settings transitions Change-Id: I0d4be693632dfdae5b6d0c70e7195e5322149e18
-rw-r--r--res/drawable-xhdpi/ic_themes.pngbin56644 -> 5021 bytes
-rw-r--r--res/drawable-xhdpi/ic_themes_pressed.pngbin56644 -> 5882 bytes
-rw-r--r--res/layout-sw360dp-land/dynamic_grid_size_screen.xml53
-rw-r--r--res/layout-sw360dp-land/settings_pane.xml109
-rw-r--r--res/layout-sw360dp-land/settings_transitions_screen.xml68
-rw-r--r--res/values-sw360dp-land/dimens.xml31
6 files changed, 261 insertions, 0 deletions
diff --git a/res/drawable-xhdpi/ic_themes.png b/res/drawable-xhdpi/ic_themes.png
index 550e5d0..f2a95aa 100644
--- a/res/drawable-xhdpi/ic_themes.png
+++ b/res/drawable-xhdpi/ic_themes.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_themes_pressed.png b/res/drawable-xhdpi/ic_themes_pressed.png
index 4965356..05224fb 100644
--- a/res/drawable-xhdpi/ic_themes_pressed.png
+++ b/res/drawable-xhdpi/ic_themes_pressed.png
Binary files differ
diff --git a/res/layout-sw360dp-land/dynamic_grid_size_screen.xml b/res/layout-sw360dp-land/dynamic_grid_size_screen.xml
new file mode 100644
index 0000000..0a021f7
--- /dev/null
+++ b/res/layout-sw360dp-land/dynamic_grid_size_screen.xml
@@ -0,0 +1,53 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_horizontal|bottom"
+ android:background="@color/settings_bg_color"
+ android:orientation="vertical"
+ android:paddingBottom="@dimen/overview_panel_bottom_padding"
+ android:paddingTop="30dp"
+ android:clickable="true" >
+
+ <LinearLayout
+ android:id="@+id/dynamic_grid_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:background="@drawable/listitem_bg"
+ android:clickable="true" >
+
+ <ImageView
+ android:id="@+id/nav_prev"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:adjustViewBounds="true"
+ android:src="@drawable/ic_navigation_prev" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/grid_size_text"
+ android:textAllCaps="true"
+ android:fontFamily="sans-serif-condensed"
+ android:textColor="@color/listitem_text"
+ android:layout_gravity="center_vertical"
+ android:textSize="16sp" />
+ </LinearLayout>
+
+ <view
+ class="com.android.launcher3.DynamicGridSizeFragment$GridSizeView"
+ android:id="@+id/dynamic_grid_size_image"
+ android:layout_width="120dp"
+ android:layout_height="120dp"
+ android:layout_gravity="center_horizontal"
+ android:layout_marginBottom="@dimen/grid_padding"/>
+
+ <ListView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/dynamic_grid_list"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:listSelector="@android:color/transparent"
+ android:splitMotionEvents="false"/>
+</LinearLayout>
diff --git a/res/layout-sw360dp-land/settings_pane.xml b/res/layout-sw360dp-land/settings_pane.xml
new file mode 100644
index 0000000..3138599
--- /dev/null
+++ b/res/layout-sw360dp-land/settings_pane.xml
@@ -0,0 +1,109 @@
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:background="@color/settings_bg_color"
+ android:layout_height="match_parent" >
+
+ <LinearLayout
+ android:id="@+id/settings_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_horizontal|bottom"
+ android:orientation="vertical" >
+
+ <LinearLayout
+ android:id="@+id/settings_pane_header"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:paddingTop="@dimen/overview_panel_top_padding" >
+
+ <ImageView
+ android:id="@+id/settings_drag_arrow"
+ android:layout_width="@dimen/overview_panel_handle_size"
+ android:layout_height="@dimen/overview_panel_handle_size"
+ android:layout_gravity="center_horizontal"
+ android:adjustViewBounds="true"
+ android:background="@drawable/launcheranimatedarrow_00000"/>
+
+ <RelativeLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:layout_gravity="center_horizontal|bottom"
+ android:paddingBottom="@dimen/overview_panel_bottom_padding"
+ android:paddingTop="5dp"
+ android:layout_marginLeft="@dimen/overview_panel_button_spacing"
+ android:layout_marginRight="@dimen/overview_panel_button_spacing">
+
+ <TextView
+ android:id="@+id/wallpaper_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:drawablePadding="4dp"
+ android:drawableTop="@drawable/wallpaper_button"
+ android:fontFamily="sans-serif-condensed"
+ android:gravity="center_horizontal"
+ android:paddingLeft="@dimen/overview_panel_button_spacing"
+ android:paddingRight="@dimen/overview_panel_button_spacing"
+ android:text="@string/wallpaper_button_text"
+ android:textAllCaps="true"
+ android:textSize="12sp"
+ android:textColor="@android:color/white"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentLeft="true"/>
+
+ <TextView
+ android:id="@+id/widget_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:drawablePadding="4dp"
+ android:drawableTop="@drawable/widget_button"
+ android:fontFamily="sans-serif-condensed"
+ android:gravity="center_horizontal"
+ android:paddingLeft="@dimen/overview_panel_button_spacing"
+ android:paddingRight="@dimen/overview_panel_button_spacing"
+ android:text="@string/widget_button_text"
+ android:textAllCaps="true"
+ android:textSize="12sp"
+ android:textColor="@android:color/white"
+ android:layout_alignParentTop="true"
+ android:layout_centerHorizontal="true" />
+
+ <TextView
+ android:id="@+id/themes_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:drawablePadding="4dp"
+ android:drawableTop="@drawable/themes_button"
+ android:fontFamily="sans-serif-condensed"
+ android:gravity="center_horizontal"
+ android:paddingLeft="@dimen/overview_panel_button_spacing"
+ android:paddingRight="@dimen/overview_panel_button_spacing"
+ android:text="@string/themes_button_text"
+ android:textAllCaps="true"
+ android:textSize="12sp"
+ android:textColor="@android:color/white"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentRight="true" />
+
+ </RelativeLayout>
+ </LinearLayout>
+
+ <view
+ class="com.android.launcher3.list.PinnedHeaderListView"
+ android:id="@+id/settings_home_screen_listview"
+ android:layout_width="match_parent"
+ android:layout_height="0dip"
+ android:fastScrollEnabled="true"
+ android:layout_weight="1" />
+
+ </LinearLayout>
+
+ <LinearLayout
+ android:id="@+id/dark_panel"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@android:color/background_dark"
+ android:visibility="gone" />
+</FrameLayout>
diff --git a/res/layout-sw360dp-land/settings_transitions_screen.xml b/res/layout-sw360dp-land/settings_transitions_screen.xml
new file mode 100644
index 0000000..1a002ba
--- /dev/null
+++ b/res/layout-sw360dp-land/settings_transitions_screen.xml
@@ -0,0 +1,68 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_horizontal|bottom"
+ android:background="@color/settings_bg_color"
+ android:orientation="vertical"
+ android:paddingTop="30dp"
+ android:clickable="true" >
+
+ <RelativeLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content">
+
+ <LinearLayout
+ android:id="@+id/transition_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:background="@drawable/listitem_bg"
+ android:layout_alignParentStart="true"
+ android:clickable="true" >
+
+ <ImageView
+ android:id="@+id/nav_prev"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:adjustViewBounds="true"
+ android:src="@drawable/ic_navigation_prev" />
+
+ <TextView
+ android:id="@+id/transition_effect_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/scroll_effect_text"
+ android:textAllCaps="true"
+ android:textColor="@color/listitem_text"
+ android:layout_gravity="center_vertical"
+ android:textSize="16sp" />
+ </LinearLayout>
+
+ <ImageView
+ android:id="@+id/transition_options_menu"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="right"
+ android:paddingStart="10dip"
+ android:paddingEnd="10dip"
+ android:adjustViewBounds="true"
+ android:layout_alignParentEnd="true"
+ android:src="@drawable/overflow_options_menu" />
+ </RelativeLayout>
+
+ <ImageView
+ android:id="@+id/settings_transition_image"
+ android:layout_width="120dp"
+ android:layout_height="120dp"
+ android:layout_gravity="center_horizontal"
+ android:adjustViewBounds="true" />
+
+ <ListView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/settings_transitions_list"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:listSelector="@android:color/transparent"
+ android:splitMotionEvents="false"/>
+</LinearLayout>
diff --git a/res/values-sw360dp-land/dimens.xml b/res/values-sw360dp-land/dimens.xml
new file mode 100644
index 0000000..07ea72c
--- /dev/null
+++ b/res/values-sw360dp-land/dimens.xml
@@ -0,0 +1,31 @@
+<?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.
+-->
+
+<resources>
+<!-- Workspace -->
+ <!-- Panel height -->
+ <dimen name="sliding_panel_padding">120dp</dimen>
+ <!-- space needed to not overlap the statebar -->
+ <dimen name="overview_panel_top_padding">20dp</dimen>
+ <!-- space below the image -->
+ <dimen name="overview_panel_bottom_padding">10dp</dimen>
+ <!-- lateral space from the edge of the screen -->
+ <dimen name="overview_panel_button_spacing">30dp</dimen>
+ <!-- Arrow size that expand or collapse sliding menu -->
+ <dimen name="overview_panel_handle_size">25dp</dimen>
+ <!-- resize pages preview -->
+ <dimen name="overview_scaling_padding">40dp</dimen>
+</resources>