[GUIDE][GB]How to place a custom icon on the title bar of a certain app - Galaxy Ace S5830 Themes and Apps

Hey guys!
After some of @SpaceCaker 's modifications, we found out how to place a custom icon on the title bar of any app. You can use your app's iconfor reference. So, one of the synonyms that could be said for this guide is JellyBean Title Bar. The modification is very easythough, but the hard part is wether you find the right file which controls the title bar on a specified window. But, I can help you in this
After following the guide, if you didn't understand it properly, just give me the app and I will place the custom JB title bar on it as per your request.
Requirments :
- Basic XML knowledge
- APK Multi TOOL/Whichever decompiling tool
- Sources on attachments
Click to expand...
Click to collapse
There are 2 different methods to make this.
First method means that the custom windows are located on layouts folder.
Second method means that the windows are located on XML folder.
The first method is very good and is bugfree, but unfortunately it depends on the app. If wether he has the windows located
on layouts folder or XML folder
The second method is not fully bugfree. If the app's windows are located on XML folder then the title bar is going to be scrolled with the chooserboxes too. The only way to fix it is to create a layout for the window.
Click to expand...
Click to collapse
Screenshots of both methods:
One of HelpCentre (1st method) example given below and the second of DSP manager (2nd method).
{
"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
1. Decompile the app you want to place the custom title bar. I will take a custom built app "HelpCentre.apk"
2. Download the sources on the attachments and place the layout "title" on the layout folder
and the custom id on ids.xml file on values folder.
Code:
<item type="id" name="imageView1">false</item>
Click to expand...
Click to collapse
3.
a) In the first method the windows are located on the layouts. So see the following :
Go to layouts folder and now find the layout which is resposnible for the first window
Let's use an example :
I have credits.xml file on the layout folder. Now on this window, i want to place a custom title bar.
To do this i should include the custom title on layout folder on the first lines.
To make this, paste this code after xmlns:android="http://schemas.android.com/apk/res/android">
Code:
<include android:layout_width="fill_parent" android:layout_height="50.0dip" layout="@layout/title" />
Be sure to place it on the correct order.
I also, have FAQ.xml too. If i want edit this file too, there will be no title bar as on the end of the guide we will add
NoTitleBar theme on AndroidManifest.xml So, therefore i have to place the same value on it too.
Again, after the code xmlns:android="http://schemas.android.com/apk/res/android"> place this one :
Code:
<include android:layout_width="fill_parent" android:layout_height="50.0dip" layout="@layout/title" />
What if you want to use a custom title for the another window?
Easy, we are going to create another exact file as title.xml just that we will rename it different, like titleFAQ.xml.
On this XML we will change the android:icon value. We can use whatever value for the icon. For example,
"@drawable/ic_credits" Then, we will paste the png you want to place on the drawable-mdpi.
Now in the FAQ.xml file you want to place another icon title we should change the layout target so according to what I did so far on the file, this is the target i should place.
Code:
<include android:layout_width="fill_parent" android:layout_height="50.0dip" layout="@layout/titleFAQ" />
Click to expand...
Click to collapse
b) In the second method the windows are located on the XML folder. So follow below :
Go to XML folder and now find the XML which is responsible for the window.
So I will use the same example.
So let's say that the Credits.xml is on the XML folder. Now instead of including <include android:layout_width="fill_parent"......
you should include this code below xmlns:android="http://schemas.android.com/apk/res/android">
Code:
<CheckBoxPreference android:layout="@layout/title" android:title="Help Centre" android:key="Help_title_Centre" />
Android:title is the name of the title bar. You can set it to whatever name you want. Same goes with android:key.
To use another icon for the another title bar which is located on FAQ.xml like i mentioned before, change
Code:
<CheckBoxPreference android:layout="@layout/titleFAQ" android:title="Help Centre" android:key="Help_title_Centre" />
Click to expand...
Click to collapse
4. Now the final step is to go to AndroidManifest.xml and after the specified activity place the NoTitleBar theme
I edited Credits.xml and FAQ.xml so let's find their activity in there.
Code:
<activity android:name="Credits">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity android:name="FAQ">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
I now will add the theme value on both activities. This is the code
Code:
android:theme="@*android:style/Theme.Black.NoTitleBar"
After all it will look like this
Code:
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="Credits">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity android:theme="@*android:style/Theme.Black.NoTitleBar" android:name="FAQ">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
Now we're done working.
5. Recompile the apk
6. Sign it (Always sign if you edit AndroidManifest.xml)
Click to expand...
Click to collapse
Credits :
Full credits goes to the most amazing themer I have ever seen, @SpaceCaker!
He made many works for Touchwiz Resurrection ROM and I have based the guide upon that modifications just that I have edited
the code and fully explained it.
Also, Touchwiz Resurrection Team members @Vishnu pv and @radichification for their support!
Click to expand...
Click to collapse
Enjoy!
Regards,
Teddy

