[Galaxy S II Themes and Apps] dacsang97:
Statusbars two lines with analog clock in the center without notice overrides

*

1.Decompile framework-res.apk

**-Open Framework-res_src / res / values ​​/ dimens.xml

search code

*

****

<Dimen name = "status_bar_height"> 25.0dip </ dimen>

*****

and revised to

****

<Dimen name = "status_bar_height"> 50.0dip </ dimen>

**

2.recompile framework-res_src

*

3.decompile SystemUI.apk

*

Open SystemUI_src / res / layouts / status_bar.xml (some machines are tw_status_bar.xml / gemini_status_bar.xml / asus_status_bar.xml etc ..)

-Find code:

*

****

<Include android: id = "@ id / signal_cluster" android: layout_width = "wrap_content" android: layout_height = "wrap_content" layout = "@ layout / signal_cluster_view" /> (some machines are ... layout = "@ layout / tw_signal_cluster_view "/" @ layout / gemini_signal_cluster_view "...)

*****

cut and paste it above the code:

*

***

*<Com.android.systemui.statusbar.StatusBarIconView android: id = "@ id / moreIcon" .... />

*****

-Find and delete this code:

*

***

*<Com.android.systemui.statusbar.phone.IconMerger ... android: id = "@ id / notificationIcons" ... />

*****

-Find and delete this code:

*

***

*<Com.android.systemui.statusbar.policy.Clock ... android: id = "@ id / clock" ... /> (*)

*****

-Find code:

***

*<LinearLayout android: orientation = "horizontal" android: id = "@ id / status_bar_contents" ...>

*****

****(Note: some machines do not have this code, instead of code <LinearLayout ... android: id = "@ id / icons" ... />)

*****

and paste this code just below its 3:

*

****

<FrameLayout android: layout_width = "fill_parent" android: layout_height = "fill_parent">
****<LinearLayout android: background = "@ drawable / ria_sakurai" android: orientation = "vertical" android: layout_width = "fill_parent" android: layout_height = "50.0dip">
********<LinearLayout android: orientation = "horizontal" android: layout_width = "fill_parent" android: layout_height = "24.0dip">

*********

-Find Code:

***

****

<LinearLayout ... android: id = "@ id / ticker" ... />

***

and paste this code is located above it:

*

****

<LinearLayout android: orientation = "horizontal" android: layout_width = "fill_parent" android: layout_height = "24.0dip">
********<Com.android.systemui.statusbar.phone.IconMerger android: gravity = "center_vertical" android: orientation = "horizontal" android: id = "@ id / notificationIcons" android: layout_width = "wrap_content" android: layout_height = "fill_parent" android: layout_alignParentLeft = "true" />
********<TextView android: click Text = "14.0dip" android: textcolor = "# ffffffff" android: gravity = "right" android: layout_width = "fill_parent" android: layout_height = "fill_parent" android: layout_marginRight = "8.0dip" android: text = "@ string / kotext_xteen" android: singleline = "true" />
****</ LinearLayout>
****</ LinearLayout>
****<LinearLayout android: gravity = "center" android: orientation = "horizontal" android: layout_width = "fill_parent" android: layout_height = "fill_parent">
********<Com.android.systemui.statusbar.policy.Clock android: textcolor = "# ffffffff" android: ellipsize = "none" android: gravity = "left | center" android: id = "@ id / clock" android: paddingLeft = "0.0dip" android: layout_width = "0.0dip" android: layout_height = "0.0dip" android: singleline = "true" android: includeFontPadding = "false" />
********<AnalogClock android: gravity = "center" android: id = "@ id / clock" android: layout_width = "wrap_content" android: layout_height = "fill_parent" android: dial = "@ drawable / a_circle" android: hand_hour = "@ drawable / a_hour "android: hand_minute =" @ drawable / a_minute "android: layout_centerVertical =" true "/>
****</ LinearLayout>
****</ FrameLayout>
****</ LinearLayout>

*****

-Save

*

-Find Code

*

****

<Com.android.systemui.statusbar.policy.KeyButtonView ... />

*****

cut and paste it to just above code

*

***

<LinearLayout android: background = "@ drawable / ria_sakurai" android: orientation = "vertical" android: layout_width = "fill_parent" android: layout_height = "50.0dip">
******

with some machines do not have this code, then skip this step

*

-Open SystemUI_src / res / values ​​/ strings.xml

add this code under code number 3:

*

****

<String name = "kotext_xteen"> XVIDEOS </ string>

*****

rather XVIDEOS with your name

*

save

*

load these files, unzip and copy Xproler used in SystemUI_src / res / drawable HPDI (or xhpdi, depending on the resolution of your computer, the battery icon mod wave in which one it is written into that category):

*

****https://www.dropbox.com/s/lp9k70wejb1zpgf/drawable xhpdi.zip?dl=0

*****

4.recompile SystemUI_src

*

Meta-inf Xproler 5.Using copy and AndroidManifest from framework to framework-res_src.apk-res.apk, from SystemUI.apk to SystemUI_src.apk

*

6.dung trickery to rename framework-res_src.apk, SystemUI_src.apk and bring them into the system.

*

7.reboot, lit three incense prayed Buddhist vows. Take the consequences

*

Note:

(*): With the customizable clock conditioning, in stt3.xml will have 2 lines of code clock, ie 1 line with id = "@ id / clock", 1 row with id = "@ id / clock_center"

*we can choose to delete the line clock id = "@ id / clock_center"

*to change from clock to clock the needle, we must also keep the id id = "@ id / clock_center", whereas analogue clock code is

**

*<AnalogClock android: gravity = "center" android: id = "@ id / clock_center" android: layout_width = "wrap_content" android: layout_height = "fill_parent" android: dial = "@ drawable / a_circle" android: hand_hour = "@ drawable / a_hour "android: hand_minute =" @ drawable / a_minute "android: layout_centerVertical =" true "/>

Source : https://www.facebook.com/groups/686171674773416/