[GUIDE] 8 Navigation Bar Button (only portrait)
[GUIDE] 8 Navigation Bar Button (only portrait) - Hallo sobat Jogja Android Blog, Pada Artikel yang sobat baca kali ini dengan judul [GUIDE] 8 Navigation Bar Button (only portrait), kami telah mempersiapkan artikel ini dengan baik untuk sobat baca dan ambil informasi didalamnya. Mudah-mudahan isi postingan [GUIDE] 8 Navigation Bar Button (only portrait) yang kami tulis ini dapat sobat Jogja Android Blog pahami. Baiklah, selamat membaca sambil menikmati kopi.
Harus paham basic menggunakan apktool, info dapat di baca Decompile dan Recompile apk via HPLangkah - langkah :
1. Decompile SystemUI.apk
2. Masuk folder SystemUI/res/layout/navigation_bar.xml
cari dan hapus script ini ( dibwahnya <FrameLayout android:id="@id/rot0" ) :
<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="false">
<View android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
</LinearLayout>
------------>>>- Lalu ganti dengan ini - :
<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="false">
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="40.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="40.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="40.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:gravity="center" android:layout_gravity="center" android:id="@+id/vol_down" android:layout_width="40.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_sysbar_vol_down" android:layout_toRightOf="@id/home" android:contentDescription="volume down" systemui:keyCode="25" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:gravity="center" android:layout_gravity="center" android:id="@+id/vol_up" android:layout_width="40.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_sysbar_vol_up" android:layout_toRightOf="@+id/vol_down" android:contentDescription="volume up" systemui:keyCode="24" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:gravity="center" android:layout_gravity="center" android:id="@+id/camera" android:layout_width="40.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_sysbar_camera" android:layout_toRightOf="@+id/vol_up" android:contentDescription="camera" systemui:keyCode="27" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/newmenu" android:layout_width="40.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="newmenu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/lock" android:layout_width="40.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_weight="0.0" android:contentDescription="lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
</LinearLayout>
3. Merger atau copas bahan nya sesuai dengan penempatan foldernya.
4. Recompile sign push done
Nb : kalau pengen landscape jadi 8 button juga , kembangkan sendiri aja yak ,... hi hi i i i :v
Clue buat landscape :
- Masukin aja script yg ada +id/bla bla (ada 4 buah) ke bagian landscape . alias dideretan dibwah <FrameLayout android:id="@id/rot90" itu adl area landscape nya
- Layout width ma height ditukar keterangan nya . coz posisi landscape itu vertikal klo msh ori. Klo acak2 an mainin ukuran dip width nya pake feeling aja.
- Gambar png vol up down kmgkinan jg diubah utk orientasi landscape
- highlight nya dganti highlight_land biar gak acak2 an
Tutorial ini ditulis dan tested :
Bang Bagger
Tested in Lenovo A390 mt6577 ics 4.0.4
JB 4.2.2
Credits :
- xda-developers
- maaad
- xtreme team
Demikian Artikel dengan judul [GUIDE] 8 Navigation Bar Button (only portrait)
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] 8 Navigation Bar Button (only portrait) dengan alamat link https://jogjandroidz.blogspot.com/2014/11/guide-8-navigation-bar-button-only.html
0 Response to "[GUIDE] 8 Navigation Bar Button (only portrait)"
Post a Comment