Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,008 Members 51,867 Now Online
XDA Developers Android and Mobile Development Forum

[Guide]How to Add Volume Slider

Tip us?
 
mohawk97
Old
(Last edited by mohawk97; 4th May 2014 at 05:29 PM.) Reason: not put credit
#1  
Member - OP
Thanks Meter 48
Posts: 60
Join Date: Mar 2014
Location: Perak
Phone [Guide]How to Add Volume Slider

Hi All Member Xda Today I want to guide you how to add volume slider

Terms:
-Know How to Decompile\Recompile
-Rooted
-Deodex

Tutorial:
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" />
</RelativeLayout>


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

Credit:B16H22

OGY

Me


Attached Files
File Type: zip VolumeSliders.zip - [Click for QR Code] (21.2 KB, 172 views)
The Following 3 Users Say Thank You to mohawk97 For This Useful Post: [ Click to Expand ]
 
ardelsan
Old
#2  
ardelsan's Avatar
Member
Thanks Meter 20
Posts: 40
Join Date: May 2013
Location: Olongapo
Default credits??

Thats b16h22 smali. Put a credits to sir b16h22.
 
D2Y aka E
Old
#3  
D2Y aka E's Avatar
Senior Member
Thanks Meter 49
Posts: 225
Join Date: Feb 2014
Location: muara wahau (borneo)
nice tutor...
My Work :



Join With Me on NubieTool Team


 
mohawk97
Old
#4  
Member - OP
Thanks Meter 48
Posts: 60
Join Date: Mar 2014
Location: Perak
Talking Thaxs sir

Quote:
Originally Posted by D2Y aka E View Post
nice tutor...

Please Press Thaxs
The Following User Says Thank You to mohawk97 For This Useful Post: [ Click to Expand ]
 
the_vanya1
Old
#5  
Member
Thanks Meter 6
Posts: 77
Join Date: Oct 2013
Location: Kiev
thanks to all
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-05-04-20-23-11.png
Views:	166
Size:	225.8 KB
ID:	2725494  
 
mohawk97
Old
#6  
Member - OP
Thanks Meter 48
Posts: 60
Join Date: Mar 2014
Location: Perak
Talking Welcome

Quote:
Originally Posted by the_vanya1 View Post
thanks to all
Welcome Sir
Tags
volume slider
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Android Wear App Review: Command Google Now with Commandr – XDA Developer TV

OK Google. Make Me a sandwich. How many times have you … more

Play Your Hits and Learn the Lyrics with NextGen Music Player

There are plenty of music players for Android available in Play Store. They … more

Control Your Toast Notifications with SlicedToasts

Toasts are delicious, even in their Android flavor. In Android, toast doesn’t lead … more

Rotation Lets You Take Full Control of Your Device’s Orientation Settings

To be brutally honest, the native options for screen … more