Sweet u posted the guide :3 Good Good
If u are building app from source in a java based app or such
PHP:
public void onCreate(Bundle bundle)
{
super.onCreate(bundle);
addPreferencesFromResource(R.xml.twdevs);
setContentView(R.layout.twdevelopers);
add the
PHP:
setContentView(R.layout.twdevelopers);
line or such so u can have a Layout in the preferences app with
PHP:
extends PreferenceActivity{
and add a custom layout wich looks close to this
PHP:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" >
<include android:layout_width="fill_parent"
android:layout_height="50.0dip"
layout="@layout/title" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="345dp" />
</LinearLayout>
</LinearLayout>

If you want to change the background target you should change something on title.xml or any other title xml you have created for your window.
Find :
Code:
<LinearLayout android:gravity="center_vertical"
Change :
Code:
android:background="@drawable/title_background"
to a different png target like :
Code:
android:background="@drawable/ics_title_background"
or :
Code:
android:background="@drawable/touchwiz_title_background"
And put the png on drawable-mdpi.
Also, I have included a normal icon for the title bar, but you can change it anytime, just replace it with another icon.
If you want to change the target of the icon find :
Code:
<ImageView android:id="@id/imageView1"
Change :
Code:
android:background="@drawable/title_icon"
To :
Code:
android:background="@drawable/ics_title_icon"
Or :
Code:
android:background="@drawable/touchwiz_title_icon"
And then like I mentioned before put the png on drawable-mdpi
Currently on the zip source I have included a Touchwiz title background as that's what I have atm, but you can get another one ICS or JB themed. I will provide them later. As per now, only touchwiz title background is available.
Download ZIP on attachments.
Don't forget to put correct credits if you are going to include this into your ROM/MOD/Theme.

Or just add a simple style with 9 png.
Which can be also changed as HomeDisabled as in non-launcher Activity like in ActionBar
Reserved for a simpler Guide

iamareebjamal said:
Or just add a simple style with 9 png.
Which can be also changed as HomeDisabled as in non-launcher Activity like in ActionBar
Reserved for a simpler Guide
Click to expand...
Click to collapse
we do know about this one
but it didnt really always worked and also this way it makes it bit easier to layout the icon properly and bg
because there are a lot of people who try this but fail with photoshoping the icon in background.
i also said that teddy shouldnt include the third method because that would be * to complex* lol

iamareebjamal said:
Or just add a simple style with 9 png.
Which can be also changed as HomeDisabled as in non-launcher Activity like in ActionBar
Reserved for a simpler Guide
Click to expand...
Click to collapse
The guide on the OP is more stable and working proof. Also, more detailed, with opportunity of changing the title's bar background and the title's bar icon.

Sniper Killer said:
The guide on the OP is more stable and working proof. Also, more detailed, with opportunity of changing the title's bar background and the title's bar icon.
Click to expand...
Click to collapse
lol. I don't know what you mean by "STABLE", so I can't speak on that
About working proof, what can be better working proof than Cosmic v3
Title Bar's background and icon both can be changed by that method
Don't misunderstand me, just trying to share another method with people.
PS - You will want to include (if not already) that editing AndroidManifest.xml of system app will require to sign it, and if you want it working on your device, you'll have to disable signature check from service.

Usefull guide for users and also new rising themers Keep it up

Related

[Mod](ANY DEODEXED GB TW ROM) Pimp my Status bar **now with transparency**

{
"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"
}
Custom status bar:
>>>Click Here<<<
Transparent status bar:
>>>Click Here<<<
Difficulty:1/5
Time:5mins
Bug Reporting:
If your going to post bugs send the following-
*The rom you are running
*What launcher you use
*What mod you have flashed
If you do not include this information I will not reply!!!
Info:
Tired of looking at that boring old black status/notification bar??
Here is a mod that should give you a custom status/notification bar on any Gingerbread Touchwiz Rom.
I have flashed this countless times in the past week or so and it works perfect for me on GingerMod v0.8
I dont know if this will work on other bases without looking at MIUI and cyanogenmod SystemUI.apks but feel free to try or post them for me to look at.
Also if you want transparency adding to your status bar (depending on the launcher used) post your UNTHEMED systemUI.apk.
What does the mod do??
It basically changes your status_bar.xml from displaying a colour-
ARGB-00(alpha)00(red)00(green)00(blue), thats black to us lot, to a png image instead-"statusbar_background.9.png" or "statusbar_background.png".
The image can be standard .png or .9.png(compiled!!), ideally .9.png if you use your device in landscape.
Preview:
All you have to do is follow these simple steps:
* Download 7zip and install on your P.C.(Its free just google search it).
* Find the status bar you like/want and download. You can find them on their own, inside themes or inside Roms.
* (A) Download the "Custom Status Bar.zip" from the link below, then open it up and navigate to "MORPH>system>app>SystemUI.apk>res>drawable-hdpi>". Basically open the zip then double click your way through.
* (B) Find the status bar that you just downloaded. If its within a rom/theme then open it up with 7zip and navigate to system>app>SystemUI.apk>res>drawable-hdpi>. In here you want "statusbar_background.9.png" or "statusbar_background.png".
* Now select "statusbar_background.9.png"or "statusbar_background.png" in the (B) window and drag and drop into the (A) window and click yes to confirm.
* Now close both windows and put "Custom Status Bar.zip" on your SDcard and install it from CWM.
* Reboot.
>>>CLICK ME TO DOWNLOAD "Custom Status Bar.zip"<<<
Please note the universal theme zip used will create a backup on your sdcard in "universal themes", simply flash the backup from CWM to restore your previous state prior to flashing.
I am not responsible for any actions you take!!.
I have included my status bars from my Phone Candy theme in the "Custom Status Bar.zip", they are attached also.
Please post any status bars and ill create a gallery for them.
Credits:
UNIVERSAL FLASHER TOOL v.3.2
by JRsoft & Intronauta
*Villain Team for the concept
*Stericson for "Metamorph" system
*Core Utilities for the tar binary
*Blades" for the 7z binary and libs
*All testers, especially to SuperCocoV6.5 and lexullde
*doctorcete for helping with the translations
How does this work??
The transparent status bar is only enabled by making changes to "StatusBarService.smali" inside "SystemUI.apk\smali\com\android\systemui\statusbar\"
Most SystemUI.apk's are different in build so unfortunately it's not a case of "one mod fits all"
Taking a transparent status bar png and adding it to the mod from post 1 WILL NOT give you transparency, it needs to be enabled, as does using a launcher which supports transparent status bars. A list can be found below detailing which launchers work.
If you do not see your rom listed below then post your SystemUI.apk and i will make the necessary changes to enable transparency.
Links for working transparency enabled SystemUI.apk
GingerMod v0.8
HyperDroid Androidmeda v6.0.8
Simple and Clean 2.4.3
Verts ICS
VillainRom v3.0.0
Links contain only the necessary files for the mod to work including full transparent status_bar.png. This means you should not lose any of the your theme.
Install:
*Download appropriate zip
*Install from CWM recovery
*Reboot.
KNOWN ISSUES:
If you are using JKays mod then the date will appear in the status/notification bar when pulled down.
I have disabled the date in SystemUI and it works fine on roms not using his tool, But JKays mod is displaying the date from framework-res (i think) which is also connected to the notification text disaplayed on the status bar. So until i figure out how to split the date and notifications you have a choice:
*No date and notification text
or
*Display date and notification text
If want to remove the date and notification text post your framework-res.apk and ill make appropriate changes.
Here is a zip containg 7 simple transparency enabled status bars:
>>>CLICK ME<<<
Preview of the contents aginst a transparency checker background:
Contains
1x 0%
2x 25% (white and black)
2x 50% (white and black)
2x 75% (white and black)
If you have any requests feel free to ask..
Here are a list of launchers that i have personally tried with the transparent status bar and how to enable it:
* 360 Launcher
* ADW. Launcher
Uncheck wall paper hack.
* Balancer Launcher
* Gingerbread Launcher
* Go Launcher
Enable high quality wall paper.
* ICS 4.0 Launcher
* Launcher 7
* Launcher Pro
* MX Launcher
* QQ Launcher Pro
* Regina Launcher
* SPB Shell 3D
* TW Launcher
* Zeam Launcher
Credits:
UNIVERSAL FLASHER TOOL v.3.2
by JRsoft & Intronauta
*Villain Team for the concept
*Stericson for "Metamorph" system
*Core Utilities for the tar binary
*Blades" for the 7z binary and libs
*All testers, especially to SuperCocoV6.5 and lexullde
*doctorcete for helping with the translations
More space
Thanks for this mate! Im gonna try it straight away
I luv the thread title, LOL.
it s the same thing
dully79 said:
Difficulty:1/5
Time:5mins
Info:
Here is a mod that should give you a custom status/notification bar on any Gingerbread Touchwiz Rom.
I have flashed this countless times in the past week or so and it works perfect for me on GingerMod v0.8
I dont know if this will work on other bases without looking at MIUI and cyanogenmod SystemUI.apks but feel free to try or post them for me to look at.
Also if you want transparency adding to your status bar (depending on the launcher used) post your UNTHEMED systemUI.apk.
What does the mod do??
It basically changes your status_bar.xml from displaying a colour-
ARGB-00(alpha)00(red)00(green)00(blue), thats black to us lot, to a png image instead-"statusbar_background.9.png" or "statusbar_background.png".
The image can be standard .png or .9.png(compiled!!) with dimensions of upto 480(W)x38(H)
All you have to do is follow these simple steps:
* Download 7zip and install on your P.C.(Its free just google search it).
* Find the status bar you like/want and download.
* (A) Download the "Custom Status Bar.zip" then open it up and navigate to "MORPH/system/app/SystemUI.apk/res/drawable-hdpi/"
* (B) Find the status bar you want to use that you just downloaded. If its within a rom/theme then open it up with 7zip and navigate to system/app/SystemUI.apk/res/drawable-hdpi/. In here you want "statusbar_background.9.png" or "statusbar_background.png".
* Now select "statusbar_background.9.png"or "statusbar_background.png" in the (B) window and drag and drop into the (A) window and click yes to confirm.
* Now close both windows and put "Custom Status Bar.zip" on your SDcard and install it from CWM.
* Reboot.
>>>CLICK ME TO DOWNLOAD "Custom Status Bar.zip"<<<
Please note the universal theme zip used will create a backup on your sdcard in "universal themes", simply flash the backup from CWM to restore your previous state prior to flashing.
I am not responsible for any actions you take!!.
I have included my status bars from my Phone Candy theme in the "Custom Status Bar.zip", they are attached also.
Credits:
UNIVERSAL FLASHER TOOL v.3.2
by JRsoft & Intronauta
*Villain Team for the concept
*Stericson for "Metamorph" system
*Core Utilities for the tar binary
*Blades" for the 7z binary and libs
*All testers, especially to SuperCocoV6.5 and lexullde
*doctorcete for helping with the translations
Finally please post if the mod works on your Rom and i will add it to the OP,
Thank you.
Click to expand...
Click to collapse
it s the same thing doing this:
decompile SystemUI.apk with apk manager;
edit res/layout/status_bar.xml replacing..
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background=[COLOR="red"]"ff000000"[/COLOR][COLOR="Green"]"@drawable/example"[/COLOR] android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<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" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center_vertical" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:id="@id/ticker_1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:id="@id/ticker_2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background=[COLOR="Red"]"ff000000"[/COLOR][COLOR="green"]"@drawable/example"[/COLOR] android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
and example is an png image with size 480x38 you have to place in res/drawable-hdpi named example.png
so easy
Find the status bar you want and download may not be clear to some people...
As in....where to look in the rom/theme and how to extract it out ...
Just a thought mate
Sent from my GT-I9100 using XDA App
pSyCh¤_O_O said:
Thanks for this mate! Im gonna try it straight away
Click to expand...
Click to collapse
Your welcome.
sileshnair said:
I luv the thread title, LOL.
Click to expand...
Click to collapse
Thanks.
Mirko ddd said:
it s the same thing doing this:
decompile SystemUI.apk with apk manager;
edit res/layout/status_bar.xml replacing..
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background=[COLOR="red"]"ff000000"[/COLOR][COLOR="Green"]"@drawable/example"[/COLOR] android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<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" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:gravity="center_vertical" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:id="@id/ticker_1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:id="@id/ticker_2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background=[COLOR="Red"]"ff000000"[/COLOR][COLOR="green"]"@drawable/example"[/COLOR] android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
and example is an png image with size 480x38 you have to place in res/drawable-hdpi named example.png
so easy
Click to expand...
Click to collapse
Yes mate, I've just tried to take the donkey work out and simplify it.
rixsta said:
Find the status bar you want and download may not be clear to some people...
As in....where to look in the rom/theme and how to extract it out ...
Just a thought mate
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
I'm going to add some screens when I get more time.
dully79 said:
. . .
Also if you want transparency adding to your status bar (depending on the launcher used) post your UNTHEMED systemUI.apk.
. . .
Click to expand...
Click to collapse
Hi mate.. . .
Why does the systemUI.apk have to be an unthemed one? . . .
morg01 said:
Hi mate.. . .
Why does the systemUI.apk have to be an unthemed one? . . .
Click to expand...
Click to collapse
It doesn't, but there's less chance of stumbling across problems when decompiling and recompiling.
& i got error ...i choose to create my own .png file with transparant image..
kingofjail said:
& i got error ...i choose to create my own .png file with transparant image..
Click to expand...
Click to collapse
Your going to have to give more information.
Also have you modified the smali to enable transparent status bar??
This mod alone doesn't enable transparency, just the ability to use a custom status bar.
dully79 said:
Your going to have to give more information.
Also have you modified the smali to enable transparent status bar??
This mod alone doesn't enable transparency, just the ability to use a custom status bar.
Click to expand...
Click to collapse
trasparency in status bar is possible, but the result is awful due to text crossing of notification. This may need (it does) several work on it, on SystemUI.apk and maybe in other ones.
Sorry 4 my bad english, I hope you understand what I mean
Mirko ddd said:
trasparency in status bar is possible, but the result is awful due to text crossing of notification. This may need (it does) several work on it, on SystemUI.apk and maybe in other ones.
Sorry 4 my bad english, I hope you understand what I mean
Click to expand...
Click to collapse
Yes I'm aware of this, it has been discussed in another thread.
I haven't had time to try a fix as I've been busy with countless requests and PMS, but ill try and look tonight.
PROGRESS!!
Hello,
So i've just had a look and modified the "status_bar.xml" to try and fix the date/notification clash and this is the result:
As you can see i have made the date disappear resulting in no more clash!!
There is also no 2nd status bar image overlap from the pulldown as ive changed the code from:
android:layout_width="wrap_content"
To
android:layout_width="fill_parent"
All in all a job well done for a first attempt from an xml novice and thanks sileshnair for your support in the other thread.
I suppose you wanted the latest Hyper systemui
Goodnight
siberian tiger said:
I suppose you wanted the latest Hyper systemui
Goodnight
Click to expand...
Click to collapse
Many, many thanks mate. It's just for a request I got to add transparency. I didn't want to download the whole rom using 3g, my broadband is off.
Thanks again.
dully79 said:
Hello,
So i've just had a look and modified the "status_bar.xml" to try and fix the date/notification clash and this is the result:
As you can see i have made the date disappear resulting in no more clash!!
There is also no 2nd status bar image overlap from the pulldown as ive changed the code from:
android:layout_width="wrap_content"
To
android:layout_width="fill_parent"
All in all a job well done for a first attempt from an xml novice and thanks sileshnair for your support in the other thread.
Click to expand...
Click to collapse
easier than I thought gotta try it out sooner as possible!
Greeting, thanks for this . . . any chance you could have a bash at the following?
View attachment 874910
Transparency please?
morg01 said:
Greeting, thanks for this . . . any chance you could have a bash at the following?
View attachment 874910
Transparency please?
Click to expand...
Click to collapse
No probs mate, I've just gotten in from work so give me a hour as I've got a couple of requests to do and I'll have it up for you.
Also do you want it fully transparent, 25%, 50%, 75%, black or white??
And what Rom is it from?
It needs to be de-odexed.

[MOD]Permanent Date in Statusbar - Center Date for AOKP

This mod will let the date always displaying in statusbar, like the clock does..check the screenshot. I also removed date from notification header, since it's already in statusbar.
For the center date in AOKP go to the end of the post.
Always backup before you try anything!
{
"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"
}
You have to decompile(apk manager does it) SystemUI.apk.
Go to file SystemUI.apk\res\layout\status_bar.xml
find the line 15
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
place on top of it the line
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
so it will look like that
Code:
</LinearLayout>
[COLOR="Red"]<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
</LinearLayout>
now here, I set the
Code:
android:paddingLeft="4.0dip"
with the same value in both clock and date, so they have the same space at the left.
With this setup, you will always see date and then clock at the right of the statusbar(I haven't test something else yet).
if you want to delete the date from the notification header, do the following
in the file SystemUI.apk\res\layout\status_bar_expanded.xml delete the following line
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
and in the line
Code:
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
replace the
Code:
android:layout_toRightOf="@id/date"
with the following(it maybe not crucial, but I did it)
Code:
android:layout_alignParentLeft="true"
it should look something like that
the text size is probably looking different between date and clock, so in the file SystemUI.apk\res\values\styles.xml is the text size of both.
clock
Code:
<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>
and date
Code:
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
I changed both with
Code:
[COLOR="Red"]<item name="android:textSize">[B]14.0sp[/B]</item>[/COLOR]
Center Date in AOKP roms
although if you enable every statusbar icon(bt, vibrate,alarm,wifi etc) it will look messy cause the clock overlapse the icons.
since AOKP rom has an option to set the clock in the center, it's quite easy to have the date in that order too.
in file SystemUI.apk\res\layout\status_bar.xml copy&delete or cut the line
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
and place it in top of (watch the centerclock, not just clock)
Code:
<com.android.systemui.statusbar.policy.[COLOR="Red"]CenterClock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/center_clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so it will look like that
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/center_clock_layout" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/center_clock" />
<com.android.systemui.statusbar.policy.CenterClock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/center_clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
now in the end of the line you cut/copied change the "@id/clock" into "@id/center_clock", so it will look like that
Code:
android:layout_toLeftOf="@id/center_clock"
now you're good to go, it will look like that(it won't be in italic, I just changed it) and choose center clock in ROM control options in settings, otherwise you'll have center date and clock at the right which is also nice
I hope I didn't forget anything
Recompile and push it/flash it.
submit your comments and mods, left, center date or whatever
Wow
..that's def the coolest MOD I've seen in a while. I don't think I've seen anyone do this before. I'm not home, but as soon as I get back I'm def gonna try this. Good job man!!!!
Sent from my Galaxy Nexus using xda premium
This is brilliant! Many thanks
any chance of making this a flashable CWM ZIP?
Also, is it possible to show dBm (signal strength) in the status bar?
I have a flashable for AOKP MS3 including this mod(small thumbs) http://forum.xda-developers.com/showthread.php?t=1480309 cause this is how I use it and the softkeys of the screenshot
please backup before you try anything.
@winwiz, for the db it should need work which unfortunately I don't know how
Any chance you wouldn't mind post your wallpaper? I just taught that book to my students last week actually. Good timing Oh and thanks for the mod too, of course. Cheers!
Sent from my Galaxy Nexus using XDA App
clap-clap!very good mod man!the best of the lastest inserted in roms out there.applying that in this moment,and thank you very much!very appreciated!
tlspatt said:
Any chance you wouldn't mind post your wallpaper? I just taught that book to my students last week actually. Good timing Oh and thanks for the mod too, of course. Cheers!
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
sure
http://img21.imageshack.us/img21/705/wallpaper715037662.jpg
sert00 said:
clap-clap!very good mod man!the best of the lastest inserted in roms out there.applying that in this moment,and thank you very much!very appreciated!
Click to expand...
Click to collapse
did you try the flashable zip? does it work? cause I think I left something different in this zip . check the notification background if it is ok(semi transparent like the default)
nope i'm doing...the sig report m3 but this morning i flashed another rom.my phone now is total empty,it takes me less time to flash m3 and after that flash yours zip,instead of doing mine the mod because it takes me more times that the cwm zip.phone is total wiped,no prob at all
i'll report this in 5 minutes
EDIT if you mean the background above the notification widget is semi-trasparent like before apply the mod..for me it's ok.now i stick with m3 and add my mod to your package.
ps...you have done the mod with modded systemUI right?because softkeys changed...!
i'll remake all with my systemUI (to have all my mods+your mod in one package)
very thnks for mod.for me so usefull!
EDIT 2 ok,managed.done your modification (date)over my mod (circlemod by hoolms standard+mixed softkey (2 packs)of atticus192.
We NEED a developer to come in here and tell us how to center the date and clock. I'm all for doing it myself but I don't know what to code
Is there any way to make the date format like such: mo/day/year ex. 02/12/12?
sert00 said:
ps...you have done the mod with modded systemUI right?because softkeys changed...!
i'll remake all with my systemUI (to have all my mods+your mod in one package)
very thnks for mod.for me so useful!
Click to expand...
Click to collapse
glad you like it. yes I had the custom softkeys in the zip, sorry about that, I edited the post.
number3pencil said:
We NEED a developer to come in here and tell us how to center the date and clock. I'm all for doing it myself but I don't know what to code
Click to expand...
Click to collapse
one way could be by editing arrays.xml in framework and putting it in front of the other icons, I tried it but it didn't work, I got a bootloop.
jgrimberg1979 said:
Is there any way to make the date format like such: mo/day/year ex. 02/12/12?
Click to expand...
Click to collapse
I was searching for that too. We need to have SHORT date appearance cause now it's LONG, but the date format is mentioned in system locale and I haven't found another way. If you change the language of the phone, it will change that too(if locale changes it)
ok, I have center clock in AOKP rom, very easy, how-to at the end of the 1st post.
thank you for posting the edits. i am going to try to port this to the samsung captivate AOSP build tomorrow.
TRusselo said:
thank you for posting the edits. i am going to try to port this to the samsung captivate AOSP build tomorrow.
Click to expand...
Click to collapse
of course, or else I should make a zip for every rom for every update
cheers
Hmm... Wondering as my status_bar.xml looks like this (as attachement) i dont know wtf to do...
if you can guide me that would be awesome!!
PS: Its cm7 based rom for Htc Desire S but i thought it doesnt make much difference? or maybe im wrong...
Cool Mod, AOKP should integrate this in their rom manager, would be an awesome addition
Sick1 said:
Hmm... Wondering as my status_bar.xml looks like this (as attachement) i dont know wtf to do...
if you can guide me that would be awesome!!
PS: Its cm7 based rom for Htc Desire S but i thought it doesnt make much difference? or maybe im wrong...
Click to expand...
Click to collapse
sure, i'll take a look. I'm not an expert of course but I'll try. I see that it has many differences..hmm.
la7lou7a said:
Cool Mod, AOKP should integrate this in their rom manager, would be an awesome addition
Click to expand...
Click to collapse
I guess it would be nice
I've shown it to Roman and he liked it. With the same way, we have weather in statusbar
҉ Sent from my Galaxy Nexus ҉
Sick1 said:
Hmm... Wondering as my status_bar.xml looks like this (as attachement) i dont know wtf to do...
if you can guide me that would be awesome!!
PS: Its cm7 based rom for Htc Desire S but i thought it doesnt make much difference? or maybe im wrong...
Click to expand...
Click to collapse
You have placed the line <com.android.systemui.statusbar.policy.DateView...>
in the end of the status_bar.xml but you have to put it on top of the "clock" line.
The status bar items follow the order in which you have placed the lines.
I m writing from a ****ing iPad(I viewed the XML from this too), I can't describe it better right now..
Tell me the results.
I cut it on top of the clock, now its in the right place on right of the clock in my statusbar but only showing when opening notifications, and there is empty space for it always "reserved" next to clock...
nikosrs4 said:
You have placed the line <com.android.systemui.statusbar.policy.DateView...>
in the end of the status_bar.xml but you have to put it on top of the "clock" line.
The status bar items follow the order in which you have placed the lines.
I m writing from a ****ing iPad(I viewed the XML from this too), I can't describe it better right now..
Tell me the results.
Click to expand...
Click to collapse
Sick1 said:
I cut it on top of the clock, now its in the right place on right of the clock in my statusbar but only showing when opening notifications, and there is empty space for it always "reserved" next to clock...
Click to expand...
Click to collapse
can you post some screenshots? they are very different compared to stock xml.
edit: try the attachment but please please backup first!
I changed a lot the status_bar.xml, not the expanded.

[MOD][GUIDE]Three Panel Swipe animation (No conflict to swipe to remove notifs)

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"
}
Long Description: Three panel with Swipe Animation, as you can see on the image, you will say that it will have conflict to swipe to remove notifications but it will not. It is because you will swipe at your "header" (or any place you want to put the swipe detector) only, BUT the whole page of UI will switch and the header will stay. You cant swipe at the bottom part but only in the part of the header of UI so that's why it will not have any conflicts to swipe to remove notification. (My header is where the smart buddy is.)
Short Description: Two class, first class was the swipe detector, the second class will switch and will receive what kind of swipe happened.
What YOU need:
1. know how to decompile and recompile apks.
2. Some experience.
---------STEPS--------
1.) Decompile your SystemUI.apk
2.) Go to res/layout/status_bar_expanded.xml open it and cover your header with this code.
Code:
<com.lenox.multiswipe.headerswipe android:layout_width="fill_parent" android:layout_height="wrap_content">
<(your header)/>
</com.lenox.multiswipe.headerswipe>
Example of my header cover by the code (The place of carrier's label act as my header):
Code:
<com.lenox.multiswipe.headerswipe android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:background="@drawable/quickpanel_plmn_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<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" />
<Button android:textSize="13.0sp" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:layout_width="85.0dip" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginRight="6.0dip" android:layout_marginBottom="3.0dip" android:text="@string/status_bar_clear_all_button" style="?android:attr/buttonStyleSmall" />
</LinearLayout>
</com.lenox.multiswipe.headerswipe>
3.) Then on the same xml, cover the first page of your UI, my first page of UI was the notifications so ... just look at the code below (hard to explain sorry xD) :
Code:
<com.lenox.multiswipe.multiswipe android:id="@id/ms" android:layout_width="fill_parent" android:layout_height="fill_parent">
[B]<ScrollView[/B] android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
[B]<LinearLayout[/B] android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textColor="#ff000000" android:textSize="20.0dip" android:gravity="center_vertical|center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="secondlayout" />
</LinearLayout>
[B]<LinearLayout[/B] android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textColor="#ff000000" android:textSize="20.0dip" android:gravity="center_vertical|center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="thirdlayout" />
</LinearLayout>
</com.lenox.multiswipe.multiswipe>
REMINDER: You must have atleast 3 view or layouts for it to work otherwise your status bar will be gone missing. So my first view was the ScrollView (firstpage), second view/layout was the linearlayout(second page) and third view/layout was another linearlayout(thirdpage). It's up to you what you want to put in that pages. You can have three Relativelayouts, linearlayouts, or scramble, etc..
4.) Close and save, then go to res/values/ids.xml and add this line before </resources> at the bottom.
Code:
<item type="id" name="ms">false</item>
</resources>
5.) Close and save, then recompile the SystemUI.apk.
6.) Get your recompiled SystemUI.apk, and decompile it again. Then go to smali/com and add the lenox folder (with smalis inside) Download it the attachment part below.
7.) Get the public id of the id you put in the ids.xml earlier. To get it, go to res/values/public.xml then find the public id:
Code:
<public type="id" name="ms" id="(Important code)" />
(Remember the Important code.)
8.) Go to smali/com/lenox/multiswipe/multiswipe.smali then find this line:
Code:
.line 64
const v3, 0x7f040001
And replace the 0x7f040001 with your Important code/public id you get at step 7.
9.) Save all, Close then recompile it.
10.) flash or push your recompile SystemUI.apk.
That's it. Report if I forgot something and the credit goes to you .
Have a party. LOL
CREDITS:
github.com
Google.com (especially StackOverFlow.com)
[email protected] (ViewFlipper Source Code)
[email protected] (exact animation) (a very nice guy )
[email protected]
forum.xda-developers.com
Lenox Devs :laugh:​
Handy guide...looks great
Nice one man!
Wow! Great! :good:
Nice guide buddy! :thumbup::thumbup::thumbup:
Just looking for this thanx man!!
Sent from my GT-S5360 using Tapatalk 2
and what does the last two layout for ? is it toogles ? or what ?
Suggestion :
i think you should remove the lidroid on the second and third panel to make it more cool.
Mranggapo said:
and what does the last two layout for ? is it toogles ? or what ?
Click to expand...
Click to collapse
It's up to you what you want to put inside them. Example, your toggles is on second layout, information about you is on third layout. Because there's a guide on two panel swipe, but it has conflict on swipe to remove notification so i create that won't conflict on swipe to remove and it has three panels.
Sorry for my english. xD
Luwiji said:
i think you should remove the lidroid on the second and third panel to make it more cool.
Click to expand...
Click to collapse
It was not lidroid, they are stock toggles, if you have lidroid, you can put them in second or third layout to keep layouts clean. I dont have time (and skills xD) on designing my UI. This was only a mod for three panel with swipe animation and it's up to you on how will you use it.
hi sir tenten .i just want to ask if there is a way to make the swipe animation faster? thanks for this awesome tut
markmellarpes said:
hi sir tenten .i just want to ask if there is a way to make the swipe animation faster? thanks for this awesome tut
Click to expand...
Click to collapse
Ill remake it and use the animation of spacecaker from b16h22, becuase i think it is exact . And also I will make it faster. thanks for suggesting sir
Great guide buddy, but i see no point in having 2-3 layout's .. :thumbup:
Mr.Gentleman said:
Great guide buddy, but i see no point in having 2-3 layout's .. :thumbup:
Click to expand...
Click to collapse
For me also xD, but I saw some roms/mods that have 2-3 layouts. Example, 2 panel swiping(conflict with swipe to remove) and 3 page UI. I just make it three and remove the conflict on swipe to remove. It's up to them what they want to put inside and how they will use it. haha.
And by the way, I like your signature. hahahaha.
Thread Updated
Thread Updated, exact and faster animation.
Thanks to Spacecaker and b16h22.
tentenponce said:
Thread Updated, exact and faster animation.
Click to expand...
Click to collapse
thats what ive been waiting for.ahaha good job sir .gonna try it now :thumbup:
Sent from my GT-S5360 using xda premium
Can i Get the Java source of the app OP
samsoul16 said:
Can i Get the Java source of the app OP
Click to expand...
Click to collapse
I want to push the source on github, but my internet connection is </3 too too slow. xD
tentenponce said:
I want to push the source on github, but my internet connection is </3 too too slow. xD
Click to expand...
Click to collapse
buddy thats gr8. but actually i am a in a little hurry can u pm me the source or just the java files if u dont mind. ty
Now this guide is just awesome!!!
why only for galaxy y sir? xD does it work with any other device?

