Aqua Dark Material Theme for CM12

XDA Senior MemberSimix93prepared a nice looking theme changing the original colors into shades of green. … more

Fonts Collection for CyanogenMod 12

Check out this collection of amazing fonts ready to make your CyanogenMod 12 ROM even more beautiful. … more

Send Links to Any Nearby Device with CaastMe

There already are many solutions on the Google Play store if you want to send a link to one of … more

Samsung Galaxy S4 Is Getting Lollipop Update in Russia

Samsung Galaxy S4 users in Russia are getting the Lollipop update via OTA. The update … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Guide]How to Add Volume Slider

OP mohawk97

4th May 2014, 06:19 PM   |  #1  
OP Member
Flag Perak
Thanks Meter: 52
60 posts
Join Date:Joined: Mar 2014
Hi All Member Xda Today I want to guide you how to add volume slider

-Know How to Decompile\Recompile

1.Download The File In Attachment

2.Decompile Your SystemUI.apk

3.Extract the file that have been download from attachment put in correct place

4.Open res\layout\statusbar_expanded.xml

5.Put This Code On The Statusbar_expanded

<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="44.0dip" android:baselineAligned="false">
<include layout="@layout/slider_controls" />

6.Save And Recompile

-Decompile Back The SystemUI.apk

7.Open Res\Values\public.xml

find this code was the result of a drawable (WATCH / REMEMBER WHEN REQUIRED LATER IN SMALI)
**** <public type="drawable" name="ic_volume_media" id="0x7f020XXX" />
**** <public type="drawable" name="ic_volume_notif" id="0x7f020XXX" />
**** <public type="drawable" name="ic_volume_ringer" id="0x7f020XXX" />
**** <public type="drawable" name="ic_volume_system" id="0x7f020XXX" />

8. Open smali/com/b16h22/MediaVolumeSlider.smali
*** Find 0x7f0200b6 code ic_volume_media replace with hex code themselves (0x7f020XXX)
9. Open smali/com/b16h22/NotificationVolumeSlider.smali
*** search code to hex code themselves 0x7f0200b7 replace ic_volume_notif (0x7f020XXX)
10. Open smali/com/b16h22/RingerVolumeSlider.smali
*** search code to hex code themselves 0x7f0200b8 replace ic_volume_ringer (0x7f020XXX)
11. Open smali/com/b16h22/SystemVolumeSlider.smali
*** search code to hex code themselves 0x7f0200b9 replace ic_volume_system (0x7f020XXX)

*hex code for each different rom so you replace 0x7f020XXX = Your task is to replace xxx ente suit your ui public.xml
12. Save and Compile

If This Thread Illegal Please Delete

Im Just Noob

Please Press Thaxs To Support My Work




Attached Files
File Type: zip - [Click for QR Code] (21.2 KB, 599 views)
Last edited by mohawk97; 4th May 2014 at 06:29 PM. Reason: not put credit
The Following 4 Users Say Thank You to mohawk97 For This Useful Post: [ View ]
4th May 2014, 06:28 PM   |  #2  
ardelsan's Avatar
Flag Olongapo
Thanks Meter: 25
40 posts
Join Date:Joined: May 2013
Thats b16h22 smali. Put a credits to sir b16h22.
4th May 2014, 06:33 PM   |  #3  
D2Y aka E's Avatar
Senior Member
Flag muara wahau (borneo)
Thanks Meter: 58
289 posts
Join Date:Joined: Feb 2014
nice tutor...
4th May 2014, 06:36 PM   |  #4  
OP Member
Flag Perak
Thanks Meter: 52
60 posts
Join Date:Joined: Mar 2014
Talking Thaxs sir
Originally Posted by D2Y aka E

nice tutor...

Please Press Thaxs
The Following User Says Thank You to mohawk97 For This Useful Post: [ View ]
4th May 2014, 07:40 PM   |  #5  
Senior Member
Flag Kiev
Thanks Meter: 29
217 posts
Join Date:Joined: Oct 2013
thanks to all
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-05-04-20-23-11.png
Views:	497
Size:	225.8 KB
ID:	2725494  
4th May 2014, 08:17 PM   |  #6  
OP Member
Flag Perak
Thanks Meter: 52
60 posts
Join Date:Joined: Mar 2014
Talking Welcome
Originally Posted by the_vanya1

thanks to all

Welcome Sir
19th August 2014, 07:28 PM   |  #7  
Senior Member
Flag visakhapatnam
Thanks Meter: 67
232 posts
Join Date:Joined: Sep 2013
nice guide ...
keep going...
26th August 2014, 05:47 PM   |  #8  
Junior Member
Thanks Meter: 0
1 posts
Join Date:Joined: Aug 2014
What is error??
Attached Thumbnails
Click image for larger version

Name:	SC20140802-125748.png
Views:	112
Size:	115.5 KB
ID:	2913072  

Post Reply Subscribe to Thread

volume slider
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes