Saturday, July 06, 2019

Guide add play button in N or O panel



Play button in N or O panel



ok, let's start



1. Decompile your Systemui.apk

2. Merge all filles

3. Add this line in your N or O panel.xml


< FrameLayout android:layout_gravity="center" android:layout_width="45.0dip" android:layout_height="45.0dip" android:layout_margin="5.0dip">
	< com.android.systemui.media.MusicControl android:layout_gravity="center" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content">
		< com.android.systemui.qs.header.PlayToggle android:layout_gravity="center" android:id="@+id/header_qs_play" android:background="@drawable/ripple_drawable" android:layout_width="@dimen/expanded_qs_tile_icon_size" android:layout_height="@dimen/expanded_qs_tile_icon_size" style="@android:style/MediaButton.Play" />
	< /com.android.systemui.media.MusicControl>
< /FrameLayout>

4. Open dimens.xml and add this line above </resource>

< dimen name="expanded_qs_tile_icon_size">24.5dip< /dimen>

5. Now Recompile and Decompile for Replacing public id 

    #0x7f020208 #


< public type="drawable" name="ic_qs_pause" id="0x7f020208" />

     #0x7f020209 #


< public type="drawable" name="ic_qs_play" id="0x7f020209" />

    #0x7f020208 #


< public type="drawable" name="ic_qs_play" id="0x7f020209" />

     #0x7f020209 #


< public type="drawable" name="ic_qs_play" id="0x7f020209" />

6. Recompile, sign, Finish...


*Material



Thanks To

MAIR
MAAAD
Nanank Haryono
Rentjong OS
SKYMOD
Y0U :*
Me (Aryo Wysata)

Mon, 03-Jun-2019 Jatirejo, Nagan Raya, Aceh.