Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pie is an alternative navigation and system info interface. It replaces the standard navbar/statusbar with a navigation arc decorated with statusbar info. Important notes for developers: * When PIE is enabled apps don't even have to support immersive mode, they just have to check for configuration updates (sadly not even this is done by all apps). When PIE is disabled, apps have to setup an "onSystemUiVisibilityChangeListener" (best practice for PIE enabled, too). * Changed how ActivityInfo handles apps capabilities like recalculate screen size etc. Check code comment(s). Some info: * Quicksettings and notification panels are not available anymore, google now replace swipe up gesture. * Switched to kitkat colors. * General improvement to the code, reorganize classes. * Cleanup a lot and remove useless code. * Merge with immersive mode, they live in a homogenized state. * Improve immersive code a bit. * Upon first activation, toggling immersive tile, the user is presented with a dialog asking to enable or disable the feature. The preference can be resetted in "Backup & restore" in settings. * Reduce and center its trigger area. * While pie is triggered screen is keept on. * Depending on immersive mode, will show full or lite pie. * New circled snap points. * Detach pie on every rotation and/or when screen goes off while you have it triggered. * What else, what some slices? Key contributors: @bigbrother1984 @D4rKn3sSyS @Anu6is @David96 @drcmda Signed-off-by: Carlo Savignano <stevewatersy@gmail.com> Signed-off-by: Jesus David <jesdga95@gmail.com> Signed-off-by: Curtis Mayers <curtis.mayers@gmail.com> Signed-off-by: David L.-W. <david.leppla.weber@gmail.com> Signed-off-by: Paul Henschel <drcmda@gmail.com> Change-Id: I6d09b1e2124d14e6cec48b40ea0c7948ebbb02b3
- Loading branch information
Showing
30 changed files
with
2,336 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- Copyright (C) 2014 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. | ||
--> | ||
|
||
<com.android.systemui.statusbar.pie.PieControlPanel | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/pie_content_frame" | ||
android:background="#00000000" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
* Copyright (c) 2014 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. | ||
*/ | ||
--> | ||
<resources> | ||
<dimen name="pie_panel_padding">100dp</dimen> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (C) 2014 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. | ||
--> | ||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> | ||
<!-- Pie colors --> | ||
<color name="pie_menu_background">#C0000000</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (C) 2013,2014 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. | ||
--> | ||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> | ||
<!-- Pie controls dimensions --> | ||
<dimen name="pie_trigger_height">10dp</dimen> | ||
<dimen name="pie_trigger_width">150dp</dimen> | ||
<dimen name="pie_radius_start">65dp</dimen> | ||
<dimen name="pie_radius_increment">80dp</dimen> | ||
<dimen name="pie_outline">1.5dp</dimen> | ||
<dimen name="pie_chevron_start">230dp</dimen> | ||
<dimen name="pie_chevron_increment">2dp</dimen> | ||
<dimen name="pie_battery_start">155dp</dimen> | ||
<dimen name="pie_battery_increment">10dp</dimen> | ||
<dimen name="pie_status_start">155dp</dimen> | ||
<dimen name="pie_clock_size">54dp</dimen> | ||
<dimen name="pie_clock_offset">-20dp</dimen> | ||
<dimen name="pie_am_pm_size">14dp</dimen> | ||
<dimen name="pie_am_pm_offset">-52dp</dimen> | ||
<dimen name="pie_status_size">12dp</dimen> | ||
<dimen name="pie_status_offset">-14dp</dimen> | ||
<dimen name="pie_snap_radius">50dp</dimen> | ||
<dimen name="pie_snap_thickness">6dp</dimen> | ||
<dimen name="pie_touch_offset">15dp</dimen> | ||
<dimen name="pie_tab_title_height">24dp</dimen> | ||
<dimen name="pie_item_size">40dp</dimen> | ||
<dimen name="pie_panel_padding">20dp</dimen> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.