[MOD][GUIDE]WebOS style Task Switcher for Jellybean. - Android Themes

This mod is originally posted HERE by Evilisto and copy-pasting given code works for ICS, but NOT for JB. So, i worked out the little modifications to be done for JB, and it works, only you wont get the WP blue color as background. All actual credits go to Evilisto.​.​This can be done for any device running Jellybean, the only thing you would need to change are the dip values​.​
SETTING UP
REQUIRED STUFF.
-- Apktool. 1.5.0 works best for me, but if not, a previous version is fine too.
-- framework-res.apk from ROM.
-- SystemUI.apk from ROM.
-- Knowledge on decompiling, recompiling apks.
-- Notepad++ recommended.
HOW-TO.
-- Copy framework-res.apk and SystemUI.apk to your folder.
-- Install framework-res.apk. This step is important.
Code:
apktool if framework-res.apk
-- Decompile framework-res.apk
Code:
apktool d framework-res.apk
This will give you a folder called framework-res. This is your decompiled apk.
-- Decompile SystemUI.apk
Code:
apktool d SystemUI.apk
This will give you a folder named SystemUI.
-- Alternatively, you can specify the folder name to be created. For ex : i want framework for framework-res.apk folder :
Code:
apktool d framework-res.apk framework
This will name the folder framework.
OR
Code:
apktool d SystemUI.apk System
This will give you folder named System for decompiled SystemUI.apk
==================================================
THE MODIFICATIONS
IN FRAMEWORK-RES.APK
-- Open framework-res folder. Navigate to res/values, right-click on Dimens.xml and select 'edit with Notepad++' or any other you may prefer.
Find default values of the following values and change it to given values.
res/values/dimens.xml
Code:
<dimen name="thumbnail_height">270.0dip</dimen>
<dimen name="thumbnail_width">192.0dip</dimen>
===================================================
IN SYSTEMUI.APK
-- Save file, go back and open your SystemUI folder and open the res/ folder.
-- Copy paste the following code by editing specified files.
res/values/dimens.xml
Code:
<dimen name="thumbnail_height">270.0dip</dimen>
<dimen name="thumbnail_width">192.0dip</dimen>
res/values/drawables.xml
ADD THE FOLLOWING LINE :
Code:
<item type="drawable" name="status_bar_recents_background_solid">#ff33b1e1</item>
res/layout-port/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
res/layout-port/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingTop="@dimen/status_bar_recents_item_padding" android:paddingBottom="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:foreground="@drawable/recents_thumbnail_fg" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="192.0dip" android:layout_height="270.0dip" />
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="0.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
</FrameLayout>
<View android:id="@id/recents_callout_line" android:background="@drawable/recents_callout_line" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="1.0dip" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:layout_marginRight="3.0dip" android:layout_toLeftOf="@id/app_thumbnail" android:layout_below="@id/app_label" android:layout_alignParentLeft="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="95.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
res/layout-land/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background_solid" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|right|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
res/layout-land/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@*android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="125.0dip" android:layout_height="180.0dip" />
</FrameLayout>
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" />
</RelativeLayout>
</FrameLayout>
res/layout/status_bar_no_recent_apps.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
=================================================
-- Recompile SystemUI.apk
Code:
apktool b SystemUI SystemUI2.apk
-- Recompile framework-res.apk
Code:
apktool b framework-res framework-res2.apk
-- Open SystemUI.apk and SystemUI2.apk with 7-zip. Select open archive.
-- Delete resources.arsc, classes.dex and res folder from original SystemUI.apk
-- Copy resources.arsc, classes.dex and res folder from SystemUI2.apk and paste them into the SystemUI.apk archive.[/COLOR]
-- Now, here, i usually use Apk-Multitool but you can use CMD too. Now you need to zipalign SystemUI.apk. There are different methods, best is to download APkMultiTool and do it. Or if you have the SDK, you can do it directly through command prompt or terminal.
-- Connect phone to PC.
-- Copy SystemUI.apk and framework-res2.apk and rename framework-res2.apk to framework-res.apk.
--Move SystemUI.apk to system/app and set rw-r--r-- permissions. Move framework-res.apk to system/framework and set rw-r--r-- permissions.
-- Reboot and you're done.
Credits to Evilisto and others listed in his credits​​

Screenshot please?
Enviado desde mi GT-I9100 usando Tapatalk 2

{
"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"
}

Which Jellybean does this work on; 4.1 or 4.2, if there would be any difference in the procedure, it would be nice if you could make that known

jhtfarquhar said:
Which Jellybean does this work on; 4.1 or 4.2, if there would be any difference in the procedure, it would be nice if you could make that known
Click to expand...
Click to collapse
I've tried with 4.1.x, you could try with 4.2 and tell me if it works..

Can't recompile
I need help, I have verizon galaxy nexus with CM10.1 nightly and I can't recompile apks with TickleMyAndroid, even if I dont change anything!!!

kouta77 said:
I need help, I have verizon galaxy nexus with CM10.1 nightly and I can't recompile apks with TickleMyAndroid, even if I dont change anything!!!
Click to expand...
Click to collapse
Try apktool 1.5.1
Cheers,
K.A.

When I am recompiling the apks for my Nexus 4 (using CM10.1) I get the errors, do you know
Code:
Ryan-McKinneys-MacBook-Pro-2:Mod RyanMcK$ apktool b SystemUI SystemUI2.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more

Wow, Looks Good..
Nice, I Like It,,,.
Btw, I dont Have device running Jb or ics...

qurit said:
When I am recompiling the apks for my Nexus 4 (using CM10.1) I get the errors, do you know
Code:
Ryan-McKinneys-MacBook-Pro-2:Mod RyanMcK$ apktool b SystemUI SystemUI2.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /var/folders/m_/jvrkxq0n7dlg81pnltdqljt00000gq/T/APKTOOL411786079513505054.tmp, -0, arsc, -I, /Users/RyanMcK/Library/apktool/framework/1.apk, -S, /Users/RyanMcK/Desktop/Mod/SystemUI/res, -M, /Users/RyanMcK/Desktop/Mod/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Click to expand...
Click to collapse
Read these lines :
Code:
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_background').
/Users/RyanMcK/Desktop/Mod/SystemUI/res/layout-land/status_bar_recent_panel.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/recents_transition_placeholder_icon').
Missing ids. Add the missing ids to values/ids.xml

Has anybody verified if this works on 4.2?

i followed this guide and didn't get any errors while recompiling but only the landscape works properly
look what happened to the portrait view
i am using galaxy s advance JB 4.1.2 stock rooted samsung official

its works bro, in my JB 4.1.2
thanks for your guide.
nice view

Can this guide work on 4.4.2 KitKat?
Inviato dal mio Nexus 4 con Tapatalk 2

You should make this into an xposed Framework module
Sent from my SM-N900V using Tapatalk

117micc said:
You should make this into an xposed Framework module
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
I would love to see an xposed like that . But I don't think it's possible
≪███▓▒Sℵα℘℘εD ₣ℜ✪ℳ ℳψ JεℓℓySℵα℘ ℜ✪ℳ™▒▓███≫

Will this work on KitKat ?

H!
not work on cm10.1 :crying:

