diff options
| author | 2016-12-08 12:03:09 -0800 | |
|---|---|---|
| committer | 2016-12-08 12:03:09 -0800 | |
| commit | 376b1756d4869fc32341f2afcc03027d7be683a3 (patch) | |
| tree | 596de4edd7608aead60c179324d0a520decb8a93 | |
| parent | 6e5ff8a87d5d4e51ca040a9bb6ad50813ff45058 (diff) | |
sysui: add assets and dimentions for sw900dp
We are enabling all large (sw900dp) Android devices to have a
consistent sysui designed for bigger screen similar to Pixel C.
Bug: 32516898
Test: Locally on pixel c
Change-Id: Iefd81225dd8801d41976f080e1fa71a1712f92de
| -rw-r--r-- | core/res/res/values-sw900dp/dimens.xml | 27 | ||||
| -rw-r--r-- | packages/SystemUI/res/drawable-ldrtl-sw900dp-xhdpi/ic_sysbar_back.png | bin | 0 -> 2497 bytes | |||
| -rw-r--r-- | packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_back.png | bin | 0 -> 2371 bytes | |||
| -rw-r--r-- | packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_back_ime.png | bin | 0 -> 2389 bytes | |||
| -rw-r--r-- | packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_home.png | bin | 0 -> 3323 bytes | |||
| -rw-r--r-- | packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_menu.png | bin | 0 -> 15925 bytes | |||
| -rw-r--r-- | packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_recent.png | bin | 0 -> 895 bytes | |||
| -rw-r--r-- | packages/SystemUI/res/drawable-sw900dp/ic_ime_switcher_default.xml | 25 | ||||
| -rw-r--r-- | packages/SystemUI/res/values-sw900dp/config.xml | 24 | ||||
| -rw-r--r-- | packages/SystemUI/res/values-sw900dp/dimens.xml | 40 |
10 files changed, 116 insertions, 0 deletions
diff --git a/core/res/res/values-sw900dp/dimens.xml b/core/res/res/values-sw900dp/dimens.xml new file mode 100644 index 000000000000..11092b2cb9e9 --- /dev/null +++ b/core/res/res/values-sw900dp/dimens.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2016, 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> + + <!-- Height of the bottom navigation / system bar. --> + <dimen name="navigation_bar_height">56dp</dimen> + + <!-- Height of the bottom navigation bar in landscape; often + the same as @dimen/navigation_bar_height --> + <dimen name="navigation_bar_height_landscape">56dp</dimen> + +</resources> diff --git a/packages/SystemUI/res/drawable-ldrtl-sw900dp-xhdpi/ic_sysbar_back.png b/packages/SystemUI/res/drawable-ldrtl-sw900dp-xhdpi/ic_sysbar_back.png Binary files differnew file mode 100644 index 000000000000..94cb03237ac9 --- /dev/null +++ b/packages/SystemUI/res/drawable-ldrtl-sw900dp-xhdpi/ic_sysbar_back.png diff --git a/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_back.png b/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_back.png Binary files differnew file mode 100644 index 000000000000..fbdc93c17ee3 --- /dev/null +++ b/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_back.png diff --git a/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_back_ime.png b/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_back_ime.png Binary files differnew file mode 100644 index 000000000000..419518c099f3 --- /dev/null +++ b/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_back_ime.png diff --git a/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_home.png b/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_home.png Binary files differnew file mode 100644 index 000000000000..a2406b1408c1 --- /dev/null +++ b/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_home.png diff --git a/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_menu.png b/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_menu.png Binary files differnew file mode 100644 index 000000000000..50043ebe3b3d --- /dev/null +++ b/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_menu.png diff --git a/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_recent.png b/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_recent.png Binary files differnew file mode 100644 index 000000000000..c449449541f4 --- /dev/null +++ b/packages/SystemUI/res/drawable-sw900dp-xhdpi/ic_sysbar_recent.png diff --git a/packages/SystemUI/res/drawable-sw900dp/ic_ime_switcher_default.xml b/packages/SystemUI/res/drawable-sw900dp/ic_ime_switcher_default.xml new file mode 100644 index 000000000000..bcf9cacc45ae --- /dev/null +++ b/packages/SystemUI/res/drawable-sw900dp/ic_ime_switcher_default.xml @@ -0,0 +1,25 @@ +<!-- + ~ Copyright (C) 2016 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 + --> + +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="28.0dp" + android:height="28.0dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:pathData="M20.000000,5.000000L4.000000,5.000000C2.900000,5.000000 2.000000,5.900000 2.000000,7.000000l0.000000,10.000000c0.000000,1.100000 0.900000,2.000000 2.000000,2.000000l16.000000,0.000000c1.100000,0.000000 2.000000,-0.900000 2.000000,-2.000000L22.000000,7.000000C22.000000,5.900000 21.100000,5.000000 20.000000,5.000000zM11.000000,8.000000l2.000000,0.000000l0.000000,2.000000l-2.000000,0.000000L11.000000,8.000000zM11.000000,11.000000l2.000000,0.000000l0.000000,2.000000l-2.000000,0.000000L11.000000,11.000000zM8.000000,8.000000l2.000000,0.000000l0.000000,2.000000L8.000000,10.000000L8.000000,8.000000zM8.000000,11.000000l2.000000,0.000000l0.000000,2.000000L8.000000,13.000000L8.000000,11.000000zM7.000000,13.000000L5.000000,13.000000l0.000000,-2.000000l2.000000,0.000000L7.000000,13.000000zM7.000000,10.000000L5.000000,10.000000L5.000000,8.000000l2.000000,0.000000L7.000000,10.000000zM16.000000,17.000000L8.000000,17.000000l0.000000,-2.000000l8.000000,0.000000L16.000000,17.000000zM16.000000,13.000000l-2.000000,0.000000l0.000000,-2.000000l2.000000,0.000000L16.000000,13.000000zM16.000000,10.000000l-2.000000,0.000000L14.000000,8.000000l2.000000,0.000000L16.000000,10.000000zM19.000000,13.000000l-2.000000,0.000000l0.000000,-2.000000l2.000000,0.000000L19.000000,13.000000zM19.000000,10.000000l-2.000000,0.000000L17.000000,8.000000l2.000000,0.000000L19.000000,10.000000z" + android:fillColor="@color/navigation_bar_icon_color"/> +</vector> diff --git a/packages/SystemUI/res/values-sw900dp/config.xml b/packages/SystemUI/res/values-sw900dp/config.xml new file mode 100644 index 000000000000..182fa3661a30 --- /dev/null +++ b/packages/SystemUI/res/values-sw900dp/config.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2016, 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> + + <!-- Nav bar button default ordering/layout --> + <string name="config_navBarLayout" translatable="false">space[.2],back,home;space;menu_ime,recent,space[.2]</string> + +</resources> diff --git a/packages/SystemUI/res/values-sw900dp/dimens.xml b/packages/SystemUI/res/values-sw900dp/dimens.xml new file mode 100644 index 000000000000..72e10c26ddd4 --- /dev/null +++ b/packages/SystemUI/res/values-sw900dp/dimens.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (c) 2016, 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> + + <!-- All ryu nav buttons are th same size --> + <dimen name="button_size">80dp</dimen> + <dimen name="navigation_side_padding">@dimen/button_size</dimen> + <dimen name="navigation_key_width">@dimen/button_size</dimen> + <dimen name="navigation_extra_key_width">@dimen/button_size</dimen> + + <!-- The maximum width of the navigation bar ripples. --> + <dimen name="key_button_ripple_max_width">76dp</dimen> + + <!-- The padding around the navigation buttons --> + <dimen name="navigation_key_padding">5dp</dimen> + + <!-- The inner radius of the halo. --> + <dimen name="halo_inner_radius">12dp</dimen> + + <!-- The thickness of the halo. --> + <dimen name="halo_thickness">1dp</dimen> + + <!-- The diameter of the halo. This is 2*(halo_inner_radius + halo_thickness). --> + <dimen name="halo_diameter">26dp</dimen> +</resources> |