[guide][dev] Tutorial on making volumebar like ICS on Gingerbread [easy]

Status
Not open for further replies.

abhi922

Senior Member
Jul 29, 2012
1,331
4,532
0
Toronto
hello guys,

today i m gonna tell u how to make ur volumebar like ICS on ur Gingerbread devices.....:)
its easy & can be made on any gingerbread device...

screenshot :->




Q :- what is needed [requirements ]??

1. apk tool or apkmultitools or any similar program for decompiling
2. notepad ++ [ i prefer it for editing xmls ]
3. decompiling & re-compiling knowlege. [refer my thread ]
4. a mind & given resources files....:p

tutorial :->

Q:- > Which xml deals with the ICS Volume Bar ??
A:-> framework-res.apk -> res -> layout -> volume_adjust.xml.

<------------------------------------- STEPS ------------------------------------->

1. open ur volume_adjust.xml .
2. Replace all ur code with mine given below & save it.

My ics styled volumebar code :-->

Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="@drawable/ics_panel_background" android:layout_width="300.0dip" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <TextView android:textAppearance="?textAppearanceMedium" android:id="@id/message" android:layout_width="0.0dip" android:layout_height="0.0dip" />
    <TextView android:textAppearance="?textAppearanceSmall" android:id="@id/additional_message" android:layout_width="0.0dip" android:layout_height="0.0dip" />
    <ImageView android:id="@id/other_stream_icon" android:padding="16.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" />
    <ImageView android:id="@id/ringer_stream_icon" android:padding="16.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" />
    <LinearLayout android:gravity="left|center" android:orientation="horizontal" android:layout_width="300.0dip" android:layout_height="60.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip">
        <ImageView android:background="@drawable/ics_volume_ac" android:padding="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
        <ProgressBar android:id="@id/level" android:layout_width="230.0dip" android:layout_height="32.0dip" android:layout_marginRight="16.0dip" android:progressDrawable="@drawable/ics_progress_horizontal_holo" style="?android:attr/progressBarStyleHorizontal" />
    </LinearLayout>
</LinearLayout>

3. Now extarct this given View attachment Sources.zip in drawable folder.
note:- u can also modify .9.png according to ur need..

4. Recompile ur framework-res.apk & push into system/app.


regards,
abhi922.


dont ask for permissions --> just give credits & thanks [nothing else ]:cool:
 
Last edited:

devloz

Senior Member
May 3, 2013
585
465
83
Nice.

Hmm...
- ICS volumebar
- ICS taskswitcher
- ICS setting switches
- ICS toggles
- ICS statusbar
- ICS-Themed Framework

It looks like we need only ICS framework base and anything else to make on our phones false ICS/JB :)

Nice volumebar. I've added it to my phone :).
 
Status
Not open for further replies.