Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] [MOD] [CM11] [HDPI] MinimalKat Status bar!

OP MR.Volkf

4th January 2014, 02:47 PM   |  #1  
MR.Volkf's Avatar
OP Senior Member
Flag C:\Apktool & C:\TickleMyAndroid
Thanks Meter: 539
 
869 posts
Join Date:Joined: Aug 2012
More

MinimalKat Status Bar

By MR.Volkf

Introduction
Sick of CM11 interface? You must try this!
Screenshoot:




Update

Requirement
  • BRAIN
  • Patient
  • Know how to decompile/recompiling Apk file
  • Notepad++
  • Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
    Recommendation: Tickle My Android -Very easy to use

Guide
1.Recompile SystemUI.apk
2.Open res/layout/status_bar.xml
3.Delete whole line and replace with this:

Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
    <LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
        <LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
				<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
					<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
				</LinearLayout>
			<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_alignParentStart="true" />
        </LinearLayout>
			<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />
        <LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
        <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:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
					<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_width" android:layout_height="@dimen/status_bar_battery_height" android:layout_marginBottom="@dimen/status_bar_battery_bottom_padding" android:layout_marginStart="4.0dip" />
					<com.android.systemui.DockBatteryMeterView android:id="@id/dock_battery" android:visibility="gone" android:layout_width="@dimen/status_bar_battery_width" android:layout_height="@dimen/status_bar_battery_height" android:layout_marginBottom="@dimen/status_bar_battery_bottom_padding" android:layout_marginStart="4.0dip" />
				</LinearLayout>
					<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" android:paddingEnd="2.0dip"/>
		</LinearLayout>
    </LinearLayout>
    <LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
        <ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="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:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
            <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>


4.Then download CM10_and_CM10.1_Source_Carrier_Label from @adi Aisiteru
5.Reborn Exstract it, and merge to your SytemUI.apk
6.Download Attachment
7.Place in res/drawable-hdpi and replace!
8.Follow update instruction
9.Recompile!

Set Up
  1. Go to Setting
  2. Open System->Status Bar->Battery Status Style,Set: Hidden
  3. Download Xposed in Here
  4. Open Xposed app and install/update
  5. Soft Reboot
  6. Open Xposed App and download Gravity Box[KK] in Download tab
  7. Enable in Module tab
  8. Soft Reboot
  9. Open Gravity Box[KK]->Statusbar Tweaks->Clock Settings->Center clock No more in 1/5/2014 GMT+7 Update!
  10. Soft Reboot
  11. DONE!

Thank For
  • ALLAH SWT!
  • @Ticklefish
  • @adi Aisiteru Reborn -for guide

Source
  • Google
Attached Thumbnails
Click image for larger version

Name:	screenshotSat-01-04@2105_15.png
Views:	7229
Size:	81.9 KB
ID:	2493610  
Attached Files
File Type: zip SourceTest1.zip - [Click for QR Code] (15.4 KB, 113 views)
Last edited by MR.Volkf; 5th January 2014 at 12:52 PM.
The Following 5 Users Say Thank You to MR.Volkf For This Useful Post: [ View ]
4th January 2014, 02:55 PM   |  #2  
MR.Volkf's Avatar
OP Senior Member
Flag C:\Apktool & C:\TickleMyAndroid
Thanks Meter: 539
 
869 posts
Join Date:Joined: Aug 2012
More
Update
1/5/2014

1.First follow step on above post then decompile SystemUI.apk
2.Delete whole line in res/layout/status_bar.xml and replace with this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
    <LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
        <LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
				<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
					<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
				</LinearLayout>
			<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_alignParentStart="true" />
        </LinearLayout>
			<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />
        <LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
        <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:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
					<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_width" android:layout_height="@dimen/status_bar_battery_height" android:layout_marginBottom="@dimen/status_bar_battery_bottom_padding" android:layout_marginStart="4.0dip" />
					<com.android.systemui.DockBatteryMeterView android:id="@id/dock_battery" android:visibility="gone" android:layout_width="@dimen/status_bar_battery_width" android:layout_height="@dimen/status_bar_battery_height" android:layout_marginBottom="@dimen/status_bar_battery_bottom_padding" android:layout_marginStart="4.0dip" />
					<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="3.0dip" android:paddingEnd="3.0dip" />
					<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" android:paddingEnd="2.0dip" />
				</LinearLayout>					
		</LinearLayout>
    </LinearLayout>
    <LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
        <ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="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:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
            <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>


3.Open res/values/styles.xml
find this:
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">@color/status_bar_clock_color</item>
    </style>
and replace with this:
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
        <item name="android:textSize">14.0dip</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@color/status_bar_clock_color</itemm>
    </style>
