ads

dimanche 27 septembre 2015

[Guide][LP] How to Add Task Manager Panel to SystemUI



Hi!
Just wanna share simple mod: how to show task manager panel to statusbar expanded
Should work on stock or any custom rom using stock SystemUI

Requirement: rooted device & know how to decompile, recompile, sign apk

Steps
- decompile SystemUI.apk
- open res/values/bools.xml
- find

Code:


<bool name="config_showTaskManagerSwitcher">false</bool>

- change it to

Code:


<bool name="config_showTaskManagerSwitcher">true</bool>

- open res/layout/status_bar_expanded_header.xml
- find

Code:


<ImageButton android:id="@id/task_manager_button" android:visibility="gone" android:layout_width="48.0dip" android:layout_height="@dimen/status_bar_header_height" android:src="@drawable/ic_tasklist_switch_normal" android:layout_marginStart="8.0dip" android:layout_toStartOf="@id/settings_button" style="@android:style/Widget.Material.Button.Borderless" />
<ImageButton android:id="@id/somc_qs_button" android:background="@drawable/ripple_drawable" android:layout_width="@dimen/multi_user_switch_width_collapsed" android:layout_height="@dimen/status_bar_header_height" android:src="@drawable/ic_edit_settings" android:contentDescription="@string/accessibility_desc_edit_quick_settings" android:layout_toStartOf="@id/settings_button" style="@android:style/Widget.Material.Button.Borderless" />


- change them to

Code:


<ImageButton android:id="@id/task_manager_button" android:background="@drawable/ripple_drawable" android:visibility="gone" android:layout_width="@dimen/multi_user_switch_width_collapsed" android:layout_height="@dimen/status_bar_header_height" android:src="@drawable/ic_tasklist_switch_normal" android:layout_toStartOf="@id/settings_button" style="@android:style/Widget.Material.Button.Borderless" />
<ImageButton android:id="@id/somc_qs_button" android:background="@drawable/ripple_drawable" android:layout_width="@dimen/multi_user_switch_width_collapsed" android:layout_height="@dimen/status_bar_header_height" android:src="@drawable/ic_edit_settings" android:contentDescription="@string/accessibility_desc_edit_quick_settings" android:layout_toStartOf="@id/task_manager_button" style="@android:style/Widget.Material.Button.Borderless" />


- save all changes
- recompile, sign, push
- done

Screenshoot








Attached Thumbnails


Click image for larger version<br/><br/>Name:	Screenshot_2015-09-27-22-27-09.png<br/>Views:	N/A<br/>Size:	223.5 KB<br/>ID:	3488027
 














Aucun commentaire:

Enregistrer un commentaire