If you're going to make it possible ob Kitkat, I'll be one of those guys who wait
Sent from my GT-I8160 using Tapatalk

I vote for an xposed framework too
Sent from my Nexus 4 using Tapatalk

Related

[MOD][GUIDE] ICS SGS AOSP/AOKP - Statusbar Date Mods

i found a guide in the Nexus S forums to Add date to the top bar. (and removed from dropdown)
ported to ICS SGS project (AOSP ICS) for captivate by ME!!!
DOWNLOADS AT BOTTOM OF 1st POST
built on RC3.1 but will work on all versions. no ICSSGS release is perfect, so not going to worry about multiple versions unless I feel there is a real reason to.
made the zip to delete .odex file as this apk is de-odexed. so IT WORKS ON BOTH!!!
Battery mod included.
Right Hand Date ( Giggidy.. I had a right hand date last night..)
{
"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"
}
Centered Date/Time - smaller font
Made to work with trial and error combining two mod guides... and changing font size to 12. that was all me!
http://forum.xda-developers.com/showthread.php?t=1491887
http://forum.xda-developers.com/showthread.php?p=19760562#post19760562
Note: if you enable every statusbar icon(bt, vibrate,alarm,wifi etc) it will look messy cause the clock overlapse the icons...
Enjoy the Effin Mods!!
edits posted below.. the centre mod took a bit of playing around, original date centering guide was for AOKP (kang project) not AOSP (had centred time to begin with)
1. TO ADD DATE:
You have to decompile SystemUI.apk
Go to file: SystemUI.apk\res\layout\status_bar.xml
find the line looks like this... (line 15 ish..)
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
change androidaddingLeft= to "4.0dip"go to the beginning of the clock code and insert a line above it, paste this line above clock code
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 this.... (keeping spacing in-line)
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>
above in the original clock line, I set the
Code:
android:paddingLeft="4.0dip"
(was 6.0dip) to the same value as 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:
<item name="android:textSize">12.0sp</item>
HOW TO CENTER CLOCK/DATE AFTER FIRST MOD
2. CLOCK FIRST...
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
<com.android.systemui.statusbar.policy.Clock
-delete the entire original clock line
-next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" 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/clock" />
</LinearLayout>
-make sure everything lines up (see my xml below)
-lastly, find this line:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
-right after "@id/ticker" add this drawable:
Code:
android:background="@drawable/status_bar_bg_tile"
3. NOW DATE....
now find, copy & delete (or cut) the line we modded in 1st part (adding date):
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 the part pasted at the top, above the line...
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so it will look like..... full xml - changes in RED..
Code:
<?xml version="1.0" encoding="utf-8"?><com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
[COLOR=#ff0000] xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">[/COLOR]
[COLOR=#ff0000] <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
[COLOR=#ff0000] <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" />[/COLOR]
[COLOR=#ff0000] <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity "center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
[COLOR=#ff0000] </LinearLayout>[/COLOR]
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" [COLOR=#ff0000]android:background="@drawable/status_bar_bg_tile"[/COLOR]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="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.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="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
reserved....
just in case have more mods...
Will this work on fuzion ics
Sent from my SGH-I897 using XDA App
I think fusion is built off of CM9. So it won't work. If it is built off ICS SGS then it will
Thanks a million TR...worked perfect on first try of both mods...nice work and I'll hit thanks when I get off work.
Sent from my SGH-I897 using XDA App
I'm not sure about the xda app but with tapatalk you are able to give thanks through the app, Same way you reply, click a post then click thanks
Its all good ....just got thanks taken care of.....ill keep an eye out for more updates from you.....later
REALLY SURPRISED this isn't more popular. I LOVE this mod
3 downloads?
Ima give this a try when i get home....
Awesome wallpaper mind sharing?
heres the wallpaper... but 1 sec i'll PM you "the.zip" file.
This is great thanks!
Sent from my SGH-I897 using XDA App
Love the way it looks. I am on the Kang CM9 RC0 right now and wish it worked on that. I assume if I flash it my stuff will be broken. So, I will wait for another version to magically appear somewhere maybe.
well if you use the guide part of the first post, and a little playing around, I'm sure it would be possible.
TRusselo said:
heres the wallpaper... but 1 sec i'll PM you "the.zip" file.
Click to expand...
Click to collapse
May I also get that "the.zip" file please?
TRusselo said:
well if you use the guide part of the first post, and a little playing around, I'm sure it would be possible.
Click to expand...
Click to collapse
I may mess around with and see what I can do. I love the way it looks. As a matter of fact if I could get this working I wouldn't need a huge widget on my main screen to display this info anymore. I have gone as far as extracting the xml files, but I am on a windows box and it doesn't like the XML format. Says it is corrupt, illegal characters etc. I will look around at some more of the modding guides and see if I can find a XML editor that will work. It seems most are still geared toward 2.2-2.2 versions of the OS. My knowledge is limited, as I am not a developer anyway.
Maybe I won't brick it.
I use windows only... Use notepad++ to edit... Anything...
And don't worry there is absolutely no risk of bricking your phone. At Worst, a bunch of force closes until you restore the original APK
Did you decompile APK properly? (right way) Or just use win rar? (wrong way). The winrar method will only work changing images
TRusselo said:
Did you decompile APK properly? (right way) Or just use win rar? (wrong way). The winrar method will only work changing images
Click to expand...
Click to collapse
Yeah, I seem to have taken a wrong turn with the winrar way. I saw information about apktool a few minutes ago and I just got it installed. So I will see if I can get to work this time through. Thanks for the info.
to de-compile ICS apks without error you will have to find the new updated AAPT.exe files and add them to the apktools ... ? bin folder??? er... sorry not at home. look through its folders and find the old one, and replace with new. ALSO add the updated AAPT files to " C:/Windows/ " as some times it will look for it there and other tools may install it there as well. I was unable to de-compile until i added it there.
APK_Manager ... er updated name...?? APK toolbox??
apktools...
xda auto-tools...
all does the same things and all need the aapt update to decompile ICS as they all use the same base tools through a different GUI...

[MOD][Android 4.1.2] Add Customizable 23 Statusbar Toggles To Samsung Jelly bean Roms

This is an update of the known 15 toggles, with more toggles and a new application to customize an reorder the toggles in the status bar, i modded Lidroid App to keep only the Status bar features.
Here is how it looks like :
{
"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"
}
Let start, you need to decompile SystemUI.apk, you can use my updated Apk_Manager Repack.
Edit "SystemUI.apk\res\layout\tw_status_bar_expanded.xml" and make these changes, this will hide the stock status bar and use the new one:
Code:
<TextView android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:visibility="gone" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
<com.wanam.systemui.quickpanel.PowerWidget android:id="@id/exp_power_stat" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height" />
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip" android:layout_marginTop="@dimen/notification_panel_quicksettingbtn_height">
Edit "SystemUI.apk\res\values\ids.xml" and add this Id:
Code:
++ <item type="id" name="exp_power_stat">false</item>
Edit "SystemUI.apk\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali" and make these changes :
Add mPowerWidget field :
Code:
.field mPostCollapseCleanup:Ljava/lang/Runnable;
+++.field mPowerWidget:Lcom/wanam/systemui/quickpanel/PowerWidget;
.field mQueueLock:Ljava/lang/Object;
Method "makeStatusBarView" :
Code:
invoke-virtual {v1, v0, p3, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
.line 1120
+++iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/wanam/systemui/quickpanel/PowerWidget;
+++invoke-virtual {v1}, Lcom/wanam/systemui/quickpanel/PowerWidget;->updateWidget()V
return-void
Code:
invoke-virtual {v13, v14}, Landroid/widget/ScrollView;->setVerticalScrollBarEnabled(Z)V
+++move-object/from16 v0, p0
+++iget-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
+++const v14, 0x7f0d010e
+++invoke-virtual {v13, v14}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
+++move-result-object v13
+++check-cast v13, Lcom/wanam/systemui/quickpanel/PowerWidget;
+++move-object/from16 v0, p0
+++iput-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/wanam/systemui/quickpanel/PowerWidget;
.line 698
new-instance v13, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;
Code:
invoke-virtual {v1, v13, v2}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
+++move-object/from16 v0, p0
+++iget-object v13, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerWidget:Lcom/wanam/systemui/quickpanel/PowerWidget;
+++invoke-virtual {v13}, Lcom/wanam/systemui/quickpanel/PowerWidget;->setupWidget()V
.line 826
sget-boolean v13, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->useTouchWizGUI:Z
Extract attached "wanam.zip" and copy both folders "com" & "wanam" to your "SystemUI.apk\smali\".
That's all, recompile your SystemUI.
After building, make sure your Id "exp_power_stat" got the public id "0x7f0d010e", if you got a different Id, use your new public Id in the "makeStatusBarView" method.
Download attached "system.zip" , you need to copy Toggle buttons resources "lidroid-res.apk" to "system/framework", and "LidroidSettings.apk" to "/system/app" (with permissions 644).
Use this guide to mod lidroid-res.
Thanks to Lidroid for his awesome work, big thanks to GrgSiocl for providing the required files.
I attached a CWM patch working on DEODEXED XXELKC Roms ONLY!
(Patches and system file updated to V2 with a new repacked Lidroid App, why?)
This Mod is now featured on the Index of mods INDEX ALL IN 1
Any observation please send me PM
Awesome work :thumbup:
Thank you Wanam for one more time share your knowledge with the community.
NFC toggle
Hi wanam,
thanks for your awesome work.
I use this mod with Omega v34 (XXELKC Android 4.1.2) on my SGS3, and it works great except one little but annoying problem:
the NFC-toggles doesn't seem to work
i can add the Android-Beam/S-Beam buttons, and when i click on them, the color of the button changes.
but when i long-press the button and enter the menu the settings don't change.
i've talked to the developer of this ROM and he told me, that this problem is within the mod.
hope you could look into it
thanks in advance.
greets
how to CUSTOM settings @ Default ?
is there a way, to Edit a Certain .xml file to set custom settings as DEFAULT...
1st part ..Widget Buttons (where 23 toggles have on\off switches -custom)
2nd part..Brightness modes (picks 1 of 4 as default)
3rd part...Sound Modes (picks 1 of 7 as default)
4th part...Widget Button Order (Customize the order from left to right)
I Decompiled AdvanceS.apk, and others to find Default settings..It's probably in another .apk file.
I install ROM many times and can't bring in my Custom settings
-not even if i Use Titanium backup of AdvanceS file (so that tells me settings are stored somewhere else)
-I can't add back data\data\{folder} settings, cus ROM automatically overwrites my settings.
ANY Help would be great...Love ur MOD's.. I added them to current UVDLJC ROM base of SGS3 (Tmobile)
Thanks again for your WORK!
Can't thank you enough Wanam! Ported this to LL1 747/t999 this afternoon and people are loving it. Props to lidroid of course as well you kind of guys make this community what it is.
Reboot button crash:
Code:
E/AndroidRuntime( 3923): FATAL EXCEPTION: main
E/AndroidRuntime( 3923): java.lang.SecurityException: Neither user 10064 nor current process has android.permission.REBOOT.
E/AndroidRuntime( 3923): at android.os.Parcel.readException(Parcel.java:1425)
E/AndroidRuntime( 3923): at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime( 3923): at android.os.IPowerManager$Stub$Proxy.reboot(IPowerManager.java:624)
E/AndroidRuntime( 3923): at android.os.PowerManager.reboot(PowerManager.java:594)
E/AndroidRuntime( 3923): at com.wanam.systemui.quickpanel.RebootButton$2.onClick(RebootButton.java:56)
E/AndroidRuntime( 3923): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
E/AndroidRuntime( 3923): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3923): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3923): at android.app.ActivityThread.main(ActivityThread.java:4898)
E/AndroidRuntime( 3923): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3923): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3923): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
E/AndroidRuntime( 3923): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
E/AndroidRuntime( 3923): at dalvik.system.NativeStart.main(Native Method)
Flash light crash:
Code:
E/AndroidRuntime( 3922): FATAL EXCEPTION: main
E/AndroidRuntime( 3922): java.lang.RuntimeException: Fail to connect to camera service
E/AndroidRuntime( 3922): at android.hardware.Camera.native_setup(Native Method)
E/AndroidRuntime( 3922): at android.hardware.Camera.<init>(Camera.java:348)
E/AndroidRuntime( 3922): at android.hardware.Camera.open(Camera.java:325)
E/AndroidRuntime( 3922): at com.wanam.util.LedController.openCamera(LedController.java)
E/AndroidRuntime( 3922): at com.wanam.util.LedController.isFlashSupported(LedController.java)
E/AndroidRuntime( 3922): at com.wanam.systemui.quickpanel.FlashlightButton.toggleState(FlashlightButton.java)
E/AndroidRuntime( 3922): at com.wanam.systemui.quickpanel.PowerButton$2.onClick(PowerButton.java:181)
E/AndroidRuntime( 3922): at android.view.View.performClick(View.java:4211)
E/AndroidRuntime( 3922): at android.view.View$PerformClick.run(View.java:17267)
E/AndroidRuntime( 3922): at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime( 3922): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 3922): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3922): at android.app.ActivityThread.main(ActivityThread.java:4898)
E/AndroidRuntime( 3922): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3922): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3922): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
E/AndroidRuntime( 3922): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
E/AndroidRuntime( 3922): at dalvik.system.NativeStart.main(Native Method)
E/android.os.Debug( 2536): [email protected] > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error
Seems some stuff is broken for XXEMR2
Kryten2k35 said:
Code:
E/AndroidRuntime( 3923): FATAL EXCEPTION: main
E/AndroidRuntime( 3923): java.lang.SecurityException: Neither user 10064 nor current process has android.permission.REBOOT.
E/AndroidRuntime( 3923): at android.os.Parcel.readException(Parcel.java:1425)
E/AndroidRuntime( 3923): at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime( 3923): at android.os.IPowerManager$Stub$Proxy.reboot(IPowerManager.java:624)
E/AndroidRuntime( 3923): at android.os.PowerManager.reboot(PowerManager.java:594)
E/AndroidRuntime( 3923): at com.wanam.systemui.quickpanel.RebootButton$2.onClick(RebootButton.java:56)
E/AndroidRuntime( 3923): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
E/AndroidRuntime( 3923): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3923): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3923): at android.app.ActivityThread.main(ActivityThread.java:4898)
E/AndroidRuntime( 3923): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3923): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3923): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
E/AndroidRuntime( 3923): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
E/AndroidRuntime( 3923): at dalvik.system.NativeStart.main(Native Method)
Seems the reboot part is broken for XXEMR2
Click to expand...
Click to collapse
Nop it's not broken, MR2 is the first S3 FW which revoked the system core status from SystemUI, and this will be the same for upcoming FWs, so you won't be able to access flashlight and reboot command, check your AndroidManifest file, add both required permissions or just add back the system status :
Code:
android:sharedUserId="android.uid.system" android:process="system"
You will need to resign your file after the compilation, and disable signature check on "services.jar", by forcing the result value of "comparesignature" method to 0 or greater, otherwise your mod will work with a No-Wipe Only!
Thanks wanam!
Where abouts in services.jar do I find that value? Any idea which file?
Another problem I'm having (while I have your attention ) is that the ongoing notifications are in the middle of the brightness slider
EDIT:
In AndroidManefest.xml
Is it this?
Code:
<service android:name="SystemUIService" android:sharedUserId="android.uid.system" android:process="system" android:exported="true" />
?
EDIT2:
Also, I've found the "comparesignature" method of "PackageMAnagerService.smali" but I have no idea what I'm doing.
EDIT3:
I've seen your 5.8 ROM has the changes I need, so I'm grabbing that
Could the Icons of widget buttons be changed?
Kryten2k35 said:
Thanks wanam!
Where abouts in services.jar do I find that value? Any idea which file?
Another problem I'm having (while I have your attention ) is that the ongoing notifications are in the middle of the brightness slider
EDIT:
In AndroidManefest.xml
Is it this?
Code:
<service android:name="SystemUIService" android:sharedUserId="android.uid.system" android:process="system" android:exported="true" />
?
EDIT2:
Also, I've found the "comparesignature" method of "PackageMAnagerService.smali" but I have no idea what I'm doing.
Click to expand...
Click to collapse
In the AndroidManifest, your header should be like this :
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:sharedUserId="android.uid.system" android:process="system" android:versionCode="16"
The content of the "comparesignature" method should be like this:
Code:
.method static compareSignatures([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.registers 9
.parameter "s1"
.parameter "s2"
.prologue
const/4 v6, 0x0
const-string v3, "Wanam: PackageManager"
const-string v4, "Skip signature check."
invoke-static {v3, v4}, Landroid/util/Slog;->e(Ljava/lang/String;Ljava/lang/String;)I
return v6
.end method
EDIT: for the brightness bar issue, is it default enabled on your FW, you don't get it with stock toggles?
For the brightness slider, it's enabled for both the stock and 23 toggles, but when using 23 toggles, it looks like the attached image.
I fixed it somehow before, but god knows how I did it.
My tw_status_bar_expanded.xml looks like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/back" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<TextView android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:visibility="gone" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
<com.wanam.systemui.quickpanel.PowerWidget android:id="@id/exp_power_stat" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height" />
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip" android:layout_marginTop="128.0dip">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip">
<ImageView android:id="@id/brightness_icon" android:clickable="true" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/ic_sysbar_brightness" android:contentDescription="@string/accessibility_brightness_icon" />
<FrameLayout android:id="@id/brightness_group" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/auto_brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
</FrameLayout>
</LinearLayout>
<View android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="170.0dip" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:visibility="gone" android:layout_width="180.0dip" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#ff000000" android:focusable="true" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:visibility="gone" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:orientation="horizontal" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:visibility="gone" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />
</RelativeLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" android:src="@drawable/status_bar_close" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
It's not stock, but it used to be fine until the last two FW's
Kryten2k35 said:
For the brightness slider, it's enabled for both the stock and 23 toggles, but when using 23 toggles, it looks like the attached image.
I fixed it somehow before, but god knows how I did it.
My tw_status_bar_expanded.xml looks like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/back" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<TextView android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:visibility="gone" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
<com.wanam.systemui.quickpanel.PowerWidget android:id="@id/exp_power_stat" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height" />
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip" android:layout_marginTop="128.0dip">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip">
<ImageView android:id="@id/brightness_icon" android:clickable="true" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/ic_sysbar_brightness" android:contentDescription="@string/accessibility_brightness_icon" />
<FrameLayout android:id="@id/brightness_group" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/auto_brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
</FrameLayout>
</LinearLayout>
<View android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="170.0dip" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:visibility="gone" android:layout_width="180.0dip" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#ff000000" android:focusable="true" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:visibility="gone" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:orientation="horizontal" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:visibility="gone" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />
</RelativeLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" android:src="@drawable/status_bar_close" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
It's not stock, but it used to be fine until the last two FW's
Click to expand...
Click to collapse
You need to fix your statusbar layouts.
Sent from my GT-N7100 using Tapatalk 2
Which parts do you suggest?
EDIT:
The manefest.xml and services.jar changes worked great
EDIT2 :
If only The scroll part of that layout would actually pay attention to the marginTop value it wouldn't be an issue! But changing it does nothing!
EDIT3:
I had to change the value entirely in the dimens.xml file, then it moved
Kryten2k35 said:
Which parts do you suggest?
EDIT:
The manefest.xml and services.jar changes worked great
EDIT2 :
If only The scroll part of that layout would actually pay attention to the marginTop value it wouldn't be an issue! But changing it does nothing!
EDIT3:
I had to change the value entirely in the dimens.xml file, then it moved
Click to expand...
Click to collapse
Did you try to just increase the value of marginTop?
Code:
android:layout_marginTop="170.0dip"
wanam said:
Did you try to just increase the value of marginTop?
Code:
android:layout_marginTop="170.0dip"
Click to expand...
Click to collapse
I did. It was set to be 180.dip, but I changed the value in the dimens.xml and that moved it... All sorted
Thanks wanam!
Hi wanam.
I wanted to let you know that I ported this (with your helpful info about PhoneStatusBar.smali in the op) to Xperia T. If you have any suggestions, feel free to write me. Here is the thread - http://forum.xda-developers.com/showthread.php?p=34280785.
Another time I came here to say tank you.
Working fine with your new tips.
You are the man!
Sent from my SPH-L900 using Tapatalk 2

[Q] Big photo in call screen

Can someone please help me with this big call screen?
I tryed to make it for stock like this ... is 320x280px
{
"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"
}
but i just can't succeed ...
I ask for apk from the one who make the screen but doesn't have ace anymore.
Tutorial from here -> http://forum.xda-developers.com/showthread.php?t=1856046 is poor, and xml.file is deleted ... please someone make it for me ! I tryed for 20 times without success.
Original apps attached !
Thanx, Cryss !
Actually. In the tutorial thread, i think the file to be downloaded is in txt format. Maybe you need to convert it to .xml
Edit: Didnt read that the xml file was deleted..
We could have had it all, Rolling in the Deep!
Unnamed.Ace.User said:
Actually. In the tutorial thread, i think the file to be downloaded is in txt format. Maybe you need to convert it to .xml
Edit: Didnt read that the xml file was deleted..
We could have had it all, Rolling in the Deep!
Click to expand...
Click to collapse
Yeah, i hoped someone really want to help, it's not big deal but i cannot do it, damn !
LOL!! so difficult it is?
Was SpaceCaker informed about this mod?? JAJAJA I'm sure he is able to do this job the dammed Space is a genius! HAHAH
I'd like to try but there isn't attached file in the original thread's, the link is broken
Viper The Ripper said:
LOL!! so difficult it is?
Was SpaceCaker informed about this mod?? JAJAJA I'm sure he is able to do this job the dammed Space is a genius! HAHAH
I'd like to try but there isn't attached file in the original thread's, the link is broken
Click to expand...
Click to collapse
Yup spacecaker can do it for sure...
-asdf-
Viper The Ripper said:
LOL!! so difficult it is?
Was SpaceCaker informed about this mod?? JAJAJA I'm sure he is able to do this job the dammed Space is a genius! HAHAH
I'd like to try but there isn't attached file in the original thread's, the link is broken
Click to expand...
Click to collapse
It is without that damn file ...
i swear, i can't understand people that upload small files like that xml file on cheap sites when we hape XDA upload host ...
Anyway, wait for someone who can really help !
if i know the name of the xml i can take ablook but am self bit bussy
Sent from my S500 using xda app-developers app
SpaceCaker said:
if i know the name of the xml i can take ablook but am self bit bussy
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Maybe its call_card_person_info.xml
-asdf-
SpaceCaker said:
if i know the name of the xml i can take ablook but am self bit bussy
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
OK space man, no hurry, when you have time ... Big thanx !
Unnamed.Ace.User said:
Maybe its call_card_person_info.xml
-asdf-
Click to expand...
Click to collapse
It is, i modd that but doesn't change anything, maybe wrong de-recompilation ... i tryed 20 times untill now, without success, that's why i asked 4 help. Thanx
So, no one can help ? Come on people ...
Cryss said:
So, no one can help ? Come on people ...
Click to expand...
Click to collapse
It's the file call_card_person_info.xml which we need to mod
I extracted this info from I9000 forum, I hope it help us to mod the file I have a trouble opening this file with notepad ++ and using AXMLPrinter2.jar too
Code:
<?xml version="1.0" encoding="UTF-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/callCardPersonInfo" android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:layout_width="wrap_content" android:layout_height="216.0dip">
<ImageView android:id="@id/photo" android:layout_width="216.0dip" android:layout_height="216.0dip" android:layout_centerHorizontal="true" />
</RelativeLayout>
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="34.0dip" android:layout_marginTop="0.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/birthIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/call_birthday_icon" />
<TextView android:textSize="32.0sp" android:textColor="@color/twcolor001" android:gravity="center_vertical" android:id="@id/name" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="36.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="18.0sp" android:textColor="@color/twcolor003" android:gravity="center_vertical" android:id="@id/phoneNumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textSize="18.0sp" android:textColor="@color/twcolor003" android:gravity="center_vertical" android:id="@id/city" android:layout_width="wrap_content" android:layout_height="26.0dip" android:singleLine="true" />
</LinearLayout>
</FrameLayout>
I've found this info too but It isn't from Gingerbread sources, I guess it's form Eclair :S
http://forum.xda-developers.com/showthread.php?t=576310
Yeah...It's by default in Phone.apk
Code:
ORIGINAL FILE (call_card_person_info.xml) FROM GALAXY ACE
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/callCardPersonInfo" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" [COLOR="blue"]android:layout_height="181.0dip"[/COLOR]>
<ImageView android:id="@id/photo" android:background="@drawable/incall_photo_border_lg" [COLOR="blue"]android:layout_width="172.0dip"[/COLOR] [COLOR="blue"]android:layout_height="166.0dip"[/COLOR] android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:contentDescription="@string/contactPhoto" />
<Button android:textAppearance="?android:textAppearanceMedium" android:textColor="?android:textColorPrimary" android:id="@id/manageConferencePhotoButton" android:background="@drawable/manage_conference_photo_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="16.0dip" android:text="@string/onscreenManageConferenceText" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="15.0sp" android:textStyle="bold" android:id="@id/elapsedTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="3.0dip" android:singleLine="true" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
</RelativeLayout>
<TextView android:textAppearance="?android:textAppearanceLarge" android:textSize="28.0sp" android:gravity="center_horizontal" android:id="@id/name" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:paddingBottom="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-13.0dip" android:singleLine="true" />
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-1.0dip">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="18.0sp" android:textColor="?android:textColorSecondary" android:id="@id/label" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="18.0sp" android:textColor="?android:textColorSecondary" android:id="@id/phoneNumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</LinearLayout>
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="?android:textColorSecondary" android:ellipsize="end" android:id="@id/callTypeLabel" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="?android:textColorSecondary" android:ellipsize="end" android:id="@id/socialStatus" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="2" />
</LinearLayout>
Working with Contacts.apk
Code:
ORIGINAL FILE (dimens.xml) GALAXY ACE
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<dimen name="linked_contact_icon_size">20.0dip</dimen>
<dimen name="quickcontact_shadow_horiz">30.0dip</dimen>
<dimen name="quickcontact_shadow_vert">37.0dip</dimen>
<dimen name="quickcontact_shadow_touch">20.0dip</dimen>
<dimen name="[COLOR="Blue"]edit_photo_size">92.0dip</dimen>[/COLOR]
<dimen name="tab_height">40.0dip</dimen>
<dimen name="account_name_height">25.0dip</dimen>
<dimen name="contact_shortcut_frame_width">50.0dip</dimen>
<dimen name="contact_shortcut_frame_height">56.0dip</dimen>
<dimen name="list_item_padding_top">4.0dip</dimen>
<dimen name="list_item_padding_right">11.0dip</dimen>
<dimen name="list_item_padding_bottom">4.0dip</dimen>
<dimen name="list_item_padding_left">4.0dip</dimen>
<dimen name="list_item_gap_between_image_and_text">8.0dip</dimen>
<dimen name="list_item_gap_between_label_and_data">5.0dip</dimen>
<dimen name="list_item_call_button_padding">14.0dip</dimen>
<dimen name="list_item_vertical_divider_margin">5.0dip</dimen>
<dimen name="list_item_presence_icon_margin">5.0dip</dimen>
<dimen name="list_item_header_text_width">56.0dip</dimen>
<dimen name="group_title_width_normal">280.0dip</dimen>
<dimen name="group_title_width_delete">250.0dip</dimen>
</resources>
These are the file POROVOZ! meant, if we change it and compile the .apks again, it should work
Viper The Ripper said:
It's the file call_card_person_info.xml which we need to mod
I extracted this info from I9000 forum, I hope it help us to mod the file I have a trouble opening this file with notepad ++ and using AXMLPrinter2.jar too
Code:
<?xml version="1.0" encoding="UTF-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/callCardPersonInfo" android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:layout_width="wrap_content" android:layout_height="216.0dip">
<ImageView android:id="@id/photo" android:layout_width="216.0dip" android:layout_height="216.0dip" android:layout_centerHorizontal="true" />
</RelativeLayout>
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="34.0dip" android:layout_marginTop="0.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/birthIcon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/call_birthday_icon" />
<TextView android:textSize="32.0sp" android:textColor="@color/twcolor001" android:gravity="center_vertical" android:id="@id/name" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="36.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="18.0sp" android:textColor="@color/twcolor003" android:gravity="center_vertical" android:id="@id/phoneNumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textSize="18.0sp" android:textColor="@color/twcolor003" android:gravity="center_vertical" android:id="@id/city" android:layout_width="wrap_content" android:layout_height="26.0dip" android:singleLine="true" />
</LinearLayout>
</FrameLayout>
I've found this info too but It isn't from Gingerbread sources, I guess it's form Eclair :S
http://forum.xda-developers.com/showthread.php?t=576310
Yeah...It's by default in Phone.apk
Code:
ORIGINAL FILE (call_card_person_info.xml) FROM GALAXY ACE
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/callCardPersonInfo" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" [COLOR="blue"]android:layout_height="181.0dip"[/COLOR]>
<ImageView android:id="@id/photo" android:background="@drawable/incall_photo_border_lg" [COLOR="blue"]android:layout_width="172.0dip"[/COLOR] [COLOR="blue"]android:layout_height="166.0dip"[/COLOR] android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:contentDescription="@string/contactPhoto" />
<Button android:textAppearance="?android:textAppearanceMedium" android:textColor="?android:textColorPrimary" android:id="@id/manageConferencePhotoButton" android:background="@drawable/manage_conference_photo_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="16.0dip" android:text="@string/onscreenManageConferenceText" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="15.0sp" android:textStyle="bold" android:id="@id/elapsedTime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="3.0dip" android:singleLine="true" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
</RelativeLayout>
<TextView android:textAppearance="?android:textAppearanceLarge" android:textSize="28.0sp" android:gravity="center_horizontal" android:id="@id/name" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:paddingBottom="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-13.0dip" android:singleLine="true" />
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-1.0dip">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="18.0sp" android:textColor="?android:textColorSecondary" android:id="@id/label" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="18.0sp" android:textColor="?android:textColorSecondary" android:id="@id/phoneNumber" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</LinearLayout>
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="?android:textColorSecondary" android:ellipsize="end" android:id="@id/callTypeLabel" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="?android:textColorSecondary" android:ellipsize="end" android:id="@id/socialStatus" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="2" />
</LinearLayout>
Working with Contacts.apk
Code:
ORIGINAL FILE (dimens.xml) GALAXY ACE
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<dimen name="linked_contact_icon_size">20.0dip</dimen>
<dimen name="quickcontact_shadow_horiz">30.0dip</dimen>
<dimen name="quickcontact_shadow_vert">37.0dip</dimen>
<dimen name="quickcontact_shadow_touch">20.0dip</dimen>
<dimen name="[COLOR="Blue"]edit_photo_size">92.0dip</dimen>[/COLOR]
<dimen name="tab_height">40.0dip</dimen>
<dimen name="account_name_height">25.0dip</dimen>
<dimen name="contact_shortcut_frame_width">50.0dip</dimen>
<dimen name="contact_shortcut_frame_height">56.0dip</dimen>
<dimen name="list_item_padding_top">4.0dip</dimen>
<dimen name="list_item_padding_right">11.0dip</dimen>
<dimen name="list_item_padding_bottom">4.0dip</dimen>
<dimen name="list_item_padding_left">4.0dip</dimen>
<dimen name="list_item_gap_between_image_and_text">8.0dip</dimen>
<dimen name="list_item_gap_between_label_and_data">5.0dip</dimen>
<dimen name="list_item_call_button_padding">14.0dip</dimen>
<dimen name="list_item_vertical_divider_margin">5.0dip</dimen>
<dimen name="list_item_presence_icon_margin">5.0dip</dimen>
<dimen name="list_item_header_text_width">56.0dip</dimen>
<dimen name="group_title_width_normal">280.0dip</dimen>
<dimen name="group_title_width_delete">250.0dip</dimen>
</resources>
These are the file POROVOZ! meant, if we change it and compile the .apks again, it should work
Click to expand...
Click to collapse
Contacts file is done, but phone.apk is nasty without Paravoz damn file.
If the one u post is not from gingerbread, it will be a mess ... (i will pm paravoz, maybe he can help)
Cryss said:
Contacts file is done, but phone.apk is nasty without Paravoz damn file.
If the one u post is not from gingerbread, it will be a mess ... (i will pm paravoz, maybe he can help)
Click to expand...
Click to collapse
I'll provide you the phone.apk asap
Let me came back home mate!
Viper The Ripper said:
I'll provide you the phone.apk asap
Let me came back home mate!
Click to expand...
Click to collapse
ok man, i'll wait
untill then, i flash stock rom, i'm on cm7 now...
Cryss said:
ok man, i'll wait
untill then, i flash stock rom, i'm on cm7 now...
Click to expand...
Click to collapse
Here it is
I'm gonna create a thread to share both files avoiding f****** messy tutorials xDDDDDD
Viper The Ripper said:
Here it is
I'm gonna create a thread to share both files avoiding f****** messy tutorials xDDDDDD
Click to expand...
Click to collapse
I'LL test it in 5 minutes (ok, you do that)
Cryss said:
I'LL test it in 5 minutes (ok, you do that)
Click to expand...
Click to collapse
WIP xD
Edit: almost finished
Edit2: Finished :beer:

[GUIDE][4.0/ICS/CM9][HDPI] Re-Layout Recents Apps UI+Animation Text

Hey I'm Come Again​First, Thanks to Senior Member @Adi Aisiteru Reborn , Senior Member @evilisto and @wong_Anyar
Because i'm make this from modifying Guide three people on above :laugh:
And Never forget it to X-TREME TEAM INDONESIAN DEVELOPMENT :fingers-crossed: :highfive:​​
1.Decompile framework-res.apk
Go to res/values/dimens.xml
Code:
<dimen name="thumbnail_height">[COLOR="Red"]120.0dip[/COLOR]</dimen>
<dimen name="thumbnail_width">[COLOR="red"]120.0dip[/COLOR]</dimen>
Change it to
Code:
<dimen name="thumbnail_height">[COLOR="Blue"]267.0dip[/COLOR]</dimen>
<dimen name="thumbnail_width">[COLOR="blue"]168.0dip[/COLOR]</dimen>
SAVE.
2.Now Recompile your framework-res
3.Decompile SystemUI.apk
Go to res/layout/status_bar_no_recent_apps.xml Replace All with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
Go to res/layout-port/status_bar_recent_item.xml Replace All with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:foreground="#00000000" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/thumbnail_width_port" android:layout_height="@dimen/thumbnail_height_port" />
</FrameLayout>
<ImageView android:id="@id/app_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/top_margin_port" android:layout_marginLeft="66.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" />
<com.animation.textview android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_marginTop="@dimen/margin_top_text_port" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignParentTop="true" android:layout_alignLeft="@id/app_thumbnail" />
<com.animation.textview android:textSize="@dimen/status_bar_recents_app_description_text_size" android:layout_marginTop="@dimen/margin_top_text_port" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentTop="true" android:layout_alignLeft="@id/app_thumbnail" />
</RelativeLayout>
</FrameLayout>
Go to res/layout-port/status_bar_recent_panel.xml Replace All with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="#80000000" blurColor="#ff6b8cf0" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
Go to res/layout-land/status_bar_recent_item.xml Replace All with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="#00000000" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/thumbnail_width_land" android:layout_height="@dimen/thumbnail_height_land" />
</FrameLayout>
<ImageView android:id="@id/app_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/top_margin_land" android:layout_marginLeft="53.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="30.0dip" android:maxHeight="27.0dip" />
<com.animation.textview android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_marginTop="@dimen/margin_top_text_land" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignParentTop="true" android:layout_alignLeft="@id/app_thumbnail" />
<com.animation.textview android:textSize="@dimen/status_bar_recents_app_description_text_size" android:layout_marginTop="@dimen/margin_top_text_land" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentTop="true" android:layout_alignLeft="@id/app_thumbnail" />
</RelativeLayout>
</FrameLayout>
Go to res/layout-land/status_bar_recent_panel.xml Replace All with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="#80000000" blurColor="#ff6b8cf0" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
Go to res/values/dimens.xml add this line above </resources>
Code:
<dimen name="thumbnail_width_port">168.0dip</dimen>
<dimen name="thumbnail_height_port">267.0dip</dimen>
<dimen name="thumbnail_width_land">137.0dip</dimen>
<dimen name="thumbnail_height_land">200.0dip</dimen>
<dimen name="top_margin_port">360.0dip</dimen>
<dimen name="top_margin_land">0.0dip</dimen>
<dimen name="margin_top_text_port">63.0dip</dimen>
<dimen name="margin_top_text_land">230.0dip</dimen>
So,Look like this
Code:
<dimen name="thumbnail_width_port">168.0dip</dimen>
<dimen name="thumbnail_height_port">267.0dip</dimen>
<dimen name="thumbnail_width_land">137.0dip</dimen>
<dimen name="thumbnail_height_land">200.0dip</dimen>
<dimen name="top_margin_port">360.0dip</dimen>
<dimen name="top_margin_land">0.0dip</dimen>
<dimen name="margin_top_text_port">63.0dip</dimen>
<dimen name="margin_top_text_land">230.0dip</dimen>
[COLOR="blue"]</resources>[/COLOR]
Go to res/values/bools.xml
Code:
<bool name="config_recents_thumbnail_image_fits_to_xy">[COLOR="Red"]false[/COLOR]</bool>
Change it to
Code:
<bool name="config_recents_thumbnail_image_fits_to_xy">[COLOR="Blue"]true[/COLOR]</bool>
3.Download file on Attachment file and merge all
4.Recompile your SystemU
5.Now is Done !!
Horee horee horee
i get this errors when im going to recompile systemui
G.M.L said:
i get this errors when im going to recompile systemui
Click to expand...
Click to collapse
What's your base ROM ? or maybe smali text animation not compatible with your ROM..
shevchovski said:
What's your base ROM ? or maybe smali text animation not compatible with your ROM..
Click to expand...
Click to collapse
Cm9
G.M.L._V7
http://pasakalis.blogspot.gr
G.M.L said:
Cm9
G.M.L._V7
http://pasakalis.blogspot.gr
Click to expand...
Click to collapse
Yo bro
Go to res/layout-port/status_bar_recent_item.xml
Go to res/layout-land/status_bar_recent_item.xml
Change this
Code:
[COLOR="Red"]<com.animation.textview[/COLOR] With [COLOR="Blue"]<TextView[/COLOR]
don't merge attachment file..
It works on Paranoid 4.4.4 on my S3? Same values?
Nice mbah
thx for the nice tutor paman, great work :good::good:
would this work on cm11 ?
rekoilchafe said:
would this work on cm11 ?
Click to expand...
Click to collapse
No, a lot of the functions changed their syntax.
I tried half-ass porting it, but as I have no XML or android knowledge I would probably need to sit tons of hours to try and figure this out.
lordgavers said:
No, a lot of the functions changed their syntax.
I tried half-ass porting it, but as I have no XML or android knowledge I would probably need to sit tons of hours to try and figure this out.
Click to expand...
Click to collapse
same here even i tried it.
i'm trying to figure it out though!! if i get it working would let you know!
oh!i think it's possible to work in jb4.3,gotta sit later in my thinkchair
vampent0026 said:
oh!i think it's possible to work in jb4.3,gotta sit later in my thinkchair
Click to expand...
Click to collapse
can we use same method for miui v5
@DevendraMilmile121 : You can try Sir, i think this not work on MIUI because MIUI not showing Thumbnail on Recents
 @vampent0026 : Yes just try compare my Horizontal and Vertical dip and done :highfive:
Will this work on a MTK device?
kirito9 said:
Will this work on a MTK device?
Click to expand...
Click to collapse
this guide base from MTK sir so whatever device can try this guide. but from AOSP Base ROM Only

[[GUIDE]] Lollipop Style Date/Clock View!

For L Style Header go HERE
For L Style Header[Advanced] go HERE
For Panel Transparency go HERE
To add Battery/WiFi/Bluetooth/Alarm icons in Header go HERE
Yo Guys! Today I am here with simple yet cool guide for adding Lollipop Style Date/Clock View in your Header!
This guide is inspired from THIS Guide
Let's Begin.
Decompile your SystemUI.apk
Merge the attached smalis to respective directories.
Navigate to res/values/ and open styles.xml
Now, Search for:
Code:
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
Make the 4 lines below it look like this:
Code:
<item name="android:textSize">21.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:fontFamily">sans-serif-medium</item>
Now search for:
Code:
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
Make the 3 lines below it look like this:
Code:
<item name="android:textSize">14.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#b2ffffff</item>
Save the XML.
Now navigate to res/layout and open status_bar_expanded_header.xml[MTK] / tw_status_bar_expanded_header.xml[TouchWiz]
Find this in the XML.
Code:
@id/date
In the same line search for:
Code:
android:layout_width="wrap_content" android:layout_height="wrap_content"
Make it look like this
Code:
android:layout_width="0.0dip" android:layout_height="0.0dip"
Now Copy and Paste this line exactly below the line given above:
Code:
<com.fmd.btn.LDateBar android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/clock" />
Save the XML.
Recompile the UI.
Sign.
Push it to system/app with permissions 644.
DONE.
CREDITS
Sir tentenponce
FMD Devs
Jeff Rivera
Aljhun Mejorada Bumaya
Iann's LNotifPanel
Klark Luis Peralta
Van Freniere
Aniruddha_Pathak [For making a small change and sharing the Guide]
YOU​
Regards,
Aniruddha_Pathak
HIT THANKS IF YOU LIKE MY WORKS!​
i got a problem mate. now i got two "date", what should i do?
mislampes said:
i got a problem mate. now i got two "date", what should i do?
Click to expand...
Click to collapse
It seems you forgot to follow this step Sir:
Find this in the XML.
Code:
Code:
@id/date
In the same line search for:
Code:
Code:
android:layout_width="wrap_content" android:layout_height="wrap_content"
Make it look like this
Code:
Code:
android:layout_width="0.0dip" android:layout_height="0.0dip
Aniruddha_Pathak said:
It seems you forgot to follow this step Sir:
Find this in the XML.
Code:
Code:
@id/date
In the same line search for:
Code:
Code:
android:layout_width="wrap_content" android:layout_height="wrap_content"
Make it look like this
Code:
Code:
android:layout_width="0.0dip" android:layout_height="0.0dip
Click to expand...
Click to collapse
maybe i've done something wrong, i'll try again. thanks
oh, how did you get that brightness slider? any tutorial maybe?
mislampes said:
maybe i've done something wrong, i'll try again. thanks
oh, how did you get that brightness slider? any tutorial maybe?
Click to expand...
Click to collapse
May be I don't have a permission to post the tut here as it is owned by Sir @b16h22
PM me your mail id sir, I will forward the tutorial to you.
Aniruddha_Pathak said:
May be I don't have a permission to post the tut here as it is owned by Sir @b16h22
PM me your mail id sir, I will forward the tutorial to you.
Click to expand...
Click to collapse
sent :good:
mislampes said:
sent :good:
Click to expand...
Click to collapse
Don't forget to hit the thanks button! ​
it didn't woks like i expected, btw i use apktool 2, so i have to compile smali with an older apktool and decompile with apktool 2 first
Aniruddha_Pathak said:
Don't forget to hit the thanks button! ​
Click to expand...
Click to collapse
Done
Huncriter said:
it didn't woks like i expected, btw i use apktool 2, so i have to compile smali with an older apktool and decompile with apktool 2 first
Click to expand...
Click to collapse
It seems you have to do it from beginning one more time
It seems you have to do it from beginning one more time
Click to expand...
Click to collapse
same result, no date shown
Huncriter said:
same result, no date shown
Click to expand...
Click to collapse
May I see you header.xml sir?
Huncriter said:
same result, no date shown
Click to expand...
Click to collapse
also please check where did you placed the smali files.
Aniruddha_Pathak said:
May I see you header.xml sir?
Click to expand...
Click to collapse
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" android:background="#ff243137" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<RelativeLayout android:enabled="false" android:id="@id/datetime" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:gravity="center_vertical" android:id="@id/clock" android:background="#00000000" android:clickable="true" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:paddingStart="8.0dip" android:paddingEnd="4.0dip" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:gravity="center_vertical" android:id="@id/date" android:background="#00000000" android:layout_width="0.0dip" android:layout_height="0.0dip" android:paddingStart="4.0dip" android:paddingEnd="8.0dip" android:layout_toEndOf="@id/clock" />
<com.fmd.btn.LDateBar android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/clock" />
</RelativeLayout>
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<TextView android:textSize="11.0dip" android:textStyle="bold" android:textColor="#ff00a040" android:layout_gravity="center_vertical" android:id="@id/header_debug_info" android:padding="2.0dip" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="sans-serif-condensed" />
<FrameLayout android:id="@id/action_button_holder" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginStart="12.0dip">
<ImageView android:id="@id/clear_all_button" android:background="#00000000" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
<ImageView android:id="@id/add_tile_button" android:background="#00000000" android:visibility="gone" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_menu_add" android:scaleType="center" android:contentDescription="@string/accessibility_desc_add_quick_settings" />
</FrameLayout>
<FrameLayout android:id="@id/settings_button_holder" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginStart="12.0dip">
<ImageView android:id="@id/settings_button" android:background="#00000000" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_settings" android:scaleType="center" android:contentDescription="@string/accessibility_desc_quick_settings" />
<ImageView android:id="@id/notification_button" android:background="#00000000" android:visibility="gone" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notifications" android:scaleType="center" android:contentDescription="@string/accessibility_notifications_button" />
</FrameLayout>
</LinearLayout>
the smali files are in the rigth place cuz i can compile apk without errors.
Huncriter said:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" android:background="#ff243137" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<RelativeLayout android:enabled="false" android:id="@id/datetime" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:gravity="center_vertical" android:id="@id/clock" android:background="#00000000" android:clickable="true" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:paddingStart="8.0dip" android:paddingEnd="4.0dip" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:gravity="center_vertical" android:id="@id/date" android:background="#00000000" android:layout_width="0.0dip" android:layout_height="0.0dip" android:paddingStart="4.0dip" android:paddingEnd="8.0dip" android:layout_toEndOf="@id/clock" />
<com.fmd.btn.LDateBar android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/clock" />
</RelativeLayout>
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<TextView android:textSize="11.0dip" android:textStyle="bold" android:textColor="#ff00a040" android:layout_gravity="center_vertical" android:id="@id/header_debug_info" android:padding="2.0dip" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="sans-serif-condensed" />
<FrameLayout android:id="@id/action_button_holder" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginStart="12.0dip">
<ImageView android:id="@id/clear_all_button" android:background="#00000000" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
<ImageView android:id="@id/add_tile_button" android:background="#00000000" android:visibility="gone" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_menu_add" android:scaleType="center" android:contentDescription="@string/accessibility_desc_add_quick_settings" />
</FrameLayout>
<FrameLayout android:id="@id/settings_button_holder" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginStart="12.0dip">
<ImageView android:id="@id/settings_button" android:background="#00000000" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_settings" android:scaleType="center" android:contentDescription="@string/accessibility_desc_quick_settings" />
<ImageView android:id="@id/notification_button" android:background="#00000000" android:visibility="gone" android:layout_width="50.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notifications" android:scaleType="center" android:contentDescription="@string/accessibility_notifications_button" />
</FrameLayout>
</LinearLayout>
the smali files are in the rigth place cuz i can compile apk without errors.
Click to expand...
Click to collapse
I am unable to figure out your problem sir.
P.S.: Smalis doesn't have a connection with recompiling Do check them once again. The fmd folder must be placed in smali/com/here
Aniruddha_Pathak said:
I am unable to figure out your problem sir.
P.S.: Smalis doesn't have a connection with recompiling Do check them once again. The fmd folder must be placed in smali/com/here
Click to expand...
Click to collapse
like i said, smalis are in the right place, and i'm using apktool 2, so first i compile and recompile with apktool 1.5.2, then compile with apktool 2. if i follow the Lollipop Style Header tutorial i'm able to watch date but at top.
Huncriter said:
like i said, smalis are in the right place, and i'm using apktool 2, so first i compile and recompile with apktool 1.5.2, then compile with apktool 2. if i follow the Lollipop Style Header tutorial i'm able to watch date but at top.
Click to expand...
Click to collapse
Use apktool 1.5.2 for the whole process please. May be it can resolve your error.
I'm unable to do. No matter whatever I do,it's not changing
Systemui.apk--->https://docs.google.com/uc?id=0B7Ko9fdwLEF0ZjN4YkdWQ2pvNVE&export=download
Framwework-res.apk--->https://docs.google.com/uc?id=0B7Ko9fdwLEF0bUxNaXJfV0NxSTQ&export=download
Any help is appreciated. Thanks in advance
Regards
Akky

Categories

Resources