[Guide/Tutorial][Lollipop 5+]Create Your Xperia Lillipop Theme in Android Studio

Create Your Xperia Lillipop Theme in Android Studio​
Hi, Will show you how to create Xperia Theme Lollipop using Android Studio
Android Studio should be configured properly and You have to a basic knowledge about the program​​
What we need
1. Android Studio for PC
2. File Manager
3. Notepad ++
4. Installed SDK
5. Tickle My Android The Greatest Android Theming Tool...EVER!! by @Ticklefish
Link
​
[Firstly here to download the files:
Theme_files.zip
com.sonyericsson.uxp.apk
com.android.systemui.apk
android.apk
Unpack somewhere on drive C: or D:
Sorry but my laptop is quite slow
1. How Make new Theme theme ( You need Ready android.zip , You can use my android.zip and you can change it laiter )
Video:
2. How Create ZIP package for theme And How Add it to Studio ( "android.zip" "com.android.systemui.zip" "com.sonyericsson.uxp.zip" )
Video:
Video How Correct Installation On The Phone
TIP:
How works theme accent colors:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
[COLOR="Red"] <color name="somc_color_dark_primary_dark">#ff9c27b0</color>
<color name="somc_color_primary_dark">#ff9c27b0</color>[/COLOR]
[COLOR="DarkOrchid"] <color name="somc_color_accent_dark">#ff7c4dff</color>[/COLOR]
[COLOR="red"] <color name="somc_color_dark_primary_light">#ff9c27b0</color>
<color name="somc_color_primary_light">#ff9c27b0</color>[/COLOR]
[COLOR="DarkOrchid"] <color name="somc_color_accent_light">#ff7c4dff</color>[/COLOR]
</resources>
{
"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"
}
My Themes
[Theme][Sony] Best Theme Collection for All Sony Lollipop 5.0.2. NOT ROOTED Devices
Black Theme Collection for All Sony Lollipop 5.0.2. NOT ROOTED
Credits:
RXS MoonBreakers Team
Thanks for:
@Ticklefish and his Greatest Tool
@SArnab©® for his 4.3 Guide
[Guide/Tutorial][JB 4.3+]Create Your Own Xperia Theme
Part 2
Today I'll show you what can be changed using themes and how to check it out.​
First How do I add new packages Zip​
We Add packages in AndroidManifest.xml between the red fields
One package is mark on green color
Code:
[COLOR="red"] <runtime-skin version="1">[/COLOR]
<asset path="android.zip" target="android">
<laf-version-filter from="1" to="1"/>
</asset>
<asset path="com.sonyericsson.uxp.zip" target="com.sonyericsson.uxp">
<laf-version-filter from="1" to="1"/>
</asset>
[COLOR="SeaGreen"] <asset path="com.android.systemui.zip" target="com.android.systemui">
<laf-version-filter from="2" to="2"/>
</asset> [/COLOR]
<asset path="com.sonyericsson.home.zip" target="com.sonyericsson.home">
<laf-version-filter from="1" to="1"/>
</asset>
[COLOR="Red"] </runtime-skin>[/COLOR]
Package name can be found in
SystemUI.apk / AndroidManifest.xml
Example
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:sharedUserId="android.uid.systemui" coreApp="true" [COLOR="SeaGreen"]package="com.android.systemui" [/COLOR]platformBuildVersionCode="21" platformBuildVersionName="5.0.2-1">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_ALL_DOWNLOADS"/>
Application have different laf-version-filter
belongs to change according to the package destination.
Information is located in the file
SystemUI.apk / AndroidManifest.xml
Code:
<asset path="com.android.systemui.zip" target="com.android.systemui">
<laf-version-filter from="[COLOR="RoyalBlue"]2[/COLOR]" to="[COLOR="RoyalBlue"]2[/COLOR]"/>
</asset>
Example:
Code:
</intent-filter>
</activity>
<service android:exported="true" android:name=".doze.DozeService" android:permission="android.permission.BIND_DREAM_SERVICE" android:singleUser="true"/>
<meta-data android:name="com.sonymobile.runtimeskinning.SKIN_PERMISSIONS" android:resource="@xml/somc_skin_permissions"/>
<meta-data android:name="com.sonymobile.runtimeskinning.[COLOR="RoyalBlue"]LAF_VERSION" android:value="2"/>[/COLOR]
<meta-data android:name="com.sonymobile.keyguard.KEYGUARD_PLUGINS" android:resource="@array/somc_keyguard_plugins"/>
Last part 3 important
What can be edited using the .zip package​
Almost every Sony App app has the file
somc_skin_permissions.xml
skin_permissions.xml
It is always in the folder example.apk /xml/somc_skin_permissions.xml
In this file are value that can be edited using Your theme.
If it is not there it is not possible. Why ? I don't know . You need to ask SONY
Here is an example of framework-res.apk
each of these values corresponds to a value in the framework
drawable - drawable
color -color
etc.
More information about it you find here
[Guide] Unlock and Add Permission to Sony Lollipop Theme Engine by Ambor
Code:
<?xml version="1.0" encoding="utf-8"?>
<overlay-resources>
<filter-group group="color">
<filter type="type" value="color" />
</filter-group>
<filter-group group="action-bar">
<filter type="type" value="nine-patch,bitmap" />
<filter type="size" minWidth="1dp" maxWidth="360dp" minHeight="1dp" maxHeight="48dp" />
</filter-group>
<overlay id="@drawable/somc_actionbar_top_bg_dark" filters="action-bar" />
<overlay id="@drawable/somc_actionbar_middle_bg_dark" filters="action-bar" />
<overlay id="@drawable/somc_actionbar_bottom_bg_dark" filters="action-bar" />
<overlay id="@drawable/somc_actionbar_top_bg_light" filters="action-bar" />
<overlay id="@drawable/somc_actionbar_middle_bg_light" filters="action-bar" />
<overlay id="@drawable/somc_actionbar_bottom_bg_light" filters="action-bar" />
<overlay id="@drawable/somc_cab_bottom_bg_dark" filters="action-bar" />
<overlay id="@drawable/somc_cab_bottom_bg_light" filters="action-bar" />
<overlay id="@drawable/somc_cab_top_bg_dark" filters="action-bar" />
<overlay id="@drawable/somc_cab_top_bg_light" filters="action-bar" />
<filter-group group="button-selector">
<filter type="type" value="selector,animated-selector">
<filter type="included" value="false" />
</filter>
<filter type="type" value="nine-patch,bitmap">
<filter type="included" value="true" />
</filter>
<filter type="size" minWidth="20dp" maxWidth="48dp" minHeight="20dp" maxHeight="48dp">
<filter type="included" value="true" />
</filter>
</filter-group>
<overlay id="@drawable/somc_btn_selector_dark" filters="button-selector" />
<overlay id="@drawable/somc_btn_selector_light" filters="button-selector" />
<overlay id="@color/somc_color_btn_ripple_dark" filters="color" />
<overlay id="@color/somc_color_btn_ripple_light" filters="color" />
<overlay id="@color/somc_color_btn_dark" filters="color" />
<overlay id="@color/somc_color_btn_light" filters="color" />
<filter-group group="btn-elevation">
<filter type="size" value="3dp" tolerance="3dp" />
.................
.....
<overlay id="@drawable/somc_btn_dark" filters="button" />
<overlay id="@drawable/somc_btn_normal_dark" filters="button" />
<overlay id="@drawable/somc_btn_pressed_dark" filters="button" />
<overlay id="@drawable/somc_btn_focused_dark" filters="button" />
<overlay id="@drawable/somc_btn_disabled_dark" filters="button" />
<overlay id="@drawable/somc_btn_disabled_focused_dark" filters="button" />
<overlay id="@drawable/somc_btn_light" filters="button" />
resrved
Nice one bro @Ambor ^^
Sent From My Z2 On LP 5.0.2 Full Debloated !
That's the thread we are looking for... knowledge exchange!
Awesome, congrats my friend, very well written and so fuc**** useful!! Hats off!!!
Pandemic said:
Nice one bro @Ambor ^^
Sent From My Z2 On LP 5.0.2 Full Debloated !
Click to expand...
Click to collapse
serajr said:
That's the thread we are looking for... knowledge exchange!
Awesome, congrats my friend, very well written and so fuc**** useful!! Hats off!!!
Click to expand...
Click to collapse
thanks
From which app did you get the first two screen shots?
dipesh1502 said:
From which app did you get the first two screen shots?
Click to expand...
Click to collapse
theme debuger
Omg:fingers-crossed::fingers-crossed:.I was searching this thread since 2 weeks.But MASTER Ambor have prepared it before.:good::good:
Thanks bro.Keep it up
gamzekal said:
Omg:fingers-crossed::fingers-crossed:.I was searching this thread since 2 weeks.But MASTER Ambor have prepared it before.:good::good:
Thanks bro.Keep it up
Click to expand...
Click to collapse
thanks .. I can not wait until you get a lollipop for Z.
Nice guide bro! Very good!:good::good::good:
Different colors in different apps?
Is it possible to theme every app with different colour?
I tried to add another zips with different colours in it and added them to asset part of manifest but it doesn't work
Only colours from android.zip are applied. I have attached my manifest.
veteran29 said:
Is it possible to theme every app with different colour?
I tried to add another zips with different colours in it and added them to asset part of manifest but it doesn't work
Only colours from android.zip are applied. I have attached my manifest.
Click to expand...
Click to collapse
Zip packages only work on stock Sony Apps Only
I tried this on KK (After restarting APP returned to sock settings)
Another problem is that Sony has something changed, and so far only work package android.zip
BUT ONLY value in XML
PNG FILES NOT WORK
Sony made a scrap of Theme Engine.
Sony Applications That trash
You can see that Lollipop did in a big hurry ..
Ambor said:
Another problem is that Sony has something changed, and so far only work package android.zip
BUT ONLY value in XML
PNG FILES NOT WORK
Click to expand...
Click to collapse
So there is no possibility to change for example the navbar icons?
gripfly said:
So there is no possibility to change for example the navbar icons?
Click to expand...
Click to collapse
Yes but only by mod SystemUI.apk
After reboot my theme crashed and became blue-orange
How can i fix it?
Root
Do we need root ?
Batuhanozerr said:
Do we need root ?
Click to expand...
Click to collapse
It's clearly stated in the OP
Amazing guide @Ambor.. Thank you so much!
STRYDER~007 said:
Amazing guide @Ambor.. Thank you so much!
Click to expand...
Click to collapse
thanks

[Tut][MM][Easy] Making Card Style Settings.apk For MarshMallow + Extra !

Hi people !
I wanna just share my TUT howto add card view settings from old
Xperia X Settings into our Settings of Marshmallow after a alot investigation
and test with fails but now with succes.
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"
}
Steps:
1: Decompile Settings.apk
2: Download attached file then extract and merge into yours
3: Open /res/values/colors.xml, add this values:
Code:
<color name="dashboard_background_color">@drawable/dashboard_background</color>
<color name="dashboard_category_background_color">@drawable/dashboard_category_background</color>
Open /res/layout/dashboard_category.xml, on 2nd line, change to this value
Code:
android:background="?android:colorBackground"
Into this:
Code:
android:background="@drawable/dashboard_category_background"
4: Now as you can see menu divider lines are going out of card from right side. So to fix that.
In /res/layout/dashboard_tile.xml
In line:
Code:
<View android:id="@id/tile_divider" android:background="?android:dividerVertical" android:layout_width="fill_parent" android:layout_height="1.0dip" />
Add android:layout_marginRight="8.0dip"
Then It will look like this
Code:
<View android:id="@id/tile_divider" android:background="?android:dividerVertical" android:layout_width="fill_parent" [COLOR="red"]android:layout_marginRight="8.0dip"[/COLOR] android:layout_height="1.0dip" />
.. Extra Option ..
.. Background Of The Card Accords To Theme ..
Here is howto:
In dashboard_background.xml
DONT copy all - Just compare red lines
Code:
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<padding android:top="72.0dip" />
[COLOR="red"]<solid android:color="@android:color/somc_color_primary_light" />[/COLOR]
</shape>
</item>
<item>
<shape>
<padding android:top="-72.0dip" />
[COLOR="red"]<solid android:color="#80ffffff" />[/COLOR]
</shape>
</item>
<item>
<shape>
<solid android:color="#00000000" />
</shape>
</item>
</layer-list>
Now in dashboard_category_background.xml
* DONT * copy all - Just compare red lines
Code:
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<padding android:left="6.0dip" android:top="8.0dip" android:right="6.0dip" android:bottom="0.0dip" />
<solid android:color="#00000000" />
</shape>
</item>
<item>
<shape>
<padding android:left="1.0dip" android:top="1.0dip" android:right="1.0dip" android:bottom="1.0dip" />
<solid android:color="#03000000" />
<corners android:radius="6.0dip" />
</shape>
</item>
<item>
<shape>
<padding android:left="1.0dip" android:top="1.0dip" android:right="1.0dip" android:bottom="1.0dip" />
<solid android:color="#07000000" />
<corners android:radius="5.0dip" />
</shape>
</item>
<item>
<shape>
<padding android:left="0.0dip" android:top="0.0dip" android:right="0.0dip" android:bottom="1.0dip" />
<solid android:color="#09000000" />
<corners android:radius="4.0dip" />
</shape>
</item>
<item>
<shape>
<padding android:left="0.0dip" android:top="0.0dip" android:right="0.0dip" android:bottom="1.0dip" />
<solid android:color="#09000000" />
<corners android:radius="3.0dip" />
</shape>
</item>
<item>
<shape>
<corners android:radius="2.0dip" />
[COLOR="red"]<solid android:color="@android:color/somc_color_background_light" />[/COLOR]
</shape>
</item>
</layer-list>
- save all changes, recompile, sign, push
- done
...: Credits :...
@idid idamrep: For his guide for LP
RXS Bro @Bloodlvst: For his help
RXS Sister @Marília de Oliveira: For investigations
RXS Bro @Mohitash: For Corrections + Extra Option
-------------------
*** Note !! ***
Don`t hesitate to press the thanks for this guide !!
**********************
​
Res
Awsom bro.. Keep up the good work
Rajeev said:
Awsom bro.. Keep up the good work
Click to expand...
Click to collapse
Thanks my RXS bro @Rajeev ^^
22 views means 22 downloads !
and just 3 thanks -__-"
wow amazing lazy ones, any feedback ?
well atleast for me this works
@Pandemic Looks cool bro..!!
Thanks for the tutorial...
i have a bug i think.... my settings work like before and now i have card style, but the color behind cards doesn't change... i tried different themes but still the same
Metall Boy said:
i have a bug i think.... my settings work like before and now i have card style, but the color behind cards doesn't change... i tried different themes but still the same
Click to expand...
Click to collapse
Hm weird i explained exactly how i did it @Metall Boy
Any screenshot and info like which device, fw, odex or deodexed ?
You people can have issue but i dunno it without any info and the most MM users have odexed rom what is pretty carbage in my eyes because less modificaction due the arm folders.
Pandemic said:
Hm weird i explained exactly how i did it @Metall Boy
Any screenshot and info like which device, fw, odex or deodexed ?
You people can have issue but i dunno it without any info and the most MM users have odexed rom what is pretty carbage in my eyes because less modificaction due the arm folders.
Click to expand...
Click to collapse
here is the screenshot, as you can see i have cards now, but the color behind them doesn't change im using stock based MM rom (see my signature)
Metall Boy said:
here is the screenshot, as you can see i have cards now, but the color behind them doesn't change im using stock based MM rom (see my signature)
Click to expand...
Click to collapse
@Metall Boy
Hmm oke weird and you are sure you have no arm folder in the system/settings folder ?
If not well give me some days i think on monday i fixed it, no pc these days but after the weekend i have, but probarly i forgot something... What an idiot i am :silly: .
Pandemic said:
@Metall Boy
Hmm oke weird and you are sure you have no arm folder in the system/settings folder ?
If not well give me some days i think on monday i fixed it, no pc these days but after the weekend i have, but probarly i forgot something... What an idiot i am :silly: .
Click to expand...
Click to collapse
I dont have any arm folder, I'm using deodexed rom thank you for your time and for this great tutorial
Metall Boy said:
I dont have any arm folder, I'm using deodexed rom thank you for your time and for this great tutorial
Click to expand...
Click to collapse
Hmm oke then i forgot something and i know what already bu no pc, so cant copy the codes from my settings and post it here, i hope you all can wait till monday and you're welcome ^^
Pandemic said:
Hmm oke then i forgot something and i know what already bu no pc, so cant copy the codes from my settings and post it here, i hope you all can wait till monday and you're welcome ^^
Click to expand...
Click to collapse
yes of course we can wait, no problem thanks again!
Nice man
@Pandemic
My setting app had gone after following your guide. Help me please.
My Z5d MM 6.0.1 rooted, deodexed.
devilmaycry2020 said:
@Pandemic
My setting app had gone after following your guide. Help me please.
My Z5d MM 6.0.1 rooted, deodexed.
Click to expand...
Click to collapse
@devilmaycry2020
Thats weird and i dunno if you read my replies but i need to add some missing lines in the 1st post, which FW you use ?
Pandemic said:
@devilmaycry2020
Thats weird and i dunno if you read my replies but i need to add some missing lines in the 1st post, which FW you use ?
Click to expand...
Click to collapse
I'm using E6683_32.2.A.0.224. Did you missing some steps?
p/s: i don't know why i just decompress settings.apk then recompile (no edit anything )then put back the phone and setting app had gone. it's strange.
devilmaycry2020 said:
I'm using E6683_32.2.A.0.224. Did you missing some steps?
p/s: i don't know why i just decompress settings.apk then recompile (no edit anything )then put back the phone and setting app had gone. it's strange.
Click to expand...
Click to collapse
You signed apk?
devilmaycry2020 said:
I'm using E6683_32.2.A.0.224. Did you missing some steps?
p/s: i don't know why i just decompress settings.apk then recompile (no edit anything )then put back the phone and setting app had gone. it's strange.
Click to expand...
Click to collapse
Please read this my friend
V
V
V
Pandemic said:
Hmm oke then i forgot something and i know what already bu no pc, so cant copy the codes from my settings and post it here, i hope you all can wait till monday and you're welcome ^^
Click to expand...
Click to collapse
It will be fixed like i said on Monday
Patients.
Kuciak said:
You signed apk?
Click to expand...
Click to collapse
Yes, define absolutely. i signed it. i mod many thing app no problem.

Categories

Resources