[Android General] Md.Shafikul.islam:
<===Hi Sir's...

Its MD here and now going to share something's... ;)

[Guide add flyme UI with analog clock and logo easy way and add analog clock in Notification panel]

[COLOR="#Green"]Preview[/COLOR]

[COLOR="#Blue"]

<===Flyme UI status bar===> [/COLOR]

[COLOR="#Blue"]

<===Analog clock in Notification Panel===> [/COLOR]

[COLOR="#Blue"] Warnings -

1.First take nanandroid backup..

2.any kind of damage i will not responsible... [/COLOR]

[COLOR="#Black"]

Necessary things-

1.knowledge in decompiling and recompiling...

2.Editing Xmls...

3.Some common sense... ;)

[/COLOR]

First a huge credits goes to some Indonesian devs...I forgot there name.So i can't mention them...but what let's start...===>

<-N.B->

<===Don't forget to give me and them some credits if you did this...and don't steel my work and if this guide already shared in xda then comment here i will delete this thred... :)

well let's start... ===>

<===First decompile your framework and go to res/values and open dimens.xml and search these lines ===>

<dimen name="status_bar_height">**.0dip</dimen>

and

<dimen name="status_bar_icon_size">**.0dip</dimen>

<===Now edit them like mine ===>

<dimen name="status_bar_height">45.0dip</dimen>

and

<dimen name="status_bar_icon_size">20.0dip</dimen>

<===Done!Now save it and recompile framework and sign===>

<===Now decompile SystemUI and go to SystemUI and go to res/layout/Gemini_status_bar.xml.Open it and compare your XML with my one here===>

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_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:paddingLeft="6.0dip" 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" />
<LinearLayout android:orientation="horizontal" android:id="@id/mdsflyme" android:layout_width="fill_parent" android:layout_height="50.0dip">
<AnalogClock android:gravity="left" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="50.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="24.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">
<ImageView android:gravity="left|center" android:id="@id/cayno_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/mds" android:scaleType="fitCenter" android:adjustViewBounds="true" />
</LinearLayout>
<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: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/gemini_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>
<ImageView android:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:layout_width="fill_parent" android:layout_height="1.0dip" android:src="@android:color/holo_blue_light" />
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/mdsfylmeo" android:paddingLeft="1.0dip" android:paddingRight="1.0dip" android:layout_width="fill_parent" android:layout_height="24.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/mdsfylmeos" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Cayno.Trafficmeter" android:gravity="left|center" android:id="@id/cayno_traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/cayno" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<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" />
<TextView android:textSize="16.0sp" android:textColor="@android:color/holo_blue_light" android:id="@id/percentage" android:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@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>

<=N.B=>

This xml can be found in mds_flyme_os.zip download it from the attachment and extract it then search this xml and open it and compare it with your xml...

<--------------------------------------------------->

<===Done!now save it and go to values and open ids.xml and style.xml and add these ids in your ids.xml before resource===>

<item type="id" name="mdsflyme">false</item>
<item type="id" name="mdsfylmeo">false</item>
<item type="id" name="mdsfylmeos">false</item>
<item type="id" name="cayno">false</item>
<item type="id" name="cayno_logo">false</item>
<item type="id" name="cayno_traffic">false</item>

<===now save ids.xml and go to style.xml and add this code...before resource===>

<style name="TextAppearance.StatusBar.Cayno.Trafficmeter" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>

<===Done!now save it...and make one logo in 118*21 size and rename it in mds.png...

Then copy it to drawable-hdpi and drawable-nodpi and drawable-sw600dp-hdpi...

Done!Now recompile you SystemUI and sign it and make flushable zip===>

<-N.B->

<===This guide for jb user but ics and kk users can try it...if its work then pm me... :) ===>

<===Now do you want to add analog clock in notification panel?!!

Then follow this step...but you need to give credits to RSS bro...Because he share it with me... :) ===>

<===well..now decompile you ui and go to layout/status_bar_exlanded_header.xml and add this line===>

<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" />

<===before===>

<com.android.systemui.statusbar.policy.DateView

<===This code===>

<===Done!Now save it and make new clock photo (206*208), one minute icon (21*19) and one hour icon (21*19)...and renamed them like clock icons to ( a_circle.png ),minutes icon to ( a_minute.png ) and hour icon to ( a_hour.png ) and copy and paste them in drawable folder and recompile your UI and sign and flash it... :D ===>

<-N.B->

<===If you cant understand anything then download and extract the mds_flyme_os.zip and go to example folder and try to understand... ;) and if facing recompiling problem then show me the logcat,i will try to give one solution... :) ===>

<===That's all... ;) ===>

<<<===Happy modding

And never stop customization...===>>>

<===Post by:MD's===>

[COLOR="#Blue"]<===If you Like my guide then Click on Thanks button Sir... ;)===>[/COLOR]