4.Download SourceUpdate1.zip extract it and merge in res/drawable-hdpi
5.Download Traffic.zip and place it in smali\com\android\systemui\statusbar\policy
6.Recompile SystemUI.apk
1/5/2014 18.38 GMT+7

Replace whole line in status_bar.xml and replace with this:

Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
    <LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
        <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
			<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
				<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
					<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
				</LinearLayout>
				<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_alignParentStart="true" />
			</LinearLayout>
		</LinearLayout>
		<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />
        <LinearLayout android:gravity="right" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
			<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
				<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:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
						<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_width" android:layout_height="@dimen/status_bar_battery_height" android:layout_marginBottom="@dimen/status_bar_battery_bottom_padding" android:layout_marginStart="4.0dip" />
						<com.android.systemui.DockBatteryMeterView android:id="@id/dock_battery" android:visibility="gone" android:layout_width="@dimen/status_bar_battery_width" android:layout_height="@dimen/status_bar_battery_height" android:layout_marginBottom="@dimen/status_bar_battery_bottom_padding" android:layout_marginStart="4.0dip" />
				</LinearLayout>					
			</LinearLayout>
		</LinearLayout>	
    </LinearLayout>
    <LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
        <ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="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:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
            <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>


Attached Files
File Type: zip SourceUpdate1.zip - [Click for QR Code] (26.9 KB, 107 views)
Last edited by MR.Volkf; 5th January 2014 at 12:43 PM.
The Following 4 Users Say Thank You to MR.Volkf For This Useful Post: [ View ]
4th January 2014, 03:22 PM   |  #3  
Ekola's Avatar
Senior Member
Flag Makassar
Thanks Meter: 142
 
144 posts
Join Date:Joined: Jun 2013
More
Smile
Quote:
Originally Posted by MR.Volkf

Reserved

Good Master, the simply.
5th January 2014, 03:36 AM   |  #4  
MR.Volkf's Avatar
OP Senior Member
Flag C:\Apktool & C:\TickleMyAndroid
Thanks Meter: 539
 
869 posts
Join Date:Joined: Aug 2012
More
Update Available
The Following User Says Thank You to MR.Volkf For This Useful Post: [ View ]
5th January 2014, 06:36 AM   |  #5  
limyuyang's Avatar
Senior Member
Flag Android Planet
Thanks Meter: 227
 
642 posts
Join Date:Joined: Jun 2013
More
@MR.Volkf good job.

Anyway, will this work for android 4.1.2 ?
5th January 2014, 06:40 AM   |  #6  
MR.Volkf's Avatar
OP Senior Member
Flag C:\Apktool & C:\TickleMyAndroid
Thanks Meter: 539
 
869 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by limyuyang

@MR.Volkf good job.

Anyway, will this work for android 4.1.2 ?

Sorry dude,it's hard on stock samsung rom so i decide to stop develop for stock samsung rom
5th January 2014, 06:42 AM   |  #7  
limyuyang's Avatar
Senior Member
Flag Android Planet
Thanks Meter: 227
 
642 posts
Join Date:Joined: Jun 2013
More
Quote:
Originally Posted by MR.Volkf

Sorry dude,it's hard on stock samsung rom so i decide to stop develop for stock samsung rom

Oh I see. Well, it's okay if you can't do it. Anyway, please check your pm, I have something to ask you.
5th January 2014, 12:06 PM   |  #8  
Cooptx's Avatar
Senior Member
Flag Houston, Texas
Thanks Meter: 460
 
1,350 posts
Join Date:Joined: Jul 2012
Donate to Me
More
Can this be done on a stock 4.4.2? The device in question is the Moto G

Sent from my XT1034 using Tapatalk
5th January 2014, 12:39 PM   |  #9  
MR.Volkf's Avatar
OP Senior Member
Flag C:\Apktool & C:\TickleMyAndroid
Thanks Meter: 539
 
869 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by Cooptx

Can this be done on a stock 4.4.2? The device in question is the Moto G

Sent from my XT1034 using Tapatalk

yes it can work,but i think battery icon can't be hidden

Update 1/5/2014 6.38 PM GMT+7
The Following User Says Thank You to MR.Volkf For This Useful Post: [ View ]
5th January 2014, 08:19 PM   |  #10  
mariekesuzanne's Avatar
Senior Member
Las Vegas, NV / Charlotte, NC
Thanks Meter: 110
 
198 posts
Join Date:Joined: Jun 2011
More
Requirement: Brain

*dammit*

(Oh what the hell *yolo* ... Giving it a run...)

Sent from my LG-VS980 using Tapatalk

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes