Views: 954|Replies: 9

Centered Clock for MIUI v4 Theme ???

[ Promote this link! ]

MIUI Beta Team

Rank: 6Rank: 6

Credits
243
Model
Samsung I9100
MIUI Version
Miui v5 (3.3.22)
Online time
95 Hours
21:21,Sep-19-2012 |Show all posts
Hey guys,

I have a  Samsung Galaxy S2 and search a centered clock for MIUI v4.
Please not Extended Setting, but is not working with the SGS2.
Is it somehow possible to create a mtz for Centered Clock?
I think with the GB was once possible.
Have someone a idea?

Thx.
Thomas J. B. | Europe Support
MIUI-Germany

Diamond Member

Rank: 5Rank: 5

Credits
1311
Model
MI-TWO
Online time
147 Hours
21:29,Sep-19-2012 |Show all posts
Moviestar replied at 2012-9-19 22:21
Hey guys,

I have a  Samsung Galaxy S2 and search a centered clock for MIUI v4.

Not via mtz. You need to modify the layout.

Lennox | MIUI Australia Founder/Developer |  MIUIAndroid.com Staff Developer | Mi-One
For my custom Mi-One ROM and CWM Touch Recovery, as well as other MIUI related goodies, visit http://www.miuiaustralia.com
All-around Android nice guy :)

MIUI Beta Team

Rank: 6Rank: 6

Credits
243
Model
Samsung I9100
MIUI Version
Miui v5 (3.3.22)
Online time
95 Hours
21:41,Sep-19-2012 |Show all posts
lenny_kano replied at 2012-9-19 14:29
Not via mtz. You need to modify the layout.

You mean in the MiuiSystemUI.apk?
Do you know, which XML in the layout folder and which strings exactly?
Thomas J. B. | Europe Support
MIUI-Germany

Diamond Member

Rank: 5Rank: 5

Credits
1311
Model
MI-TWO
Online time
147 Hours
21:54,Sep-19-2012 |Show all posts
I can post my diff patch when I get home

Lennox | MIUI Australia Founder/Developer |  MIUIAndroid.com Staff Developer | Mi-One
For my custom Mi-One ROM and CWM Touch Recovery, as well as other MIUI related goodies, visit http://www.miuiaustralia.com
All-around Android nice guy :)

MIUI Beta Team

Rank: 6Rank: 6

Credits
243
Model
Samsung I9100
MIUI Version
Miui v5 (3.3.22)
Online time
95 Hours
21:58,Sep-19-2012 |Show all posts
lenny_kano replied at 2012-9-19 14:54
I can post my diff patch when I get home

Great, many thanks !
Thomas J. B. | Europe Support
MIUI-Germany

Diamond Member

Rank: 5Rank: 5

Credits
1311
Model
MI-TWO
Online time
147 Hours
22:03,Sep-19-2012 |Show all posts
Moviestar replied at 2012-9-19 22:58
Great, many thanks !

No problem. Should be done back within the hour.

Lennox | MIUI Australia Founder/Developer |  MIUIAndroid.com Staff Developer | Mi-One
For my custom Mi-One ROM and CWM Touch Recovery, as well as other MIUI related goodies, visit http://www.miuiaustralia.com
All-around Android nice guy :)

Diamond Member

Rank: 5Rank: 5

Credits
1311
Model
MI-TWO
Online time
147 Hours
22:16,Sep-19-2012 |Show all posts
Ok, this zip contains the original status_bar.xml (from /res/layout), the centred one, and the diff patch.

Hope it helps.

CentredStatusBar.zip

3.64 KB, Downloads: 47, Download cost : Experience -1 MI


Lennox | MIUI Australia Founder/Developer |  MIUIAndroid.com Staff Developer | Mi-One
For my custom Mi-One ROM and CWM Touch Recovery, as well as other MIUI related goodies, visit http://www.miuiaustralia.com
All-around Android nice guy :)

MIUI Beta Team

Rank: 6Rank: 6

Credits
243
Model
Samsung I9100
MIUI Version
Miui v5 (3.3.22)
Online time
95 Hours
02:03,Sep-20-2012 |Show all posts
Hey, many thanks my friend :)
Do I just copy the status_bar.xml, or also the status_bar_centre.xml?
Thomas J. B. | Europe Support
MIUI-Germany

MIUI Beta Team

I am MIUI UK :-)

Rank: 6Rank: 6

Credits
2412
Model
MI-TWO
Online time
136 Hours

Community VIP Star of technology

02:18,Sep-20-2012 |Show all posts
Moviestar replied at 2012-9-19 18:03
Hey, many thanks my friend :)
Do I just copy the status_bar.xml, or also the status_bar_centre.xml?

Lenny will confirm but I think he put that in there so you can diff the changes from the status_bar.xml against his modified one for centered :-)

I'd imagine the original .xml file needs to remain in order for the status_bar layout xml to operate.

MarkHUK
MIUI-DEV.com and MIUIAndroid.com | Server Admin (Founder) & English MIUI Translator since 2010

Diamond Member

Rank: 5Rank: 5

Credits
1311
Model
MI-TWO
Online time
147 Hours
05:38,Sep-20-2012 |Show all posts
Well you should be able to just replace the code in status_bar.xml in your apk with my centered one. The xml name must remain status_bar.xml.

I only included the original xml and the centered xml in case a diff patch was difficult for you, so you could look at and compare to see exactly how the files change. But as Mark said, it still has to be called status_bar.xml

Lennox | MIUI Australia Founder/Developer |  MIUIAndroid.com Staff Developer | Mi-One
For my custom Mi-One ROM and CWM Touch Recovery, as well as other MIUI related goodies, visit http://www.miuiaustralia.com
All-around Android nice guy :)
You have to log in before you can reply Login | Register

MIUI Official English Site - Xiaomi Offical Site - Join Xiaomi
Copyright @ 2012 MIUI Beijing ICP No.10046444

To Top