[Miscellaneous Android Development] Aniruddha_Pathak:
For L Style Header(EASY) go HERE

For Panel Transparency go HERE

For adding L Style Date/Clock View go HERE

To add Battery/WiFi/Bluetooth/Alarm icons in Header go HERE

Yo guys! Toady I am here with a more perfect guide for Lollipop Style header! No smali work, no Public comparing, only layout game! :D

For Panel Transparency like mine, go HERE

Let's begin.

Decompile your SystemUI.

Go to res/layout and COPY status_bar_expanded_header.xml [MTK] / tw_status_bar_expanded_header.xml [TouchWiz]

Paste it on your Desktop or in any other directory where you wish to.

Rename that xml to l_bar_expanded_header.xml

Now copy and paste l_bar_expanded_header.xml in your SystemUI/res/layout.

Next, open gemini_status_bar_expanded.xml [MTK] / tw_status_bar_expanded_dual.xml [TouchWiz]

{TIP FOR TOUCHWIZ USERS: IF YOU DON"T HAVE tw_status_bar_dual.xml IN YOUr Samsung's UI, THEN OPEN tw_status_bar_expanded.xml}

Now in the xml, find [MTK]

<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />

For TouchWIz[JB], find this:

<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />]

Paste this code below the above line:

<include layout="@layout/l_bar_expanded_header" />

Save the xml.

Now, go to res/layout and open status_bar_expanded_header.xml [MTK] / tw_status_bar_expanded_header.xml [TouchWiz] and find:

@id/clock

in the same line, find:

android:layout_width="blablabla" android:layout_height="blablabla"

Make it look like this:

android:layout_width="0.0dip" android:layout_height="0.0dip"

Now in the same XML, find,

@id/date

in the same line find:

android:layout_width="blablabla" android:layout_height="blablabla"

Make it look like this:

android:layout_width="0.0dip" android:layout_height="0.0dip"

Now, in second line of the xml find:

android:background="blablabla"

Make it look like this:

android:background="#ff374244"

Now, except in second line, make all

android:background="blablabla"

Look like this

android:background="#00000000"

in the XMl.

Save the XML.

Download the l_header.9.zip and extract it. COPY and PASTE l_header.9.png to your res/drawable-hdpi folder. [OR drawable-mdpi/ldpi/xhdpi as per your device]

Now, go to res/layout and open l_bar_expanded_header.xml.

Now, in the second line of the xml, find:

android:background="blablabla"

Make it look like:

android:background="@drawable/l_header"

In the same line find:

android:layout_height="blablabla"

Make it look like this:

android:layout_height="75.0dip"

Now, in the same XML, find:

<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />

Now, below this line ^

Search all

android:layout_width="blablabla" android:layout_height="blablabla"

and make all look like this:

android:layout_width="0.0dip" android:layout_height="0.0dip"

Save the XML.

RECOMPILE THE UI. SIGN. PUSH TO system/app with permissions 644.

WHAT CAN YOU DO NOW?​

If you want to add battery meter, or network bar in header, add it in status_bar_expanded_header.xml, and if you want to add potato weather by Sir [MENTION=4715592]mariozawa[/MENTION] in header again, add the code in l_statusbar_expanded_header.xml

In short! You made a two tabbed header! :D

CREDITS:

[MENTION=6228131]Aniruddha_Pathak[/MENTION]

You :D