Quantcast
Channel: xda-developers - Android Themes
Viewing all articles
Browse latest Browse all 4090

[[GUIDE]] Lollipop Style Date/Clock View!

$
0
0
For L Style Header go HERE
For L Style Header[Advanced] go HERE
For Panel Transparency go HERE
To add Battery/WiFi/Bluetooth/Alarm icons in Header go HERE


Yo Guys! Today I am here with simple yet cool guide for adding Lollipop Style Date/Clock View in your Header!

This guide is inspired from THIS Guide :)

Let's Begin.

Decompile your SystemUI.apk
Merge the attached smalis to respective directories.
Navigate to res/values/ and open styles.xml

Now, Search for:
Code:

<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
Make the 4 lines below it look like this:
Code:

<item name="android:textSize">21.0sp</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">#ffffffff</item>
        <item name="android:fontFamily">sans-serif-medium</item>

Now search for:
Code:

<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
Make the 3 lines below it look like this:
Code:

<item name="android:textSize">14.0sp</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">#b2ffffff</item>

Save the XML.

Now navigate to res/layout and open status_bar_expanded_header.xml[MTK] / tw_status_bar_expanded_header.xml[TouchWiz]

Find this in the XML.
Code:

@id/date
In the same line search for:
Code:

android:layout_width="wrap_content" android:layout_height="wrap_content"
Make it look like this
Code:

android:layout_width="0.0dip" android:layout_height="0.0dip"
Now Copy and Paste this line exactly below the line given above:
Code:

<com.fmd.btn.LDateBar android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/clock" />
Save the XML.
Recompile the UI.
Sign.
Push it to system/app with permissions 644.
DONE.

CREDITS
Sir tentenponce
FMD Devs
Jeff Rivera
Aljhun Mejorada Bumaya
Iann's LNotifPanel
Klark Luis Peralta
Van Freniere
Aniruddha_Pathak [For making a small change and sharing the Guide]
YOU


Regards,
Aniruddha_Pathak

HIT THANKS IF YOU LIKE MY WORKS!

Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-06-20-12-10-20.png
Views:	N/A
Size:	130.0 KB
ID:	3376381  
Attached Files
File Type: zip smali.zip - [Click for QR Code] (2.2 KB)

Viewing all articles
Browse latest Browse all 4090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>