OK like the title said this guide is for :
- Adding Actionbar back button like in ICS/JB
- Changing titlebar height and settings background
First thing if u want look of ICS/JB Settings go here
Second if u want Wifi/Bt buttons/toggles fo here
Also this, placing a custom icon on the title bar of a certain app here
What Is Required :
? Brain function - but not all function dont worry
? Rooted phone
? Notepad++(for opening build.prop files)
? Android Commander
? Tool for decompiling jar files - apkmanager/apktool/virtous or...
Click to expand...
Click to collapse
Adding Actionbar back button like in ICS/JB :
*This part is for adding back button in "About Phone" section but if u have free time (your gonna need it!)
same metod can be used for rest of Settings categories, just have to find them... like for "Development" changes
have to be made in development_prefs.xml, for Display there is display_settings.xml.. and androidmanifest.xml ofc!
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. STEP - DECOMPILE Settings.apk
res/xml/device_info_settings.xml
add this line :
Code:
<CheckBoxPreference android:layout="@layout/actionbar_device_info_preferences" android:title="@string/about_settings" android:key="device_info_ab_settings" />
bellow:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
2. STEP - Open your Android-Manifest.xml and change :
Code:
<activity android:label="@string/device_info_settings" android:name="DeviceInfoSettings" android:configChanges="keyboardHidden|orientation">
to this :
Code:
<activity [COLOR="Red"]android:theme="@*android:style/Theme.Black.NoTitleBar"[/COLOR] android:label="@string/device_info_settings" android:name="DeviceInfoSettings" android:configChanges="keyboardHidden|orientation">
3. STEP - Download setfiles.rar and push files to your decompiled Settings.apk
4. STEP - Re-sign your apk and push it to system/app.
5. STEP - Because we made change to androidmanifest we have to make change to services.jar also
Decompile /system/framework/services.jar
com/android/server/PackageManagerService.smali, look for
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921 [COLOR="DeepSkyBlue"]- this number could be different in your files[/COLOR]
change it to :
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 10
.parameter "s1"
.parameter "s2"
.prologue
.line 1921
[COLOR="Red"] const/4 v6, 0x0
return v6[/COLOR]
6. STEP - Re-sign your apk and push it to system/framework.
Changing titlebar height and settings background :
1. STEP - DECOMPILE framework-res.apk
res/values/styles.xml
2. STEP - find this lines :
Code:
<style name="Theme">
bellow that find something like :
Code:
<item name="windowBackground">@drawable/screen_background_dark</item>
change it to :
Code:
<item name="windowBackground">@drawable/[COLOR="Red"]mybackground[/COLOR]</item>
then find :
Code:
<item name="windowTitleSize">25.0dip</item>
change it to :
Code:
<item name="windowTitleSize">[COLOR="Red"]48.0dip[/COLOR]</item>
3. STEP - Download framefiles.rar and push files to your decompiled framework-res.apk
4. STEP - Re-sign your apk and push it to system/framework.
If I forgot something dont upset it will be upload.
Credits:
Sniper Killer
Recognized Contributor
SpaceCaker
Recognized Themer / Contributor
reserved
background*
tomgacz said:
background*
Click to expand...
Click to collapse
changed.
help
Vesavoj said:
reserved
Click to expand...
Click to collapse
I want to center the text in titlebar.please help me.thanks
sorry my english is so bad
desire1990 said:
I want to center the text in titlebar.please help me.thanks
sorry my english is so bad
Click to expand...
Click to collapse
Decompile framework-res.apk
res/layout/screen_title.xml
change this line :
Code:
<TextView android:gravity="center_vertical" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
to this :
Code:
<TextView android:gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
thank!!
Vesavoj said:
Decompile framework-res.apk
res/layout/screen_title.xml
change this line :
Code:
<TextView android:gravity="center_vertical" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
to this :
Code:
<TextView android:gravity="[COLOR="Red"]center[/COLOR]" android:id="@id/title" android:background="@null" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" style="?android:attr/windowTitleStyle" />
Click to expand...
Click to collapse
thank u so much!!! <3
---------- Post added at 01:55 AM ---------- Previous post was at 01:39 AM ----------
I tried, but failed :crying:
Related
I'm using a blue theme, but the loading bar always insisting on staying orange, these themes are never, always in the same color as the standard yellow / orange.
googled a bit and found no topic how, so I'll post a tutorial on how to make a very simple way ..
* color of the volume bar.
* color of slash loading browser.
* download progress bar color.
is actually a file only those responsible for the color, the file is within the framework-res.apk.
step by step;
* Has sdk/java/adb/apktool/7zip/Notepad + + installed (obviously).
* copy to your pc the framework-res.apk:
# adb pull /system/framework/framework-res.apk
* Decompile the apk:
#apktool d framework-res.apk
* find this file: framework-res\res\drawable\progress_horizontal.xml
*Open it with notepad++;
*note these lines:
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background">
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff9d9e9d" android:endColor="#ff747674" android:angle="270.0" android:centerY="0.75" android:centerColor="#ff5a5d5a" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#800099cc" android:endColor="#a0ffcb00" android:angle="270.0" android:centerY="0.75" android:centerColor="#8000aae3" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff0099cc" android:endColor="#ffffcb00" android:angle="270.0" android:centerY="0.75" android:centerColor="#ff00aae3" />
</shape>
</clip>
</item>
</layer-list>
Click to expand...
Click to collapse
* The sets marked in red are the values to be changed, the default is that this file is BLUE!
* if you want to put another color, just color code the researches in photoshop or another image editor.
ex:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
PS: attention! only the last six digits, the first two are responsible for the transparency!
* make a copy of the original framework-res.apk elsewhere. (to ensure that you have saved an original).
* Compile again.
#apktool b framework-res framework-res2.apk
* we now have two files "apk"
- framework-res. apk
- framework-res2. apk
* Open both files with 7zip (OPEN ONLY, NOT EXTRACT).
* copy the file "progress_horizontal.xml" compiled in "framework-res2.apk to the original framework-res.apk. respecting the path /res/drawable
*restart, open recovery, mounts & storage = mount system
#adb push framework-res.apk /system/framework
#adb shell
#cd /system/framework
#chmod 644 framework-res.apk
restart...
Awesome how do I edit the yellow bar present when increasing/decreasing the volume ??
Trying to learn to theme. What programs do I need?
Sent from my PC36100 using Tapatalk 2
About :
This is for make CM7 ROM like Jellybean ROM layout on statusbar.
Credits :
- To Cool
- GDX Team
- DCSMS
- big thanks goes to AChep
Contents :
Post one:
-> Set up
-> Make Clock, date and day
-> Make Network speed on statusbar
-> Customize clear button
Tool used :
-> Apk Tool / Apk Manager / ToolAlite
-> SystemUI.apk
-> Notepad++
Screenshot :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Guide 1.0 : How To Make Date, Time and Day on Status Bar Expanded
1. you need to decompile your SystemUI.apk (please dont tell me how to do that)
2. extract my jelly.zip.. download on attachment below
3. copy 2 files blablablajellyblablabla.smali to SystemUI.apk/smali/com/android/systemui/statusbar/here
4. now you need to modify status_bar_expanded.xml find on SystemUI.apk/res/layout/here
for first you need to find this line :
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
paste this code below :
Code:
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
5. now recompile your file and push to system/app
=======================================================================================================
Screenshot :
Click to expand...
Click to collapse
Guide 2.0 : How To Create Network Traffic Speed on Status Bar
1. you need to decompile your SystemUI.apk (please dont tell me how to do that)
2. extract my network.zip.. download on attachment below
3. copy folder smali to SystemUI.apk/here
4. now you need to modify status_bar.xml find on SystemUI.apk/res/layout/here
for first you need to find this line :
Code:
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
paste this code below :
Code:
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true">
<in.jmkl.dcsms.statusbargreper.DataTrafik android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
5. now recompile your file and push to system/app
=======================================================================================================
Screenshot :
Click to expand...
Click to collapse
Guide 3.0 : How To Make Customization Your Clear Button
1. you need to decompile your SystemUI.apk (please dont tell me how to do that)
2. extract my clearbutton.zip.. download on attachment below
3. copy 3 files to drawable-xxxx (xxxx is by your phone, mdpi, hdpi, ldpi or xhdpi)
4. now you need to modify xxx.xml (create by your self), styles.xml, status_bar_expanded.xml
for first you need to create clear_button.xml on drawable folder and copy this line to your xml file :
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/btn_clear_focus" />
<item android:state_window_focused="false" android:state_enabled="false" android:drawable="@drawable/btn_clear" />
<item android:state_pressed="true" android:drawable="@drawable/btn_clear_pressed" />
<item android:state_focused="true" android:state_enabled="true" android:drawable="@drawable/btn_clear_focus" />
<item android:state_enabled="true" android:drawable="@drawable/btn_clear_focus" />
<item android:state_focused="true" android:drawable="@drawable/btn_clear_focus" />
<item android:drawable="@drawable/btn_clear_focus" />
</selector>
now, open the styles.xml on SystemUI.apk/res/values/here and copy this line in the end before </resources> line :
Code:
<style name="Awesome.Button" parent="@android:style/Widget.Button">
<item name="android:textAppearance">?android:textAppearanceSmallInverse</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:gravity">center</item>
<item name="android:background">@drawable/clear_button</item>
<item name="android:focusable">true</item>
<item name="android:clickable">true</item>
</style>
note : this line on red colors is pointed to your new xml file
Code:
<item name="android:background">@drawable/[COLOR="Red"]clear_button[/COLOR]</item>
now, open the status_bar_expanded.xml on SystemUI.apk/res/layout/here and find this line :
Code:
<TextView android:layout_gravity="center_vertical" android:id="@id/clear_all_button"
modify the line styles or paste my line like this :
Code:
<TextView android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
5. now recompile your file and push to system/app
Guide 4.0 : How to add settings button on Status Bar Expdanded
1. you need to decompile SystemUI.apk (please dont tell me how to do that)
2. download my zip from here and extract it
3. now you must modify status_bar_expanded.xml
for first you need to find this line :
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
after that line, add this line :
Code:
<ImageView android:layout_gravity="center_vertical" android:id="@id/settings_button" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:contentDescription="@string/accessibility_settings_button" />
now, you must open string.xml and add this line on bottom :
Code:
<string name="accessibility_settings_button">System settings.</string>
open ids.xml and add this line on bottom :
Code:
<item type="id" name="settings_button">false</item>
now, you must extract settingsshortcut.zip.. extract to your decompiled folder and then compile your SystemUI.apk this is for got public id number.. so after compiled, you must decompile again.
open public.xml and StatusBarService.smali. Find this line on public.xml :
Code:
<public type="id" name="settings_button" id="[COLOR="Red"]0x7f090027[/COLOR]" />
the red color may be different
find this line on StatusBarService.smali :
Code:
.field mScrollView:Landroid/widget/ScrollView
and then add this line below :
Code:
.field mSettingsBut:Landroid/view/View;
.field private mSettingsButListener:Landroid/view/View$. OnClickListener;
now, find this line :
Code:
iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mStopTracing:Ljava/lang/Runnable;
and then add this line below :
Code:
.line 1703
new-instance v0, Lcom/android/systemui/statusbar/StatusBarService$8;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/StatusBarService$8;-><init>
(Lcom/android/systemui/statusbar/StatusBarService;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/View $OnClickListener;
return-void.
find this line again :
Code:
iput v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mEdgeBorder:I
If not find, change v7 to v8
and then add this line below :
Code:
.line 333
const v7, [COLOR="Red"]0x7f090027[/COLOR]
invoke-virtual {v1, v7}, Lcom/android/systemui/statusba/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v7
iput-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/View;
.line 334
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/View;
iget-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/View $OnClickListener;
invoke-virtual {v7, v8}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
*for the red color on .line 333 you must change to your settings_button on your public.xml
*if your find iput v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mEdgeBorder:I so v7 change to v8. and the line will be like this :
Code:
.line 333
const v8, 0x7f090029
invoke-virtual {v2, v8}, Lcom/android/systemui/statusbar/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v8
iput-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/View;
.line 334
iget-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/View;
iget-object v9, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landroid/view/View $OnClickListener;
invoke-virtual {v8, v9}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
now, copy StatusBarService$8.smali to SystemUI.apk/smali/com/android/systemui/statusbar/here after that compile and push to system/app.
================================================== ================================================== ===
Guide 5.0 : How to add carrier label on statusbar close on
1. you need to decompile SystemUI.apk (please dont tell me how to do that)
2. now you must modify status_bar_tracking.xml
for first you need to find this line :
Code:
<com.android.systemui.statusbar.CloseDragHandle
and then paste this line below :
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
re-compile and push to system/app
for update
Nice tutorial
thanks
ariadelvana95 said:
Nice tutorial
thanks
Click to expand...
Click to collapse
with my pleasure..
I would spam your thanks button if you do this status bar for latest minicm7 2.2.1
Sent from my E15i using xda app-developers app
mantap !!! nice tutorial ! i've been searching for this tutorial and now i found it
what cm7 theme your using can u share?
heheh, that's my jelly bean statusbar
Where have I gone wrong?? Clear text is also displayed along with the image.
Have attached SystemUI.apk after doing all the mods (except network thing)
-------------------EDIT-----------------------------------
solved. Had to edit strings.xml
Now the problem is the clear button won't stay at the right corner. Screenshot attached..
Nice..
I like your guide..
Sent from my GT-S5660 using Tapatalk 2
CWM or AROMA installer???
Mobil cihazdan gönderildi..
aOS 2.3.6 BNC-GIO-R2
MMB-Tweaks_0.9_Fix
m.ali.ozkaya said:
CWM or AROMA installer???
Mobil cihazdan gönderildi..
aOS 2.3.6 BNC-GIO-R2
MMB-Tweaks_0.9_Fix
Click to expand...
Click to collapse
What is the point of your question??
:what:
Sent from my GT-S5660 using Tapatalk 2
Thanks man! nice guide
Next.....!
Guide 4.0 : How To Make Customization Your Setting Button ^0^
---------- Post added at 02:49 AM ---------- Previous post was at 02:47 AM ----------
Xr01d_GT said:
solved. Had to edit strings.xml
Now the problem is the clear button won't stay at the right corner. Screenshot attached..
Click to expand...
Click to collapse
how to edit strings.xml?
thanks
Doesn't work for me unfortunately. CM7 on LG P990. No status bar.
Xr01d_GT said:
Where have I gone wrong?? Clear text is also displayed along with the image.
Have attached SystemUI.apk after doing all the mods (except network thing)
-------------------EDIT-----------------------------------
solved. Had to edit strings.xml
Now the problem is the clear button won't stay at the right corner. Screenshot attached..
Click to expand...
Click to collapse
sorry mate I late for reply just have low connection on Indonesia.. for make dissapear "clear" text on clear button you need to edit string.xml
so, this is guide for it..
Open your string.xml on SystemUI.apk/res/values/here and find this line :
Code:
<string name="blablabla_clear_button">Clear</string>
now, you must modify the syntact like this :
Code:
<string name="blablabla_clear_button"/string>
do the same if you want dissapear the text for Notifications, On Going, No Notifications
Imperticus said:
Doesn't work for me unfortunately. CM7 on LG P990. No status bar.
Click to expand...
Click to collapse
please attach your logcat mate, maybe i can help you
x-dira said:
Thanks man! nice guide
Next.....!
Guide 4.0 : How To Make Customization Your Setting Button ^0^
---------- Post added at 02:49 AM ---------- Previous post was at 02:47 AM ----------
how to edit strings.xml?
thanks
Click to expand...
Click to collapse
Yes i will add this guide, but not now.. so wait for my guide updates..
m.ali.ozkaya said:
CWM or AROMA installer???
Mobil cihazdan gönderildi..
aOS 2.3.6 BNC-GIO-R2
MMB-Tweaks_0.9_Fix
Click to expand...
Click to collapse
This is mod guide, so you can modding systemui.apk by your self.. not flasable.zip
AiphNday said:
Nice..
I like your guide..
Sent from my GT-S5660 using Tapatalk 2
Click to expand...
Click to collapse
thanks mate will update if i not busy
Mockingbird said:
I would spam your thanks button if you do this status bar for latest minicm7 2.2.1
Sent from my E15i using xda app-developers app
Click to expand...
Click to collapse
just attach your systemui.apk
saldymhmd said:
mantap !!! nice tutorial ! i've been searching for this tutorial and now i found it
Click to expand...
Click to collapse
haha.. sama2 master
english : haha.. your welcome master
dredremon said:
what cm7 theme your using can u share?
Click to expand...
Click to collapse
i use my own rom.. not a theme
AChep said:
heheh, that's my jelly bean statusbar
Click to expand...
Click to collapse
yes mate.. hey everyone give thanks to AChep his owner of jelly layout date, time and day.. on updates i will add your name on OP post.. sorry i forget that.. i just remember you're a part of ginger dx team
Got it to work now
petrukgrinder said:
just attach your systemui.apk
Click to expand...
Click to collapse
Can u share systemui.apk
thanks
Hi mates I just want to share this guide of How to make a Floating Statusbar Like a Phablet/Tablet
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Original Thread
Hello, i just try to make my phone like a phablet/tablet with 4.0.4 or 4.1.2 android os last time, but i don't know i can make it a simple or not.
But now i can make it a "pop up manipulation" with some background manipulation too. So, here we go the tutorial will start now!
The first of this tutorial you must know about :
1. How to decompile/compile the apk file (don't ask here, you can search on google how to do that)
2. How to coding a xml file with some code
3. You must have a Apktool/ApkManager/ToolAlite by KuyaGaol
4. You must have a JDK and Latest Net framework for run Apktool/ApkManager/ToolAlite by KuyaGaol
5. You must take a beer! lol
Oke the first method is :
1. Download my Floating.zip
2. Pull the Framework-res.apk and SystemUI.apk
3. Do "if framework" on your Apktool/ApkManager/ToolAlite by KuyaGaol
4. Decompile SystemUI.apk
5. Extract my Floating.zip to your drawable directory. (you can extract on "drawable" or "drawable-mdpi" folder).
6. Open status_bar.xml from /res/layout/here and find this code, modify and save :
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"
and add this line code :
Code:
android:background="@drawable/trans"
or paste my line :
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#00000000" android:gravity="center" android:id="@id/date" android:background="@drawable/trans" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
7. Open status_bar_expanded.xml from /res/layout/here and find this code, modify and save :
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical"
and add this line code :
Code:
android:background="@drawable/bg"
or paste my line :
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:background="@drawable/bg" android:focusable="true" android:descendantFocusability="afterDescendants"
8. Open status_bar_tracking.xml from /res/layout/here and find this code. modify and save :
Code:
<View android:background="@drawable/shade_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" />
and change to this line :
Code:
<View android:background="@drawable/shade_bg" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_weight="1.0" />
Find this line :
Code:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
and change to this line :
Code:
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/trans" android:scaleType="fitXY" />
9. Recompile your SystemUI.apk project and push it to your phone to the /system/app directory
Thanks To :
- Rizalien
- Official Group Galaxy Young Indonesia
- Official Group Sony Xperia X8 Indonesia
- Tiny Anastasia Development Group
- DCSMS
@petrukgrinder
- and YOU!
Click to expand...
Click to collapse
can u share systemui.apk!?
thanks!
Sent from my LG-P500 using xda app-developers app
x-dira said:
can u share systemui.apk!?
thanks!
Sent from my LG-P500 using xda app-developers app
Click to expand...
Click to collapse
sorry but i am using different device
Sent from my GT-S5360 using xda premium
can u share guide mode quick panel with volume & brightness... in screenshot
Thanks
Sent from my LG-P500 using xda app-developers app
Hello today I am Bring My first thread how to ad AF Volume Panel to Android Mobile Its Very Easy Methods to Do it. I have waste many time to do make some smali codes so don't kang this smali .ok Lets Start
Requirement:
Apktool http://forum.xda-developers.com/showthread.php?t=1755243
Framework.jar from ur phone
Framework-res.apk from ur phone
Nice Brain to Understand
Instructions:
Step 1 :- Decompile Framework-res.apk
Step 2 :- Open decompiled folder / values / ids.xml and Merged down the Framework-res.zip with ur Decompiled Folder
Step 3 :-
Code:
<item type="id" name="warning_message_af">false</item>
before </resources>
Step 4 :- Open layout/volume_adjust.xml Remove All lines
Step 5 :- Add This
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="@drawable/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" />
<LinearLayout android:gravity="left|center" android:orientation="horizontal" android:layout_width="280.0dip" android:layout_height="45.0dip" android:layout_marginTop="6.0dip" android:layout_marginBottom="6.0dip">
<ImageView android:id="@id/other_stream_icon" android:padding="0.0dip" android:layout_width="42.0dip" android:layout_height="32.0dip" />
<ImageView android:id="@id/ringer_stream_icon" android:padding="0.0dip" android:layout_width="42.0dip" android:layout_height="32.0dip" />
<ProgressBar android:id="@id/level" android:layout_width="215.0dip" android:layout_height="32.0dip" android:layout_marginRight="16.0dip" android:progressDrawable="@drawable/progress_volume_adjust" style="?android:attr/progressBarStyleHorizontal" />
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/warning_message_af" android:layout_width="195.0dip" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginTop="3.0dip" android:layout_marginRight="15.0dip" android:layout_marginBottom="5.0dip" />
</LinearLayout>
</LinearLayout>
Step 6 :- Recompile the framework-res.apk
Step 7 :- Decompile The Output framework-res.apk one
Step 8 :- Open values/public.xml
Step 9 :- Search for
Code:
<public type="id" name="warning_message"
Step 10 :- Note Down public id we need
Step 11 :- Decompile framework.jar
Step 12 :- Downloads The Attachment and merged with ur Decompiled folder
Step 13 :- Open smali / android / view
Step 14 pen VolumePanel
Step 15 :- Search for 0x1020263
Step 16 :- You will See
HTML:
.line 148
const v4, 0x1020263
invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v4
check-cast v4, Landroid/widget/TextView;
iput-object v4, p0, Landroid/view/VolumePanel;->mWarningMessage:Landroid/widget/TextView;
Step 17 :- Change smali codes first list five digit like if my warning_message_af is 0x010[B20265][/B] Volume Panel ids is 0x1020263
then we have replace waring public codes id to volume panel ids only last five digit
Step 18 :- Recompile The Framework.jar
Step 19 :- Sign The The Two apps
Step 20:- Push to ur phone
Step 21 :- Happy Modding
Result:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Reserved
Reserved
What it does? screenshots?
..
Check
Mrinal Roy said:
..
Click to expand...
Click to collapse
Updated Check OP SS is Added
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi, today I want to help you port Android 5.0 framework
Guide its simple, you need to just know how to edit .xml files
1. How to port Dialog Window
Screen:
Click to expand...
Click to collapse
Tutorial
1. Decompile your framework-res apk
2. Go to /res/layout and open alert_dialog_holo.xml
3. Find the line that starts with the
Code:
<View android:id="@id/titleDividerTop"
and delete this line
Do the same with line the starts with
Code:
<View android:id="@id/titleDivider"
4. Now find this line
Code:
<TextView android:id="@id/message" android:paddingLeft="16.0dip" android:paddingTop="8.0dip" android:paddingRight="16.0dip" android:paddingBottom="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" style="?android:attr/textAppearanceMedium" />
And edit to look like this (red elements are elements which we are changing)
Code:
<TextView android:id="@id/message" [COLOR="Red"]android:paddingLeft="24.0dip"[/COLOR] android:paddingTop="8.0dip" [COLOR="Red"]android:paddingRight="24.0dip"[/COLOR] [COLOR="Red"]android:paddingBottom="24.0dip"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" style="?android:attr/textAppearanceMedium" />
5. Now we are going to edit buttons,
Find line with this id android:id="@id/buttonPanel" and delete from this line these three parameters
Code:
[COLOR="RoyalBlue"]android:divider="?dividerHorizontal"[/COLOR]
[COLOR="RoyalBlue"]android:showDividers="beginning"[/COLOR]
[COLOR="RoyalBlue"]android:dividerPadding="0.0dip"[/COLOR]
In this line (under line with id/buttonPanel)
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureWithLargestChild="true" android:layoutDirection="locale" style="?android:attr/buttonBarStyle">
add this paramteters, anywhere you want
Code:
android:layout_marginLeft="24.0dip" android:layout_marginRight="24.0dip" android:paddingBottom="16.0dip" android:paddingTop="16.0dip"
After adding, line should look like this
Code:
<LinearLayout android:orientation="horizontal" [COLOR="Red"]android:layout_marginLeft="24.0dip" [/COLOR][COLOR="Red"]android:layout_marginRight="24.0dip" [/COLOR][COLOR="Red"]android:paddingBottom="16.0dip"[/COLOR] [COLOR="Red"]android:paddingTop="16.0dip"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:measureWithLargestChild="true" android:layoutDirection="locale" style="?android:attr/buttonBarStyle">
6. Now we are going to lines which starts with <Button tag (should be 3 )
Change (IN ALL 3 LINES)
Code:
android:textSize="14.0sp"
to
Code:
android:textSize="[COLOR="Red"]17.0sp[/COLOR]"
Now, in lines with android:id="@id/button2" and android:id="@id/button3" add this tag
Code:
android:textAllCaps="true"
Lines shoud look like this:
Code:
<Button android:textSize="17.0sp" android:textAllCaps="true" android:id="@id/button2" ... />
<Button android:textSize="17.0sp" android:textAllCaps="true" android:id="@id/button3" ... />
• In line with
Code:
android:id="@id/button1"
add this:
Code:
android:textStyle="bold" android:textAllCaps="true" android:textColor="@color/holo_blue_light"
line should look like this
Code:
<Button android:textSize="17.0sp" android:textStyle="bold" android:textAllCaps="true" android:textColor="@color/holo_blue_light" android:id="@id/button1" .... />
(If you have any problem check my alert_dialog_holo.xml in attach)
7. Now save changes, recompile & sign apk and push to /system/framework
2. How to port List Separators
Screen:
Click to expand...
Click to collapse
Tutorial
1. Download list separators.rar from attach and extract it to your drawable-xxhdpi folder (if you dont' have it just create now folder in /res called drawable-xxhdpi)
2. Now open styles.xmlin /res/values
•Find this style
Code:
<style name="Widget.TextView.ListSeparator" parent="@style/Widget.TextView">
Under this style you find parameter <item name="textColor"> change his value to #ff009587
• Now, in this style find and delete this line:
Code:
<item name="background">@drawable/dark_header_dither</item>
•Now edit this line
Code:
<item name="layout_width">fill_parent</item>
to look like this:
Code:
<item name="layout_width">[COLOR="Red"]wrap_content[/COLOR]</item>
3. Now we are looking this line
Code:
<item name="android:background">@drawable/list_section_divider_holo_dark</item>
edit this line to look like this
Code:
<item name="android:background">@drawable/[COLOR="Red"]list_section_divider_holo_dark_lollipop[/COLOR]</item>
• Now search this line:
Code:
<item name="android:background">@drawable/list_section_divider_holo_light</item>
end edit to look like this
Code:
<item name="android:background">@drawable/[COLOR="Red"]list_section_divider_holo_light_lollipop[/COLOR]</item>
4.You're done! Now recompile, sign and push to /system/framework
01.11.2014
Added Dialog & Separators guides
My tutorial How to port Lolipop Check boxes and Radio buttons with animations
Cool
wow
I'll add some new stuffs ASAP
(UP)
Can you make for my resolution my resolution is ldpi please make it i want to try it please
because i can any theme created for my tablet my tablet is unknown but i know it's name
Ok
I'll made it for all res
What about animation bro
Sent from my ST25i using Tapatalk
Sir what is the color code are using in this <color name="holo_blue_light"></color>
Punkzappa09 said:
Sir what is the color code are using in this <color name="holo_blue_light"></color>
Click to expand...
Click to collapse
Is color from your framework-res (/res/values/colors)
Hello , thank you for your tutorial you know how to remove the lines in the settings ? This is an .xml file ?
Thank you .
Sure, can you post tour decompiled settings.apk?
KuaQ said:
Sure, can you post tour decompiled settings.apk?
Click to expand...
Click to collapse
If you give me the way I do , thank you .
EDIT : You need exactly ?
---------- Post added at 06:56 PM ---------- Previous post was at 06:27 PM ----------
KuaQ said:
Sure, can you post tour decompiled settings.apk?
Click to expand...
Click to collapse
Ok the simplest , I send you, thank you .
http://www.partage-facile.com/TXDUDPN0Q6/secsettings.zip.html
dragonballz said:
If you give me the way I do , thank you .
EDIT : You need exactly ?
---------- Post added at 06:56 PM ---------- Previous post was at 06:27 PM ----------
Ok the simplest , I send you, thank you .
http://www.partage-facile.com/TXDUDPN0Q6/secsettings.zip.html
Click to expand...
Click to collapse
So..
In your styles.xml find line
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo" />
and replace it with this:
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo">
<item name="android:listViewStyle">@style/MyListViewStyle</item>
<item name="android:listSeparatorTextViewStyle">@style/ListSeparator</item>
</style>
Now add this 2 styles in your styles.xml
Code:
<style name="ListSeparator" parent="@*android:style/Widget.DeviceDefault.Light.TextView.ListSeparator">
<item name="android:background">#00000000</item>
</style>
Code:
<style name="MyListViewStyle" parent="@android:style/Widget.ListView">
<item name="android:divider">#00000000</item>
<item name="android:dividerHeight">1px</item>
</style>
Shoud working, I dont test it. pleas report if working or not. Of course you can add your own parametr in to this styles like text color or size..
KuaQ said:
So..
In your styles.xml find line
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo" />
and replace it with this:
Code:
<style name="AppTheme" parent="@*android:style/Theme.Holo">
<item name="android:listViewStyle">@style/MyListViewStyle</item>
<item name="android:listSeparatorTextViewStyle">@style/ListSeparator</item>
</style>
Now add this 2 styles in your styles.xml
Code:
<style name="ListSeparator" parent="@*android:style/Widget.DeviceDefault.Light.TextView.ListSeparator">
<item name="android:background">#00000000</item>
</style>
Code:
<style name="MyListViewStyle" parent="@android:style/Widget.ListView">
<item name="android:divider">#00000000</item>
<item name="android:dividerHeight">1px</item>
</style>
Shoud working, I dont test it. pleas report if working or not. Of course you can add your own parametr in to this styles like text color or size..
Click to expand...
Click to collapse
Thank you , but it does not work :crying:
dragonballz said:
Thank you , but it does not work :crying:
Click to expand...
Click to collapse
What does it means: recompiling error/fc/lines are still there?
KuaQ said:
What does it means: recompiling error/fc/lines are still there?
Click to expand...
Click to collapse
Not the lines are still apparent
KuaQ said:
What does it means: recompiling error/fc/lines are still there?
Click to expand...
Click to collapse
Here is my modified styles.xml may be I have an error !!!
Sir thanks for this awesome guide, will this work for jelly bean 4.2.2?