:good: Hit THANKS button if you like this :good:
=====Credits;=====
Inspired from a post by @galaxy1210, i got the line code from there..
i dont know anything, i did this just by reading in this forum.. so, many thanks to XDA forum and all members..
so here you go..
=====Credits;=====
Inspired from a post by @galaxy1210, i got the line code from there..
i dont know anything, i did this just by reading in this forum.. so, many thanks to XDA forum and all members..
so here you go..
Requirements:
> Any tools to decompile and recompile apk (e.g ApkTool/AndroidMultitool)
> Notepad++
> Apks from your system; SystemUI.apk and framework-res.apk
GUIDE:
This steps will add Home Button on the left side status bar...;
STEP 1:
Open your ApkTool/Multitool.. Install framework-res.apk then Decompile your SystemUi.apk
STEP 2:
Go to your Decompiled_apk folder and navigate to res/layout/ and open status_bar.xml with notepad++
STEP 3:
Find this line;
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:alpha="@dimen/notification_icon_area_alpha">at that blank space, paste the code below;
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:gravity="right" android:id="@id/home" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:src="@drawable/ic_sysbar_recent" android:singleLine="true" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_back" systemui:keyCode="3" systemui:glowBackground="@drawable/ic_sysbar_highlight" />And this steps will add Lock Button on the right side status bar...;
STEP 4:
Find this line;
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />at that blank space, paste the code below;
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:src="@drawable/ic_sysbar_lock" android:singleLine="true" android:layout_toRightOf="@id/recent_apps" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />And then save the modded status_bar.xml
STEP 6:
make your pict (*.png) for both buttons, and paste it to folder drawable-xhdpi (res/layout/drawable-xhdpi)
or you can use pictures from the link below..
Follow this steps, if, and only if you want to change with S5 Toggles Setting
LAST STEP:
Recompile your SystemUi
Dont forget to copy META-INF and AndroidManifest.xml from your old apk to your new apk (compiled apk)
LINK: https://drive.google.com/folderview?...2M&usp=sharing
Screenshot as attached, mine looks great with 240dpi mod.. :highfive:
FAQ:
THANKS MATE
i hope this guide works for you..
i hope this guide works for you..
Aucun commentaire:
Enregistrer un commentaire