cara membuat slider volume seperti JellyBean
Yang diperlukan :
1.apktool
2.winrar/zip
3.notepad++
4.framework-res.apk
langkah-langkah
1.decompile framework-re.apk
2.masuk folder res/layout/volume_adjust.xml
3.buka volume_adjust.xml dengan notepad++
3.hapus semua code dan ganti dengan ini
<?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/ic_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>
4.compile framewok-res.apk
5.move ke system/framework
Tidak ada komentar:
Posting Komentar