Skip to content
Permalink
Browse files

SystemUI: Advanced location tile

Includes the following:
* base: LocationTile detail (I968e26b6e5e4ad0acdb347c4acc03994b73ca74b)
* LocationTile: Behave like other tiles (I9767b9f2e812f85c664ff7721ff3d8dc9ba54aca)
* UI improvements for Oreo changes

Change-Id: I8ce53f535a8d52fead2e518316b4bbb716a06d75
Signed-off-by: Joey <joey@lineageos.org>
  • Loading branch information...
jrizzoli authored and luca020400 committed Jun 20, 2015
1 parent bdb84e4 commit f64d206d86a8587f73d691be5c89c27803f2508e
@@ -0,0 +1,29 @@
<!--
Copyright (C) 2017 The LineageOS Project
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="64dp"
android:height="64dp"
android:viewportWidth="48.0"
android:viewportHeight="48.0">

<path
android:fillColor="#4DFFFFFF"
android:pathData="M24.0,4.0c-7.7,0.0 -14.0,6.3 -14.0,14.0c0.0,10.5 14.0,26.0 14.0,26.0s14.0,-15.5 14.0,-26.0C38.0,10.3 31.7,4.0 24.0,4.0zM24.0,23.0c-2.8,0.0 -5.0,-2.2 -5.0,-5.0s2.2,-5.0 5.0,-5.0c2.8,0.0 5.0,2.2 5.0,5.0S26.8,23.0 24.0,23.0z"/>
<path
android:pathData="M24.0,4.0c-7.7,0.0 -14.0,6.3 -14.0,14.0c0.0,10.5 14.0,26.0 14.0,26.0l0.0,-21.0 c-2.8,0.0 -5.0,-2.2 -5.0,-5.0s2.2,-5.0 5.0,-5.0l0.0,-9.0z"
android:fillColor="#FFFFFFFF"/>
</vector>
@@ -0,0 +1,29 @@
<!--
Copyright (C) 2017 The LineageOS Project
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="64dp"
android:height="64dp"
android:viewportWidth="48.0"
android:viewportHeight="48.0">

<path
android:fillColor="#FFFFFFFF"
android:pathData="M24.0,4.0c-7.7,0.0 -14.0,6.3 -14.0,14.0c0.0,10.5 14.0,26.0 14.0,26.0s14.0,-15.5 14.0,-26.0C38.0,10.3 31.7,4.0 24.0,4.0zM24.0,23.0c-2.8,0.0 -5.0,-2.2 -5.0,-5.0s2.2,-5.0 5.0,-5.0c2.8,0.0 5.0,2.2 5.0,5.0S26.8,23.0 24.0,23.0z"/>
<path
android:pathData="M24.0,4.0c-7.7,0.0 -14.0,6.3 -14.0,14.0c0.0,10.5 14.0,26.0 14.0,26.0l0.0,-21.0 c-2.8,0.0 -5.0,-2.2 -5.0,-5.0s2.2,-5.0 5.0,-5.0l0.0,-9.0z"
android:fillColor="#4DFFFFFF"/>
</vector>
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2017 The LineageOS Project
Copyright (C) 2015-2017 The ParanoidAndroid 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/location_mode_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipChildren="false"
android:orientation="vertical" >

<com.android.systemui.volume.SegmentedButtons
android:id="@+id/location_buttons"
android:background="@drawable/segmented_buttons_background"
android:baselineAligned="false"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp" />

<RelativeLayout
android:id="@+id/location_introduction"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:background="@drawable/zen_introduction_message_background" >

<TextView
android:id="@+id/location_introduction_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:textDirection="locale"
android:lineSpacingMultiplier="1.20029"
android:textAppearance="@style/TextAppearance.QS.Introduction" />

<View
android:layout_width="0dp"
android:layout_height="16dp"
android:layout_below="@id/location_introduction_message"
android:layout_alignParentEnd="true" />

</RelativeLayout>
</LinearLayout>
@@ -105,4 +105,38 @@

<!-- Hint for custom lockscreen shortcuts -->
<string name="custom_swipe_hint">Swipe from icon for <xliff:g name="target">%s</xliff:g></string>

<!-- Content description of the location tile in quick settings when on, battery saving mode (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_quick_settings_location_battery_saving">Location reporting: battery saving mode.</string>
<!-- Content description of the location tile in quick settings when on, sensors only mode (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_quick_settings_location_gps_only">Location reporting: sensors only mode.</string>
<!-- Content description of the location tile in quick settings when on, high accuracy mode (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_quick_settings_location_high_accuracy">Location reporting: high accuracy mode.</string>

<!-- QuickSettings: Location (On, low-power) [CHAR LIMIT=NONE] -->
<string name="quick_settings_location_battery_saving_label">Battery saving</string>
<string name="quick_settings_location_battery_saving_label_twoline">Battery\nsaving</string>
<!-- QuickSettings: Location (On, gps-only) [CHAR LIMIT=NONE] -->
<string name="quick_settings_location_gps_only_label">GPS only</string>
<string name="quick_settings_location_gps_only_label_twoline">GPS only</string>
<!-- QuickSettings: Location (On, high-accuracy) [CHAR LIMIT=NONE] -->
<string name="quick_settings_location_high_accuracy_label">High accuracy</string>
<string name="quick_settings_location_high_accuracy_label_twoline">High\naccuracy</string>

<!-- QuickSettings: Location detail panel title [CHAR LIMIT=NONE] -->
<string name="quick_settings_location_detail_title">Location</string>
<!-- QuickSettings: Location detail panel menu title [CHAR LIMIT=NONE] -->
<string name="quick_settings_location_detail_menu_title">Select mode:</string>
<!-- [CHAR LIMIT=30] Location detail panel, high accuracy location mode -->
<string name="quick_settings_location_detail_mode_high_accuracy_title">High accuracy</string>
<!-- [CHAR LIMIT=30] Location detail panel, battery saving location mode -->
<string name="quick_settings_location_detail_mode_battery_saving_title">Battery saving</string>
<!-- [CHAR LIMIT=30] Location detail panel, device only location mode -->
<string name="quick_settings_location_detail_mode_sensors_only_title">Device only</string>
<!-- [CHAR LIMIT=130] Location detail panel, description for high accuracy mode -->
<string name="quick_settings_location_detail_mode_high_accuracy_description">Use GPS, Wi\u2011Fi, Bluetooth, or cellular networks to determine location </string>
<!-- [CHAR LIMIT=130] Location detail panel, description for battery saving mode -->
<string name="quick_settings_location_detail_mode_battery_saving_description">Use Wi\u2011Fi, Bluetooth, or cellular networks to determine location</string>
<!-- [CHAR LIMIT=130] Location detail panel, description for sensors only mode -->
<string name="quick_settings_location_detail_mode_sensors_only_description">Use GPS to determine your location</string>
</resources>

0 comments on commit f64d206

Please sign in to comment.
You can’t perform that action at this time.