[Guide] BASIC Modding SystemUI [Part II]
[Guide] BASIC Modding SystemUI [Part II] - Hallo sobat Jogja Android Blog, Pada Artikel yang sobat baca kali ini dengan judul [Guide] BASIC Modding SystemUI [Part II], kami telah mempersiapkan artikel ini dengan baik untuk sobat baca dan ambil informasi didalamnya. Mudah-mudahan isi postingan [Guide] BASIC Modding SystemUI [Part II] yang kami tulis ini dapat sobat Jogja Android Blog pahami. Baiklah, selamat membaca sambil menikmati kopi.
Intro :
Tentunya smua guide di bawah bkn murni temuan ane.
Hasil dari gugling, xda , dan bantuan dari teman2 user android.
Requirement :
- Brain,patient and logic
- Compile apk tools : apktool,apkmultitool,ticklemyandroid,mitools dsb..
- Knowledge Compile apk and sign
- Notepad ++
1. Statusbar
1.5 mengganti textsize dan textcolor
textsize = ukuran teks (.0dip)
textcolor = warna teks ( #hex color values )
utk color hex values bs gugling utk cari2 info
Batery Percentage di res/layout/gemini_status_bar.xml
<TextView android:textSize="12.0sp" android:textColor="@*android:color/white" android:id="@id/percentage" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
Statusbar clock dan date di res/value/style.xml
<style name="TextAppearance.StatusBar.TextButton" parent="@*android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearance</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
1.6 Hide clock / batery
gemini_status_bar.xml
Line batery
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />Line Clock
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
layout_width dan height di ganti mjd 0.0dip
Spt ini
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
2. Statusbar expanded header
2.1 Change background with image background atau transparan
Tambahkan image png di drawable-hdpi. Contoh : expanded_header.png
android:background="@drawable/blablablabla" ----------ganti blablablabla dng nama image yg ente tambahin td
Sehingga mjd spt ini
android:background="@drawable/expander_header"
Jika ingin transparan, ckp ganti dng color hex values #00000000
android:background="#00000000"
Primary Header
Line 2
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"/>
Clock and date background
Line 5
<RelativeLayout android:enabled="false" android:id="@id/datetime" android:background="@drawable/ic_notify_button_bg" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
Button notify clear,notify quicksetting , notify open dan notify setting background
Line 12 13 16 17
<ImageView android:id="@id/header_settings_button" android:background="@drawable/ic_notify_button_bg" android:visibility="gone" android:layout_width="46.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_settings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:background="@drawable/ic_notify_button_bg" android:layout_width="46.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
<ImageView android:id="@id/settings_button" android:background="@drawable/ic_notify_button_bg" android:layout_width="46.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_settings" android:scaleType="center" android:contentDescription="@string/accessibility_desc_quick_settings" />
<ImageView android:id="@id/notification_button" android:background="@drawable/ic_notify_button_bg" android:visibility="gone" android:layout_width="46.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notifications" android:scaleType="center" android:contentDescription="@string/accessibility_notifications_button" />
2.2 mengganti textsize dan textcolor clock dan date
textsize = ukuran teks (.0dip)
textcolor = warna teks ( #hex color values )
utk color hex values bs gugling utk cari2 info
res/values/style.xml
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:fontFamily">sans-serif-light</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:textAllCaps">true</item>
</style>
3. Statusbar expanded
3.1 Slide down notification dan quicksetting background
Mennganti dng image :
drawable-hdpi, ganti notification_panel.9.png dng image lain. Setelah di ganti hapus patch .9 shingga mjd notification_panel.png
Transparan :
res/layout/gemini_status_bar_expanded.xml
Line 2
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_margin_left"/>android:background="@drawable/notification_panel_bg" --------ganti dng #00000000
spt ini
android:background="#00000000"
Note : not fully transparent
3.2 Quicksettings tile Icon background
Caranya sama spt di atas tinggal mengganti di android:background
res/layout/quick_settings_tile.xml
Line 2
<com.android.systemui.statusbar.phone.QuickSettingsTileView android:background="@drawable/qs_tile_background" android:layout_width="wrap_content" android:layout_height="@dimen/quick_settings_cell_height"/>
3.3 Mengganti jumlah kolom quicksettings tile
default kolom adalah 3
res/values/integers.xml
<integer name="quick_settings_num_columns">3</integer>
ganti 3 mjd 4 atau 5
3.4 Mengganti textsize dan textcolor title icon quicksettings dan nama operator sim
res/values/style.xml
<style name="TextAppearance.QuickSettings.TileView" parent="@style/TextAppearance.QuickSettings">Klo mau di hide tinggal kasih angka 0.0dip di textsize
<item name="android:textSize">12.0dip</item>
<item name="android:textColor">#ffcccccc</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Network" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff999999</item>
</style>
3.5 Merubah height notification kolom dan height gap antar kolom
res/values/dimens
<dimen name="notification_min_height">64.0dip</dimen>
<dimen name="notification_max_height">256.0dip</dimen>
<dimen name="notification_row_min_height">70.0dip</dimen>
<dimen name="notification_row_max_height">260.0dip</dimen>
<dimen name="notification_divider_height">3.0dip</dimen>
3.6 Merubah height kolom quicksettings tile panel dan heigh gap antar kolom
<dimen name="quick_settings_cell_height">110.0dip</dimen>
<dimen name="quick_settings_cell_gap">4.0dip</dimen>
Semoga bermanfaat.....
Thank to :
Martin Ind
Group FB M.a.a.a.D Reborn
Demikian Artikel dengan judul [Guide] BASIC Modding SystemUI [Part II]
Mudah-mudahan bisa memberi manfaat untuk sobat Jogja Android Blog semua. Baiklah, sampai jumpa di postingan artikel lainnya.
Sobat Jogja Android Blog sekarang membaca artikel [Guide] BASIC Modding SystemUI [Part II] dengan alamat link https://jogjandroidz.blogspot.com/2014/11/guide-basic-modding-systemui-part-ii.html
0 Response to "[Guide] BASIC Modding SystemUI [Part II]"
Post a Comment