diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/apps_list_bg.xml | 10 | ||||
-rw-r--r-- | res/drawable/apps_list_search_bg.xml | 4 | ||||
-rw-r--r-- | res/drawable/apps_reveal_bg.xml | 9 | ||||
-rw-r--r-- | res/drawable/apps_reveal_bg_inset.xml | 21 | ||||
-rw-r--r-- | res/drawable/apps_search_bg.xml (renamed from res/drawable/apps_list_bg_inset.xml) | 4 | ||||
-rw-r--r-- | res/layout-sw600dp/apps_view.xml | 1 | ||||
-rw-r--r-- | res/layout-sw720dp/launcher.xml | 2 | ||||
-rw-r--r-- | res/layout/apps_list_view.xml | 7 | ||||
-rw-r--r-- | res/layout/apps_reveal_view.xml | 1 | ||||
-rw-r--r-- | res/layout/apps_view.xml | 3 | ||||
-rw-r--r-- | res/layout/page_indicator_marker.xml | 4 | ||||
-rw-r--r-- | res/layout/user_folder.xml | 52 | ||||
-rw-r--r-- | res/layout/user_folder_scroll.xml | 106 | ||||
-rw-r--r-- | res/values/dimens.xml | 2 |
14 files changed, 55 insertions, 171 deletions
diff --git a/res/drawable/apps_list_bg.xml b/res/drawable/apps_list_bg.xml index 64177c16b..0e56684b5 100644 --- a/res/drawable/apps_list_bg.xml +++ b/res/drawable/apps_list_bg.xml @@ -14,7 +14,9 @@ See the License for the specific language governing permissions and limitations under the License. --> -<inset xmlns:android="http://schemas.android.com/apk/res/android" - android:drawable="@drawable/apps_list_bg_inset" - android:insetLeft="@dimen/apps_container_inset" - android:insetRight="@dimen/apps_container_inset" />
\ No newline at end of file +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <solid android:color="#ffffff" /> + <corners + android:radius="2dp" /> +</shape>
\ No newline at end of file diff --git a/res/drawable/apps_list_search_bg.xml b/res/drawable/apps_list_search_bg.xml index eda33a918..63c4d5591 100644 --- a/res/drawable/apps_list_search_bg.xml +++ b/res/drawable/apps_list_search_bg.xml @@ -18,6 +18,6 @@ android:shape="rectangle"> <solid android:color="#ffffff" /> <corners - android:topLeftRadius="3dp" - android:topRightRadius="3dp" /> + android:bottomLeftRadius="2dp" + android:bottomRightRadius="2dp" /> </shape>
\ No newline at end of file diff --git a/res/drawable/apps_reveal_bg.xml b/res/drawable/apps_reveal_bg.xml index 47c608f85..07505a596 100644 --- a/res/drawable/apps_reveal_bg.xml +++ b/res/drawable/apps_reveal_bg.xml @@ -14,7 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. --> -<inset xmlns:android="http://schemas.android.com/apk/res/android" - android:drawable="@drawable/apps_reveal_bg_inset" - android:insetLeft="@dimen/apps_container_inset" - android:insetRight="@dimen/apps_container_inset" />
\ No newline at end of file +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <solid android:color="#ffffff" /> + <corners android:radius="2dp" /> +</shape>
\ No newline at end of file diff --git a/res/drawable/apps_reveal_bg_inset.xml b/res/drawable/apps_reveal_bg_inset.xml deleted file mode 100644 index 61f1c083a..000000000 --- a/res/drawable/apps_reveal_bg_inset.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2015 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. ---> -<shape xmlns:android="http://schemas.android.com/apk/res/android" - android:shape="rectangle"> - <solid android:color="#ffffff" /> - <corners android:radius="3dp" /> -</shape>
\ No newline at end of file diff --git a/res/drawable/apps_list_bg_inset.xml b/res/drawable/apps_search_bg.xml index 5ea78952f..405e8447c 100644 --- a/res/drawable/apps_list_bg_inset.xml +++ b/res/drawable/apps_search_bg.xml @@ -18,6 +18,6 @@ android:shape="rectangle"> <solid android:color="#ffffff" /> <corners - android:bottomLeftRadius="3dp" - android:bottomRightRadius="3dp" /> + android:topLeftRadius="2dp" + android:topRightRadius="2dp" /> </shape>
\ No newline at end of file diff --git a/res/layout-sw600dp/apps_view.xml b/res/layout-sw600dp/apps_view.xml index fba170b2e..e6e0ec358 100644 --- a/res/layout-sw600dp/apps_view.xml +++ b/res/layout-sw600dp/apps_view.xml @@ -19,7 +19,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:padding="@dimen/apps_container_inset" - android:background="@drawable/apps_customize_bg" android:descendantFocusability="afterDescendants"> <include layout="@layout/apps_reveal_view" diff --git a/res/layout-sw720dp/launcher.xml b/res/layout-sw720dp/launcher.xml index 8bd827a25..a9601af6a 100644 --- a/res/layout-sw720dp/launcher.xml +++ b/res/layout-sw720dp/launcher.xml @@ -67,7 +67,7 @@ android:layout_gravity="center_horizontal" /> <include layout="@layout/widgets_view" - android:id="@+id/widget_view" + android:id="@+id/widgets_view" android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="invisible" /> diff --git a/res/layout/apps_list_view.xml b/res/layout/apps_list_view.xml index 3e42f8489..595c46caf 100644 --- a/res/layout/apps_list_view.xml +++ b/res/layout/apps_list_view.xml @@ -25,8 +25,6 @@ android:id="@+id/app_search_box" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="@dimen/apps_container_inset" - android:layout_marginRight="@dimen/apps_container_inset" android:padding="16dp" android:hint="@string/apps_view_search_bar_hint" android:maxLines="1" @@ -37,7 +35,7 @@ android:textColor="#4c4c4c" android:textColorHint="#9c9c9c" android:imeOptions="actionDone|flagNoExtractUi" - android:background="@drawable/apps_list_search_bg" + android:background="@drawable/apps_search_bg" android:elevation="4dp" /> <com.android.launcher3.AppsContainerRecyclerView android:id="@+id/apps_list_view" @@ -48,6 +46,5 @@ android:paddingBottom="12dp" android:clipToPadding="false" android:focusable="true" - android:descendantFocusability="afterDescendants" - android:background="@drawable/apps_list_bg" /> + android:descendantFocusability="afterDescendants" /> </LinearLayout>
\ No newline at end of file diff --git a/res/layout/apps_reveal_view.xml b/res/layout/apps_reveal_view.xml index bc93359c1..2951ea4f4 100644 --- a/res/layout/apps_reveal_view.xml +++ b/res/layout/apps_reveal_view.xml @@ -21,5 +21,4 @@ android:layout_gravity="center" android:elevation="15dp" android:visibility="invisible" - android:background="@drawable/apps_reveal_bg" android:focusable="false" />
\ No newline at end of file diff --git a/res/layout/apps_view.xml b/res/layout/apps_view.xml index 86d67e15f..7f09f7795 100644 --- a/res/layout/apps_view.xml +++ b/res/layout/apps_view.xml @@ -21,9 +21,6 @@ android:id="@+id/apps_view" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingTop="@dimen/apps_container_inset" - android:paddingBottom="@dimen/apps_container_inset" - android:background="@drawable/apps_customize_bg" android:descendantFocusability="afterDescendants"> <include layout="@layout/apps_reveal_view" diff --git a/res/layout/page_indicator_marker.xml b/res/layout/page_indicator_marker.xml index 686d27569..564a95811 100644 --- a/res/layout/page_indicator_marker.xml +++ b/res/layout/page_indicator_marker.xml @@ -16,8 +16,8 @@ <com.android.launcher3.PageIndicatorMarker xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res-auto" - android:layout_width="16dp" - android:layout_height="16dp" + android:layout_width="12dp" + android:layout_height="12dp" android:layout_gravity="center_vertical"> <ImageView android:id="@+id/inactive" diff --git a/res/layout/user_folder.xml b/res/layout/user_folder.xml index 7a4d5e881..cd3a051ad 100644 --- a/res/layout/user_folder.xml +++ b/res/layout/user_folder.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- - Copyright (C) 2008 The Android Open Source Project + Copyright (C) 2015 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. @@ -34,30 +34,44 @@ android:layout_width="20dp" android:layout_height="20dp" /> - <com.android.launcher3.FolderCellLayout + <com.android.launcher3.FolderPagedView android:id="@+id/folder_content" android:layout_width="match_parent" android:layout_height="match_parent" - android:cacheColorHint="#ff333333" - android:hapticFeedbackEnabled="false" /> + launcher:pageIndicator="@+id/folder_page_indicator" /> </FrameLayout> - <com.android.launcher3.FolderEditText - android:id="@+id/folder_name" + <LinearLayout + android:id="@+id/folder_footer" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="#00000000" - android:fontFamily="sans-serif-condensed" - android:gravity="center_horizontal" - android:hint="@string/folder_hint_text" - android:imeOptions="flagNoExtractUi" - android:paddingBottom="@dimen/folder_name_padding" - android:paddingTop="@dimen/folder_name_padding" - android:singleLine="true" - android:textColor="#ff777777" - android:textColorHighlight="#ffCCCCCC" - android:textColorHint="#ff808080" - android:textCursorDrawable="@null" - android:textSize="14sp" /> + android:orientation="vertical" > + + <include + android:id="@+id/folder_page_indicator" + android:layout_width="wrap_content" + android:layout_height="12dp" + android:layout_gravity="center_horizontal" + layout="@layout/page_indicator" /> + + <com.android.launcher3.FolderEditText + android:id="@+id/folder_name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:background="#00000000" + android:fontFamily="sans-serif-condensed" + android:gravity="center_horizontal" + android:hint="@string/folder_hint_text" + android:imeOptions="flagNoExtractUi" + android:paddingBottom="@dimen/folder_name_padding" + android:paddingTop="@dimen/folder_name_padding" + android:singleLine="true" + android:textColor="#ff777777" + android:textColorHighlight="#ffCCCCCC" + android:textColorHint="#ff808080" + android:textCursorDrawable="@null" + android:textSize="14sp" /> + </LinearLayout> </com.android.launcher3.Folder>
\ No newline at end of file diff --git a/res/layout/user_folder_scroll.xml b/res/layout/user_folder_scroll.xml deleted file mode 100644 index 12e5097f3..000000000 --- a/res/layout/user_folder_scroll.xml +++ /dev/null @@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright (C) 2015 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.launcher3.Folder xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:launcher="http://schemas.android.com/apk/res-auto" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:background="@drawable/quantum_panel" - android:orientation="vertical" > - - <FrameLayout - android:id="@+id/folder_content_wrapper" - android:layout_width="match_parent" - android:layout_height="match_parent" > - - <!-- Actual size of the indicator doesn't matter as it is scaled to match the view size --> - - <com.android.launcher3.FocusIndicatorView - android:id="@+id/focus_indicator" - android:layout_width="20dp" - android:layout_height="20dp" /> - - <com.android.launcher3.FolderPagedView - android:id="@+id/folder_content" - android:layout_width="match_parent" - android:layout_height="match_parent" - launcher:pageIndicator="@+id/folder_page_indicator" /> - </FrameLayout> - - <LinearLayout - android:id="@+id/folder_footer" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal" - android:paddingStart="12dp" - android:paddingEnd="8dp" > - - <com.android.launcher3.FolderEditText - android:id="@+id/folder_name" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:layout_weight="1" - android:background="#00000000" - android:fontFamily="sans-serif-condensed" - android:gravity="start" - android:hint="@string/folder_hint_text" - android:imeOptions="flagNoExtractUi" - android:paddingBottom="@dimen/folder_name_padding" - android:paddingTop="@dimen/folder_name_padding" - android:singleLine="true" - android:textColor="#ff777777" - android:textColorHighlight="#ffCCCCCC" - android:textColorHint="#ff808080" - android:textCursorDrawable="@null" - android:textSize="14sp" /> - - <include - android:id="@+id/folder_page_indicator" - android:layout_width="wrap_content" - android:layout_height="12dp" - android:layout_gravity="top" - android:layout_marginTop="5dp" - layout="@layout/page_indicator" /> - - <LinearLayout - android:id="@+id/folder_sort" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="1" - android:layout_gravity="center_vertical" - android:gravity="end|center_vertical" > - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginEnd="8dp" - android:text="@string/sort_alphabetical" - android:textColor="#ff777777" - android:textSize="14sp" /> - - <Switch - android:id="@+id/folder_sort_switch" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:clickable="false" - android:duplicateParentState="true" - android:focusable="false" /> - </LinearLayout> - </LinearLayout> - -</com.android.launcher3.Folder>
\ No newline at end of file diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 7c99278a8..101b7558a 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -50,6 +50,8 @@ <dimen name="apps_container_width">0dp</dimen> <dimen name="apps_container_height">0dp</dimen> <dimen name="apps_container_inset">8dp</dimen> + <!-- Note: This needs to match the fixed insets for the search box --> + <dimen name="apps_container_fixed_bounds_inset">8dp</dimen> <dimen name="apps_grid_view_start_margin">52dp</dimen> <dimen name="apps_view_row_height">64dp</dimen> <dimen name="apps_view_section_text_size">24sp</dimen> |