[GUIDE][Mods][All Devices]How to add/ Change Clocks to Analog/ Digital with Seconds - Optimus L3, L5, L7 Themes and Apps

Hi devs...
Today i will share to you How to add/ Change All Clocks to Analog nor even with Seconds Digital Clock...
This method only for you who have experiences or familiar with Apktool/ Apk Multy tool/ etc.
So, Let's do this;
Required:
PC
Apktool or similar Tools
NotePad++ for edit xmls files
WinRAR or 7z
A Cup of coffee (Yeaahh...)
1. Change your Clock Lockscreen (From framework or UxpNxtLockscreen)
Only need to change "Textview" to "DigitalClock" for it;
> Decompile your framework-res.apk
> Navigate to /res/layout/
> Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> That's it, now save and Recompile...
Do the same way for UxpNxtLockscreen.apk with open w_clock.xml on /res/layout/
And we got look like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Change your Status bar Clock and Status bar Expanded Clock
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar.xml (for Status bar Clock) and status_bar_expanded_header.xml (for JB status bar expanded clock)
> On status_bar.xml, search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
> Change the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
Yeah, we know what it should be
> Save and Recompile...
Now play with expanded clock;
> Open status_bar_expanded_header.xml
> Search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
> I bet you already knew what you have to do... yep, change the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> Save and Recompile...
> And we got look like this:
3. Change your lockscreen Clock to Analog Clock (from framework or UxpNxtLockScreen)
> Decompile framework-res.apk
> Navigate to /res/layout/
> Again, Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
> You need to HIDE these lines first (hide the Digital Clock) by add this code:
Code:
android:visibility="gone"
> Then, copy this line to show Analog Clock upside the above lines:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
> Now code lines should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
<LinearLayout android:layout_gravity="top" android:orientation="vertical" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip">
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip" android:layout_marginBottom="3.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="62.0dip" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
> Save it
> We have new id for now then,
> Navigate to /res/values/
> Open ids.xml and add this line at the end of ids (above </resource> code )
Code:
<item type="id" name="analogClock1">false</item>
> Save and Recompile...
Now play with UxpNxtLockScreen clock;
> After decompiling
> Navigate to /res/layout/
> Open w_clock.xml
> Search for this line:
Code:
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Again, HIDE the Digital Clock before add the Analog Clock by add this line:
Code:
android:visibility="gone"
> Just like the way we made for framework-res.apk, add the Analog Clock lines mentioned above.
> It's should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Wait, it's NOT perfect looks yet :cyclops:
> You need to make some MARGIN to the top of Clock, then:
> On second line, add the RED code and should be look like this:
Code:
<LinearLayout android:orientation="vertical" android:id="@id/clock_and_date" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginTop="36.0dip"[/COLOR] android:layout_alignParentTop="true" android:layout_centerHorizontal="true
> Margin should be differ for some Screen Sizes. Then look up for your self...
> Done, Save and Recompile...
> And we got look like this:
4. Add Analog Clock in expanded status bar layout
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar_expanded.xml (for JB devices)
> Search for this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
> Below the code, add this line:
Code:
<AnalogClock android:layout_gravity="bottom" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginBottom="100.0dip"[/COLOR] android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
> See the RED code? That mean depends on your Screen Sizes,.... you know what you have to do...
> And we got look like this:
One more simple guide for change the Analog Clock Style: CLICK ME!
That's it for the Guides, if you have some questions related to this method, just post here...
But, don't ask me for how to use apktool or bla..bla..bla... Try to use your Search Bar Engine or CLICK ME!...
If you had Xperia E Single SIM on your hands, i have those things already for ya... CLICK ME!
CREDITS:
> XDA Developers Staff and Members
> Rizal Lovins for JB Apktool
> Google
> My Coffee...
> If someone forgotten by me, please PM then i will edit the Credits... Thanks
Give me a Motivate by Hit that THANKS button
or Help me for Upgrade my Damn Networking by DONATE to me:fingers-crossed:​

Cool

emokeizer said:
Cool
Click to expand...
Click to collapse
thanks buddy, this Mods level are should be as "Very-Easy" for you...
try to be the first guy for make this things available on beloved L3....

Yeah actually I already did that but it has no effect when I try to change the fonts just for the clock.. any idea??
@ the lock screen

emokeizer said:
Yeah actually I already did that but it has no effect when I try to change the fonts just for the clock.. any idea??
@ the lock screen
Click to expand...
Click to collapse
Send me your keyguard_screen_tab_unlock.xml (decompiled) here...
just wrap in code

You made it look so easy, gotta give it a try one of these days

nikufellow said:
You made it look so easy, gotta give it a try one of these days
Click to expand...
Click to collapse
Indeed...
have a try, then show me how's look like...
feel free to ask with xml codes attached ofc...

..
Code:
<?xml version="1.0" encoding="utf-8"?>
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.internal.widget.DigitalClock android:layout_gravity="center" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="?textColorSecondary" android:ellipsize="none" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="?textColorSecondary" android:ellipsize="none" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/date" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/alarm_status" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<RelativeLayout android:orientation="horizontal" android:id="@id/weather_panel" android:paddingTop="4.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-80.0dip">
<ImageView android:id="@id/weather_image" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_dialog_alert" android:layout_centerHorizontal="true" android:layout_centerVertical="true" />
<RelativeLayout android:orientation="horizontal" android:padding="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/weather_image" android:layout_centerVertical="true">
<TextView android:textSize="14.0sp" android:textStyle="bold" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:gravity="right" android:id="@id/weather_city" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentRight="true" />
<TextView android:textSize="12.0sp" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:gravity="right" android:id="@id/weather_condition" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_below="@id/weather_city" android:layout_alignParentRight="true" />
<TextView android:textSize="6.0sp" android:textColor="?textColorSecondary" android:gravity="right" android:id="@id/update_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/weather_condition" android:layout_alignParentRight="true" />
</RelativeLayout>
<RelativeLayout android:orientation="horizontal" android:id="@id/weather_temps_panel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/weather_image" android:layout_centerVertical="true">
<TextView android:textSize="20.0sp" android:textColor="?textColorPrimary" android:id="@id/weather_temp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" />
<View android:id="@id/weather_divider" android:background="@drawable/divider_horizontal_dark" android:layout_width="44.0dip" android:layout_height="1.0dip" android:layout_below="@id/weather_temp" />
<TextView android:textSize="12.0sp" android:textColor="?textColorPrimary" android:id="@id/weather_low_high" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/weather_divider" android:layout_centerHorizontal="true" />
</RelativeLayout>
</RelativeLayout>
<Space android:layout_gravity="fill" />
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="4.0dip" style="?android:attr/buttonBarButtonStyle" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="250.0dip">
<LinearLayout android:gravity="center_vertical" android:id="@id/calendar_panel" android:paddingLeft="12.0dip" android:paddingTop="30.0dip" android:paddingRight="12.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="28.0dip">
<ImageView android:gravity="center" android:layout_gravity="center_vertical" android:layout_width="36.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_lock_idle_calendar" />
<View android:background="@drawable/divider_horizontal_dark" android:paddingTop="6.0dip" android:paddingBottom="6.0dip" android:layout_width="1.0dip" android:layout_height="fill_parent" />
<RelativeLayout android:paddingLeft="4.0dip" android:paddingTop="6.0dip" android:paddingBottom="6.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textSize="14.0sp" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:id="@id/calendar_event_title" android:fadingEdge="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textSize="12.0sp" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:id="@id/calendar_event_details" android:focusable="true" android:focusableInTouchMode="true" android:fadingEdge="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/calendar_event_title" android:layout_alignLeft="@id/calendar_event_title" android:marqueeRepeatLimit="marquee_forever" />
</RelativeLayout>
</LinearLayout>
<com.android.internal.widget.multiwaveview.MultiWaveView android:orientation="horizontal" android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" android:directionDescriptions="@array/lockscreen_direction_descriptions" android:targetDrawables="@array/lockscreen_targets_with_camera" android:handleDrawable="@drawable/ic_lockscreen_handle" android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right" android:waveDrawable="@drawable/ic_lockscreen_outerring" android:outerRadius="@dimen/multiwaveview_target_placement_radius" android:hitRadius="@dimen/multiwaveview_hit_radius" android:vibrationDuration="0" android:snapMargin="@dimen/multiwaveview_snap_margin" android:feedbackCount="5" android:verticalOffset="0.0dip" android:horizontalOffset="0.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/status1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:weightSum="2.0" style="?android:attr/buttonBarStyle">
<Button android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:layout_gravity="center_horizontal" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" android:layout_weight="1.0" style="?android:attr/buttonBarButtonStyle" />
</LinearLayout>
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="5" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>

My Output

emokeizer said:
View attachment 2051164View attachment 2051334
Click to expand...
Click to collapse
You made it work... :good:
what can I do with your xml code?

yayakuya said:
You made it work... :good:
what can I do with your xml code?
Click to expand...
Click to collapse
Ahm nothing.. All is done..thank you

yayakuya said:
Hi devs...
Today i will share to you How to add/ Change All Clocks to Analog nor even with Seconds Digital Clock...
This method only for you who have experiences or familiar with Apktool/ Apk Multy tool/ etc.
So, Let's do this;
Required:
PC
Apktool or similar Tools
NotePad++ for edit xmls files
WinRAR or 7z
A Cup of coffee (Yeaahh...)
1. Change your Clock Lockscreen (From framework or UxpNxtLockscreen)
Only need to change "Textview" to "DigitalClock" for it;
> Decompile your framework-res.apk
> Navigate to /res/layout/
> Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> That's it, now save and Recompile...
Do the same way for UxpNxtLockscreen.apk with open w_clock.xml on /res/layout/
And we got look like this:
2. Change your Status bar Clock and Status bar Expanded Clock
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar.xml (for Status bar Clock) and status_bar_expanded_header.xml (for JB status bar expanded clock)
> On status_bar.xml, search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
> Change the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
Yeah, we know what it should be
> Save and Recompile...
Now play with expanded clock;
> Open status_bar_expanded_header.xml
> Search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
> I bet you already knew what you have to do... yep, change the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> Save and Recompile...
> And we got look like this:
3. Change your lockscreen Clock to Analog Clock (from framework or UxpNxtLockScreen)
> Decompile framework-res.apk
> Navigate to /res/layout/
> Again, Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
> You need to HIDE these lines first (hide the Digital Clock) by add this code:
Code:
android:visibility="gone"
> Then, copy this line to show Analog Clock upside the above lines:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
> Now code lines should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
<LinearLayout android:layout_gravity="top" android:orientation="vertical" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip">
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip" android:layout_marginBottom="3.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="62.0dip" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
> Save it
> We have new id for now then,
> Navigate to /res/values/
> Open ids.xml and add this line at the end of ids (above </resource> code )
Code:
<item type="id" name="analogClock1">false</item>
> Save and Recompile...
Now play with UxpNxtLockScreen clock;
> After decompiling
> Navigate to /res/layout/
> Open w_clock.xml
> Search for this line:
Code:
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Again, HIDE the Digital Clock before add the Analog Clock by add this line:
Code:
android:visibility="gone"
> Just like the way we made for framework-res.apk, add the Analog Clock lines mentioned above.
> It's should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Wait, it's NOT perfect looks yet :cyclops:
> You need to make some MARGIN to the top of Clock, then:
> On second line, add the RED code and should be look like this:
Code:
<LinearLayout android:orientation="vertical" android:id="@id/clock_and_date" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginTop="36.0dip"[/COLOR] android:layout_alignParentTop="true" android:layout_centerHorizontal="true
> Margin should be differ for some Screen Sizes. Then look up for your self...
> Done, Save and Recompile...
> And we got look like this:
4. Add Analog Clock in expanded status bar layout
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar_expanded.xml (for JB devices)
> Search for this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
> Below the code, add this line:
Code:
<AnalogClock android:layout_gravity="bottom" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginBottom="100.0dip"[/COLOR] android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
> See the RED code? That mean depends on your Screen Sizes,.... you know what you have to do...
> And we got look like this:
One more simple guide for change the Analog Clock Style: CLICK ME!
That's it for the Guides, if you have some questions related to this method, just post here...
But, don't ask me for how to use apktool or bla..bla..bla... Try to use your Search Bar Engine or CLICK ME!...
If you had Xperia E Single SIM on your hands, i have those things already for ya... CLICK ME!
CREDITS:
> XDA Developers Staff and Members
> Rizal Lovins for JB Apktool
> Google
> My Coffee...
> If someone forgotten by me, please PM then i will edit the Credits... Thanks
Give me a Motivate by Hit that THANKS button
or Help me for Upgrade my Damn Networking by DONATE to me:fingers-crossed:​
Click to expand...
Click to collapse
:laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh:

thanks again
Sent from my LG-E400 using xda premium

Thank you for posting I'll try.....
Sent from my LG-E400 using xda premium

emokeizer said:
View attachment 2051164View attachment 2051334
Click to expand...
Click to collapse
Hi @emokeizer ... how to set date and owner name to center in lockscreen.... please give some guide link

not work
emokeizer said:
thanks again
Sent from my LG-E400 using xda premium
Click to expand...
Click to collapse
Hello!
On my zp800H 4.2.1 the lockscreen mod doesn't work, no seconds after mod.
And on my expanded statusbar no day name in the date (but i've seconds after mod).
On my lockscreen also no day name.
My lang Hungarian (Hu-hu).
Any guess?
Status_bar_expanded_header:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/header" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<RelativeLayout android:enabled="false" android:id="@id/datetime" android:background="@drawable/ic_notify_button_bg" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<DigitalClock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="2.0dip" android:singleLine="true" android:layout_centerVertical="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="false" android:layout_toRightOf="@id/clock" android:layout_alignBaseline="@id/clock" />
</RelativeLayout>
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<TextView android:textSize="11.0dip" android:textStyle="bold" android:textColor="#ff00a040" android:layout_gravity="center_vertical" android:id="@id/header_debug_info" android:padding="2.0dip" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="sans-serif-condensed" />
<FrameLayout android:layout_width="46.0dip" android:layout_height="48.0dip">
<ImageView android:id="@id/header_settings_button" android:background="@drawable/ic_notify_button_bg" android:visibility="gone" android:layout_width="46.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_settings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:background="@drawable/ic_notify_button_bg" android:layout_width="46.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
</FrameLayout>
<FrameLayout android:id="@id/settings_button_holder" android:layout_width="46.0dip" android:layout_height="50.0dip" android:layout_marginLeft="-1.0dip" android:layout_alignParentRight="true">
<ImageView android:id="@id/settings_button" android:background="@drawable/ic_notify_button_bg" android:layout_width="46.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notify_settings" android:scaleType="center" android:contentDescription="@string/accessibility_desc_quick_settings" />
<ImageView android:id="@id/notification_button" android:background="@drawable/ic_notify_button_bg" android:visibility="gone" android:layout_width="46.0dip" android:layout_height="50.0dip" android:src="@drawable/ic_notifications" android:scaleType="center" android:contentDescription="@string/accessibility_notifications_button" />
</FrameLayout>
</LinearLayout>
keyguard_screen_tab_unlock:
Code:
<?xml version="1.0" encoding="utf-8"?>
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.internal.widget.DigitalClock android:layout_gravity="end" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginBottom="12.0dip" android:layout_marginEnd="@dimen/keyguard_lockscreen_status_line_font_right_margin">
<DigitalClock android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignTop="@id/timeDisplayBackground" android:layout_alignStart="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="end" android:orientation="horizontal" android:layout_marginEnd="@dimen/keyguard_lockscreen_status_line_font_right_margin">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_marginStart="16.0dip" />
</LinearLayout>
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:layout_gravity="end" android:id="@id/status1" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_marginEnd="@dimen/keyguard_lockscreen_status_line_font_right_margin" />
<Space android:layout_gravity="fill" />
<Button android:layout_gravity="end" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="4.0dip" android:layout_marginEnd="16.0dip" style="?android:attr/buttonBarButtonStyle" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="302.0dip">
<com.android.internal.widget.multiwaveview.GlowPadView android:gravity="top" android:orientation="horizontal" android:id="@id/unlock_widget" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:innerRadius="@dimen/glowpadview_inner_radius" android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" android:directionDescriptions="@array/lockscreen_direction_descriptions" android:outerRingDrawable="@drawable/ic_lockscreen_outerring" android:pointDrawable="@drawable/ic_lockscreen_glowdot" android:glowRadius="@dimen/glowpadview_glow_radius" android:targetDrawables="@array/lockscreen_targets_with_camera" android:handleDrawable="@drawable/ic_lockscreen_handle" android:outerRadius="@dimen/glowpadview_target_placement_radius" android:vibrationDuration="20" android:snapMargin="@dimen/glowpadview_snap_margin" android:feedbackCount="1" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:weightSum="2.0" style="?android:attr/buttonBarStyle">
<Button android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:layout_gravity="center_horizontal" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" android:layout_weight="1.0" style="?android:attr/buttonBarButtonStyle" />
</LinearLayout>
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="4" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>

how to resize clock size on quickpulldown

Guide Mod Lockscreen xperia S CM9 for L3 e400 ??

thanks mate.. awesome work...!!

Good!
Very Good!

Related

[MOD] Pattern Lock screen - remove/add information

I use the Android pattern lock on my Inc, but I've never really liked the layout. I find most of the information on the screen to be unnecessary, and I wanted to have a personalized message instead. Through trial, error, and some help from a friend, I've succeeded, so I wanted to share what I've learned. I've also put together two ZipThemer packs for anyone who is interested in my version of the mod, but isn't comfortable editing on their own.
Note: this was done on CM7, but should apply to almost any version of GB. ICS has the same layout file in the same location, but contains extra information. Since I am not currently running an ICS rom, I haven't bothered tinkering with it yet.
I started to write a how-to guide, but it was quickly turning into a "how to decompile an apk" guide, of which there are already a thousand. If you do not know how to decompile an apk, you will need to go learn that from another source. Once you are comfortable, you'll want to decompile /system/framework/framework-res.apk
In your project directory, open /framework-res.apk/res/layout/keyguard_screen_unlock_portrait.xml
Running CM7, mine looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/pattern" android:background="#70000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_toRightOf="@id/time" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="15.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="56.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
</com.android.internal.widget.DigitalClock>
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_below="@id/time" />
</RelativeLayout>
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/customMsg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="24.0dip" android:layout_below="@id/status2" />
<View android:id="@id/divider" android:background="@drawable/divider_horizontal_dark" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip" />
<LinearLayout android:gravity="left" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/statusSep" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" android:layout_alignParentTop="true" />
</LinearLayout>
<com.android.internal.widget.LockPatternView android:id="@id/lockPattern" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_marginTop="2.0dip" android:layout_weight="1.0" android:aspect="@string/lock_pattern_view_aspect" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:id="@id/footerNormal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallAlone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_centerInParent="true" style="\@style/Widget.Button.Transparent" />
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/footerForgotPattern" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallTogether" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="2.0dip" android:layout_marginBottom="4.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_weight="1.0" style="\@style/Widget.Button.Transparent" />
<Button android:id="@id/forgotPattern" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:layout_weight="1.0" style="\@style/Widget.Button.Transparent" />
</LinearLayout>
</FrameLayout>
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
And here's a breakdown of which parts of the XML control which parts of the pattern lock screen:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I wanted to hide most parts of the layout and instead show a custom message. Here's all that I had to do. The below code window shows the same XML as before, but I've highlighted my changes in red
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/pattern" [COLOR="Red"]android:background="#FF000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView [COLOR="Red"]android:visibility="gone"[/COLOR] android:textAppearance="?textAppearanceMedium" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_toRightOf="@id/time" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
[COLOR="Red"]<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="none" android:gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" android:layout_marginRight="8.0dip" android:text="If found, please contact me at [email protected]" android:layout_toRightOf="@id/time" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />[/COLOR]
<com.android.internal.widget.DigitalClock [COLOR="Red"]android:visibility="gone"[/COLOR] android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="15.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="56.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
</com.android.internal.widget.DigitalClock>
<TextView [COLOR="Red"]android:visibility="gone"[/COLOR] android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_below="@id/time" />
</RelativeLayout>
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/customMsg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="24.0dip" android:layout_below="@id/status2" />
<View [COLOR="Red"]android:visibility="gone"[/COLOR] android:id="@id/divider" android:background="@drawable/divider_horizontal_dark" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip" />
<LinearLayout [COLOR="Red"]android:visibility="gone"[/COLOR] android:gravity="left" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/statusSep" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" android:layout_alignParentTop="true" />
</LinearLayout>
<com.android.internal.widget.LockPatternView android:id="@id/lockPattern" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_marginTop="2.0dip" android:layout_weight="1.0" android:aspect="@string/lock_pattern_view_aspect" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:id="@id/footerNormal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallAlone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_centerInParent="true" style="\@style/Widget.Button.Transparent" />
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/footerForgotPattern" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallTogether" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="2.0dip" android:layout_marginBottom="4.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_weight="1.0" style="\@style/Widget.Button.Transparent" />
<Button android:id="@id/forgotPattern" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:layout_weight="1.0" style="\@style/Widget.Button.Transparent" />
</LinearLayout>
</FrameLayout>
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
As you can see, all I did was hide most of the preexisting layout via attribute tags. I also changed the background to solid black, so even if I have a wallpaper set, it doesn't show on the pattern lock. Then, I just added in an extra line to show my desired string...
Recompile... flash... and voila!
No more clock, date, carrier id, divider, or status reminders; instead, a simple message. In the event that my phone falls into someone else's hands, it remains (relatively) secure but they can still get in touch with me.
Unfortunately, I don't have the time to make custom flashables for your rom. For those of you who aren't comfortable editing XML on your own, however, I've created two ZipThemer packs which should hopefully work on any GB rom.
I stuck with the concept of "Please contact me..." but since I couldn't hardcode a contact value for you, I used the CarrierID. In other words, if you successfully apply one of these, your pattern lock will say "If found, please contact me at [Your Carrier ID]"
Obviously that does you no good if you leave your CarrierID stock, but this was the best "middle ground" solution I could figure out so that I could release something more universal. Use a tool like CCName to change your CarrierID to an email address, alternate phone number, etc, and you'll be in business.
Instructions for install:
Make a nandroid backup. Given the fact that ZipThemer creates undo files, this shouldn't really be needed, but better safe than sorry!
Download the version that you want (no need to unzip)
Place the zip file under /sdcard/ZipThemer
Start ZipThemer, select the theme you just downloaded, and build it
Flash the update package that ZipThemer has created and all should be well!
If anything goes wrong, try flashing the undo package that ZipThemer created. If that still does not resolve the issue, restore your backup.
Version 1 has the standard background, which is semi-transparent and will allow your wallpaper to show through.
Version 2 has a solid black background, which will cover any wallpaper that you have.
As mentioned, both use your CarrierID as the contact info. If your email address is insanely long, it will wrap. If you use custom fonts, no guarantees as to how this will look.
Click either image for the relevant ZipThemer pack
Congrats on such a nicely layed out post. I really like the way you did the breakdown of the xml, looks great.
After reading this, I think I've made a bit of a mess of my pattern lock xml edits and think I need to start again using some of your.
Hopefully that will lead to solving my problem of centring the date without the strange misaligned duplicate (see below)
And... as you are a fellow pattern user, I thought you might be interested in some other mods here (assuming you've not already seen them).
[edit]
Hmmm, now thats just plain weird..... Wednesday and Thursday???
LfcFan1977 said:
Congrats on such a nicely layed out post. I really like the way you did the breakdown of the xml, looks great.
Click to expand...
Click to collapse
Thank you! I appreciate that
LfcFan1977 said:
...my problem of centring the date without the strange misaligned duplicate
Click to expand...
Click to collapse
Oh wow - that's weird
LfcFan1977 said:
And... as you are a fellow pattern user, I thought you might be interested in some other mods here (assuming you've not already seen them).
Click to expand...
Click to collapse
Thanks for the link. Yea, I saw that and some other threads when I was trying to figure out the layout.
Yours looks fantastic. When I get some time, that's my next plan: to make the pattern lock screen look like it's not actually the pattern lock.
seems very nice. will try it.
Embarrassed but I thought I had better come back to explain.
When creating a patternlock_background, it is quite important that I make a mental note to remove the screenshoot (I use to help for alignment) from the top layer of the image. It stops me getting a that false date I can definately class that one an epic fail.
Going to tidy up the xml following your guide. It should stop my energency call button from moving after I fail to draw the pattern correctly.
Do you have any idea how to change the text colour for the date?
LfcFan1977 said:
...I can definately class that one an epic fail...
Click to expand...
Click to collapse
Ha - that's awesome. We all have those moments.
LfcFan1977 said:
Do you have any idea how to change the text colour for the date?
Click to expand...
Click to collapse
Sorry man; if you don't know, I definitely don't know. You seem to be quite the subject matter expert on the pattern lock screen
Is the silder also in the same xml file? And the clock is that hard to change? I see alot of morphs for the lockscreen but not one that changes it
Thread. Y u no stay active?
---------- Post added at 06:57 PM ---------- Previous post was at 06:35 PM ----------
The ZIPTHEMER package does nothing... It doesnt change anything....
Thanks byrong, this is great info!
In my case, I wanted to just add an additional line with my contact info without hiding the other text elements. So I just added an extra LinearLayout text block underneath the pattern lock dots. I made the font size a little smaller and fit it on one line so it would not significantly affect the look of the pattern lock screen.
Here is my change highlighted in red:
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@id/patternlockscreenwallpaper_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient android:gravity="center_horizontal" android:orientation="vertical" android:background="@color/transparent" android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_toRightOf="@id/time" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="15.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="56.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
</com.android.internal.widget.DigitalClock>
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_below="@id/time" />
</RelativeLayout>
<View android:id="@id/divider" android:background="@drawable/divider_horizontal_dark" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip" />
<LinearLayout android:gravity="left" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/statusSep" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" android:layout_alignParentTop="true" />
</LinearLayout>
<com.android.internal.widget.LockPatternView android:id="@id/lockPattern" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_marginTop="2.0dip" android:layout_weight="1.0" android:aspect="@string/lock_pattern_view_aspect" />
[COLOR="Red"]<LinearLayout android:gravity="center_horizontal" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="14.0sp" android:text="If found, please contact me at [email protected]" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" />
</LinearLayout>[/COLOR]
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:id="@id/footerNormal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallAlone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_centerInParent="true" style="@style/Widget.Button.Transparent" />
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/footerForgotPattern" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallTogether" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="2.0dip" android:layout_marginBottom="4.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_weight="1.0" style="@style/Widget.Button.Transparent" />
<Button android:id="@id/forgotPattern" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:layout_weight="1.0" style="@style/Widget.Button.Transparent" />
</LinearLayout>
</FrameLayout>
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
</RelativeLayout>
this problem exists in all sense 3.5 rom ports for incredible s can u pls tell me how to make make those icons little bit far apart
@Dheemanth10
Do you mean the circular patternlock buttons?
These images:
btn_code_lock_default.png
btn_code_lock_touched.png
indicator_code_lock_point_area_default.png
indicator_code_lock_point_area_green.png
indicator_code_lock_point_area_red.png
If so, I can only guess that this is controlled within framework.jar\smali\com\android\internal\widget\LockPatternView.
You are the man..
I was trying to do this crack this for a long time and you made my day.. Thanks much..
Man how to change color background or to set a wallpaper?
In your guide it's explained everything except the background...
Take a look at this thread
[GUIDE] Pattern Lock Tweaks - Wallpaper Brightness, Pattern Lock Dots, etc.
byrong said:
I use the Android pattern lock on my Inc, but I've never really liked the layout. I find most of the information on the screen to be unnecessary, and I wanted to have a personalized message instead. Through trial, error, and some help from a friend, I've succeeded, so I wanted to share what I've learned. I've also put together two ZipThemer packs for anyone who is interested in my version of the mod, but isn't comfortable editing on their own.
Note: this was done on CM7, but should apply to almost any version of GB. ICS has the same layout file in the same location, but contains extra information. Since I am not currently running an ICS rom, I haven't bothered tinkering with it yet.
I started to write a how-to guide, but it was quickly turning into a "how to decompile an apk" guide, of which there are already a thousand. If you do not know how to decompile an apk, you will need to go learn that from another source. Once you are comfortable, you'll want to decompile /system/framework/framework-res.apk
In your project directory, open /framework-res.apk/res/layout/keyguard_screen_unlock_portrait.xml
Running CM7, mine looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/pattern" android:background="#70000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_toRightOf="@id/time" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="15.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="56.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
</com.android.internal.widget.DigitalClock>
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_below="@id/time" />
</RelativeLayout>
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/customMsg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="24.0dip" android:layout_below="@id/status2" />
<View android:id="@id/divider" android:background="@drawable/divider_horizontal_dark" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip" />
<LinearLayout android:gravity="left" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/statusSep" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" android:layout_alignParentTop="true" />
</LinearLayout>
<com.android.internal.widget.LockPatternView android:id="@id/lockPattern" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_marginTop="2.0dip" android:layout_weight="1.0" android:aspect="@string/lock_pattern_view_aspect" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:id="@id/footerNormal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallAlone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_centerInParent="true" style="\@style/Widget.Button.Transparent" />
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/footerForgotPattern" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallTogether" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="2.0dip" android:layout_marginBottom="4.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_weight="1.0" style="\@style/Widget.Button.Transparent" />
<Button android:id="@id/forgotPattern" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:layout_weight="1.0" style="\@style/Widget.Button.Transparent" />
</LinearLayout>
</FrameLayout>
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
And here's a breakdown of which parts of the XML control which parts of the pattern lock screen:
I wanted to hide most parts of the layout and instead show a custom message. Here's all that I had to do. The below code window shows the same XML as before, but I've highlighted my changes in red
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/pattern" [COLOR="Red"]android:background="#FF000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView [COLOR="Red"]android:visibility="gone"[/COLOR] android:textAppearance="?textAppearanceMedium" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_toRightOf="@id/time" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
[COLOR="Red"]<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="none" android:gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" android:layout_marginRight="8.0dip" android:text="If found, please contact me at [email protected]" android:layout_toRightOf="@id/time" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />[/COLOR]
<com.android.internal.widget.DigitalClock [COLOR="Red"]android:visibility="gone"[/COLOR] android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="15.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="56.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
</com.android.internal.widget.DigitalClock>
<TextView [COLOR="Red"]android:visibility="gone"[/COLOR] android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_below="@id/time" />
</RelativeLayout>
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/customMsg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="24.0dip" android:layout_below="@id/status2" />
<View [COLOR="Red"]android:visibility="gone"[/COLOR] android:id="@id/divider" android:background="@drawable/divider_horizontal_dark" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip" />
<LinearLayout [COLOR="Red"]android:visibility="gone"[/COLOR] android:gravity="left" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/statusSep" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" android:layout_alignParentTop="true" />
</LinearLayout>
<com.android.internal.widget.LockPatternView android:id="@id/lockPattern" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_marginTop="2.0dip" android:layout_weight="1.0" android:aspect="@string/lock_pattern_view_aspect" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:id="@id/footerNormal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallAlone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_centerInParent="true" style="\@style/Widget.Button.Transparent" />
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/footerForgotPattern" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallTogether" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="2.0dip" android:layout_marginBottom="4.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_weight="1.0" style="\@style/Widget.Button.Transparent" />
<Button android:id="@id/forgotPattern" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:layout_weight="1.0" style="\@style/Widget.Button.Transparent" />
</LinearLayout>
</FrameLayout>
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
As you can see, all I did was hide most of the preexisting layout via attribute tags. I also changed the background to solid black, so even if I have a wallpaper set, it doesn't show on the pattern lock. Then, I just added in an extra line to show my desired string...
Recompile... flash... and voila!
No more clock, date, carrier id, divider, or status reminders; instead, a simple message. In the event that my phone falls into someone else's hands, it remains (relatively) secure but they can still get in touch with me.
Unfortunately, I don't have the time to make custom flashables for your rom. For those of you who aren't comfortable editing XML on your own, however, I've created two ZipThemer packs which should hopefully work on any GB rom.
I stuck with the concept of "Please contact me..." but since I couldn't hardcode a contact value for you, I used the CarrierID. In other words, if you successfully apply one of these, your pattern lock will say "If found, please contact me at [Your Carrier ID]"
Obviously that does you no good if you leave your CarrierID stock, but this was the best "middle ground" solution I could figure out so that I could release something more universal. Use a tool like CCName to change your CarrierID to an email address, alternate phone number, etc, and you'll be in business.
Instructions for install:
Make a nandroid backup. Given the fact that ZipThemer creates undo files, this shouldn't really be needed, but better safe than sorry!
Download the version that you want (no need to unzip)
Place the zip file under /sdcard/ZipThemer
Start ZipThemer, select the theme you just downloaded, and build it
Flash the update package that ZipThemer has created and all should be well!
If anything goes wrong, try flashing the undo package that ZipThemer created. If that still does not resolve the issue, restore your backup.
Version 1 has the standard background, which is semi-transparent and will allow your wallpaper to show through.
Version 2 has a solid black background, which will cover any wallpaper that you have.
As mentioned, both use your CarrierID as the contact info. If your email address is insanely long, it will wrap. If you use custom fonts, no guarantees as to how this will look.
Click either image for the relevant ZipThemer pack
Click to expand...
Click to collapse
how to move the clock to center same with date and carrier ?
Jay_SEAN said:
how to move the clock to center same with date and carrier ?
Click to expand...
Click to collapse
Please don't quote the entire 1st post.
Do a nandroid backup and just have a play about with the keyguard_screen_unlock_portrait.xml and the keyguard_screen_unlock_landscape.xml.
You probably need to take a look at changing some text alingments to - android:gravity="center"
And also you might like to remove some of the - android:layout_margin's or change them to 0.0dip
If you find a setup that you like, please post the xml code as a guide for other people.
Here is the my rough xml edit to centre the date --> https://db.tt/j9ccbebl. Although the font size is a little to large for some days of the year.
LfcFan1977 said:
Please don't quote the entire 1st post.
Do a nandroid backup and just have a play about with the keyguard_screen_unlock_portrait.xml and the keyguard_screen_unlock_landscape.xml.
You probably need to take a look at changing some text alingments to - android:gravity="center"
And also you might like to remove some of the - android:layout_margin's or change them to 0.0dip
If you find a setup that you like, please post the xml code as a guide for other people.
Here is the my rough xml edit to centre the date --> https://db.tt/j9ccbebl. Although the font size is a little to large for some days of the year.
Click to expand...
Click to collapse
thanks for the help sir i just add some potato magic in the xml to center the dates clock and the draw pattern to unlock I will make a tutorial some time just busy right now
device:GT-S5360
rom: MIUIXXXPOTATO
Nice one. Looks pretty tidy.
Probably no need for a tutorial, just post the code or upload the xml, please.
If posting the code, please use the "Wrap
Code:
tags around selected text" button. It's the one with the # symbol ;)
try to remove the line there between the date and draw pattern
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient android:gravity="center_horizontal" androidrientation="vertical" androidaddingTop="@dimen/status_bar_height" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginTop="0.0dip" android:layout_marginRight="0.0dip" android:singleLine="true" android:layout_toRightOf="@id/time" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<LinearLayout android:gravity="center" androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="0.0dip">
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="0.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="40.0sp" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="bottom" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
</com.android.internal.widget.DigitalClock>
</LinearLayout>
<LinearLayout android:gravity="center" androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="0.0dip">
<TextView android:gravity="bottom" android:textAppearance="?textAppearanceMedium" android:textColor="#ffffffff" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_below="@id/time" />
</LinearLayout>
</RelativeLayout>
<View android:id="@id/divider" android:background="@drawable/divider_horizontal_dark" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip" />
<LinearLayout android:gravity="center" androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:textColor="#ffffffff" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:textColor="#ffffffff" android:id="@id/statusSep" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:textColor="#ffffffff" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawablePadding="4.0dip" android:layout_alignParentTop="true" />
</LinearLayout>
<com.android.internal.widget.LockPatternView android:id="@id/lockPattern" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_marginTop="2.0dip" android:layout_weight="1.0" android:aspect="@string/lock_pattern_view_aspect" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<RelativeLayout android:id="@id/footerNormal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallAlone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_centerInParent="true" style="@style/Widget.Button.Transparent" />
</RelativeLayout>
<LinearLayout android:gravity="center" androidrientation="horizontal" android:id="@id/footerForgotPattern" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@id/emergencyCallTogether" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="2.0dip" android:layout_marginBottom="4.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_weight="1.0" style="@style/Widget.Button.Transparent" />
<Button android:id="@id/forgotPattern" android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="4.0dip" android:layout_weight="1.0" style="@style/Widget.Button.Transparent" />
</LinearLayout>
</FrameLayout>
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
this is my xml file just compre yours and see if it work

[GUIDE][CM9][SMALI] S3 and BB10 Lockscreen for MDPI devices

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hey everyone this is Sky_Walker from the galaxy ace development forum !!! After successfully launching many roms for my device i thought of porting lockscreens. All credits to Adi Aisiteru Reborn for his guides on BB10 and S3 lockscreens for xhdpi and hdpi devices using which i made it for cm9 mdpi devices. I have used his smali files and images and resized them to fit into our mdpi screens.​
Original threads from where i have ported :​
BB10 lockscreen​
S3 lockscreen​
ScreenShots : Taken on galaxy ace​
Guide for S3 Lockscreen :
Step1. Decompile your framework-res.apk:
\res\layout\keyguard_screen_tab_unlock.xml
Delete all the lines and replace with this :
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.internal.widget.WaveView android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:id="@id/time" android:paddingTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginBottom="8.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:gravity="center_horizontal" android:id="@id/timeDisplayBackground" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="5.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:gravity="center_horizontal" android:id="@id/timeDisplayForeground" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="5.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/date" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/alarm_status" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/status1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:singleLine="true" />
<RelativeLayout android:orientation="horizontal" android:id="@id/weather_panel" android:paddingTop="4.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:id="@id/weather_image" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_dialog_alert" android:layout_centerHorizontal="true" android:layout_centerVertical="true" />
<RelativeLayout android:orientation="horizontal" android:padding="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/weather_image" android:layout_centerVertical="true">
<TextView android:textSize="14.0sp" android:textStyle="bold" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:gravity="right" android:id="@id/weather_city" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentRight="true" />
<TextView android:textSize="12.0sp" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:gravity="right" android:id="@id/weather_condition" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_below="@id/weather_city" android:layout_alignParentRight="true" />
<TextView android:textSize="6.0sp" android:textColor="?textColorSecondary" android:gravity="right" android:id="@id/update_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/weather_condition" android:layout_alignParentRight="true" />
</RelativeLayout>
<RelativeLayout android:orientation="horizontal" android:id="@id/weather_temps_panel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/weather_image" android:layout_centerVertical="true">
<TextView android:textSize="20.0sp" android:textColor="?textColorPrimary" android:id="@id/weather_temp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" />
<View android:id="@id/weather_divider" android:background="@drawable/divider_horizontal_dark" android:layout_width="44.0dip" android:layout_height="1.0dip" android:layout_below="@id/weather_temp" />
<TextView android:textSize="12.0sp" android:textColor="?textColorPrimary" android:id="@id/weather_low_high" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/weather_divider" android:layout_centerHorizontal="true" />
</RelativeLayout>
</RelativeLayout>
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="4.0dip" style="?android:attr/buttonBarButtonStyle" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:id="@id/calendar_panel" android:paddingLeft="12.0dip" android:paddingRight="12.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="28.0dip">
<ImageView android:gravity="center" android:layout_gravity="center_vertical" android:layout_width="36.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_lock_idle_calendar" />
<View android:background="@drawable/divider_horizontal_dark" android:paddingTop="6.0dip" android:paddingBottom="6.0dip" android:layout_width="1.0dip" android:layout_height="fill_parent" />
<RelativeLayout android:paddingLeft="4.0dip" android:paddingTop="6.0dip" android:paddingBottom="6.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textSize="14.0sp" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:id="@id/calendar_event_title" android:fadingEdge="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textSize="12.0sp" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:id="@id/calendar_event_details" android:focusable="true" android:focusableInTouchMode="true" android:fadingEdge="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/calendar_event_title" android:layout_alignLeft="@id/calendar_event_title" android:marqueeRepeatLimit="marquee_forever" />
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:weightSum="2.0" style="?android:attr/buttonBarStyle">
<Button android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:layout_gravity="center_horizontal" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" android:layout_weight="1.0" style="?android:attr/buttonBarButtonStyle" />
</LinearLayout>
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="8" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
Step 2. Copy the images to \res\drawable-mdpi\
Done recompile your framework-res.apk
Step 3. >Decompile the newly compiled framework-res.apk
>Go to \res\values\public.xml
>Open it on notepad++ and keep it open.
Step 4. >Decompile your framework.jar
>Go to \com\android\internal\widget
>Delete the WaveView.SMALI and replace it with this one
Step 5. Open in notepad++ the new WaveView.smali and look into your new public.xml that you kept open.Make sure the ID in WaveView.smali is same like your new ID in new public.xml but without 0 number in the public.xml
Code:
New WaveView.smali New Public.xml
-line 306 -> 0x10805fc <public type="drawable" name="unlock_ring" id="0x[COLOR="Red"]0[/COLOR]10805fc" />
-line 355 -> 0x10805fa <public type="drawable" name="unlock_default" id="0x[COLOR="red"]0[/COLOR]10805fa" />
-line 404 -> 0x10805fb <public type="drawable" name="unlock_halo" id="0x[COLOR="red"]0[/COLOR]10805fb" />
-line453 -> 0x10805fd <public type="drawable" name="unlock_wave" id="0x[COLOR="red"]0[/COLOR]10805fd" />
if the ID in new public.xml is different, you must change the ID in new WaveView.smali with your new ID in public.xml that is without the number 0 in the public.xml
Thats it and Compile your framework-res.apk and your framework.jar.
Guide for BB10 lockscreen :
Step1. Decompile your framework-res.apk:
\res\layout\keyguard_screen_tab_unlock.xml
Delete all the lines and replace with this :
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.internal.widget.WaveView android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:id="@id/time" android:paddingTop="36.0dip" android:layout_marginBottom="8.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:gravity="center_horizontal" android:id="@id/timeDisplayBackground" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="5.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:gravity="center_horizontal" android:id="@id/timeDisplayForeground" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="5.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:orientation="horizontal" android:id="@id/date_line" android:layout_width="fill_parent">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/date" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/alarm_status" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/status1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:singleLine="true" />
<RelativeLayout android:orientation="horizontal" android:id="@id/weather_panel" android:paddingTop="4.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:id="@id/weather_image" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_dialog_alert" android:layout_centerHorizontal="true" android:layout_centerVertical="true" />
<RelativeLayout android:orientation="horizontal" android:padding="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/weather_image" android:layout_centerVertical="true">
<TextView android:textSize="14.0sp" android:textStyle="bold" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:gravity="right" android:id="@id/weather_city" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentRight="true" />
<TextView android:textSize="12.0sp" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:gravity="right" android:id="@id/weather_condition" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_below="@id/weather_city" android:layout_alignParentRight="true" />
<TextView android:textSize="6.0sp" android:textColor="?textColorSecondary" android:gravity="right" android:id="@id/update_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/weather_condition" android:layout_alignParentRight="true" />
</RelativeLayout>
<RelativeLayout android:orientation="horizontal" android:id="@id/weather_temps_panel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/weather_image" android:layout_centerVertical="true">
<TextView android:textSize="20.0sp" android:textColor="?textColorPrimary" android:id="@id/weather_temp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" />
<View android:id="@id/weather_divider" android:background="@drawable/divider_horizontal_dark" android:layout_width="44.0dip" android:layout_height="1.0dip" android:layout_below="@id/weather_temp" />
<TextView android:textSize="12.0sp" android:textColor="?textColorPrimary" android:id="@id/weather_low_high" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/weather_divider" android:layout_centerHorizontal="true" />
</RelativeLayout>
</RelativeLayout>
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="4.0dip" style="?android:attr/buttonBarButtonStyle" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:id="@id/calendar_panel" android:paddingLeft="12.0dip" android:paddingRight="12.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="28.0dip">
<ImageView android:gravity="center" android:layout_gravity="center_vertical" android:layout_width="36.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_lock_idle_calendar" />
<View android:background="@drawable/divider_horizontal_dark" android:paddingTop="6.0dip" android:paddingBottom="6.0dip" android:layout_width="1.0dip" android:layout_height="fill_parent" />
<RelativeLayout android:paddingLeft="4.0dip" android:paddingTop="6.0dip" android:paddingBottom="6.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textSize="14.0sp" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:id="@id/calendar_event_title" android:fadingEdge="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textSize="12.0sp" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:id="@id/calendar_event_details" android:focusable="true" android:focusableInTouchMode="true" android:fadingEdge="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/calendar_event_title" android:layout_alignLeft="@id/calendar_event_title" android:marqueeRepeatLimit="marquee_forever" />
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:weightSum="2.0" style="?android:attr/buttonBarStyle">
<Button android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:layout_gravity="center_horizontal" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" android:layout_weight="1.0" style="?android:attr/buttonBarButtonStyle" />
</LinearLayout>
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="8" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
Step 2.
>Copy theimagesto \res\drawable-mdpi\
>Add this line to the end of \res\values\ids.xml
Code:
<item type="id" name="date_line">false</item>
Done recompile your framework-res.apk
Step 3. >Decompile the newly compiled framework-res.apk
>Go to \res\values\public.xml
>Open it on notepad++ and keep it open.
Step 4. >Decompile your framework.jar
>Go to \com\android\internal\widget
>Delete the WaveView.SMALI and replace it with this one
Step 5. Open in notepad++ the new WaveView.smali and look into your new public.xml that you kept open.Make sure the ID in WaveView.smali is same like your new ID in new public.xml but without 0 number in the public.xml
Code:
New WaveView.smali New Public.xml
-line 198 -> 0x10404bd <public type="string" name="description_target_camera" id="0x010404bd" />
-line 306 -> 0x10805fc <public type="drawable" name="unlock_ring" id="0x[COLOR="Red"]0[/COLOR]10805fc" />
-line355 -> 0x10805fd <public type="drawable" name="unlock_wave" id="0x[COLOR="red"]0[/COLOR]10805fd" />
-line 404 -> 0x10805fa <public type="drawable" name="unlock_default" id="0x[COLOR="red"]0[/COLOR]10805fa" />
-line 453 -> 0x10805fb <public type="drawable" name="unlock_halo" id="0x[COLOR="red"]0[/COLOR]10805fb" />
if the ID in new public.xml is different, you must change the ID in new WaveView.smali with your new ID in public.xml that is without the number 0 in the public.xml
Thats it and Compile your framework-res.apk and your framework.jar and enjoy.
Hit a thanks if this guide helped you !!!!
Reserved !!
Sent from my GT-I9300 using xda premium
could you make a flashable zip for making things easier?
hien98 said:
could you make a flashable zip for making things easier?
Click to expand...
Click to collapse
Yeah sure will make it !!
Sent from my GT-I9300 using xda premium
Hey nice guide. Is there a guide like this for CM10/ 4.1.2 AOSP's?
Sent from my SGH-T999 using xda premium
hien98 said:
could you make a flashable zip for making things easier?
Click to expand...
Click to collapse
+1
Rittik said:
Hey nice guide. Is there a guide like this for CM10/ 4.1.2 AOSP's?
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Here you go
http://forum.xda-developers.com/showthread.php?t=2236926
Sent from my GT-I9300 using xda premium
nice works
Looks good! Thanks! FYI, it's the Galaxy S2 lock screen, but who cares
Me Gusta!
You did it man, .THANKS by the way,. I'll put this link to my fisrt post
Adi Aisiteru Reborn said:
You did it man, .THANKS by the way,. I'll put this link to my fisrt post
Click to expand...
Click to collapse
Yeah !!
Sent from my GT-I9300 using xda premium
can for cm10 too ?
i love bb10 lockscreen :fingers-crossed:
hey men could u share with us the already flashable zip s3 lockscreen and bb lockscreen...
since I'm still a newbie with this one i dont how to use apk multi tools i try another tools like apk tools but when i try to recompile it, it gives an error hope u give us the mdpi lockscreen modded...
Thanks,,
Toink29
Sky_Walker said:
Yeah !!
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
i've been following this guide, but i make it for LDPI screen
and i put images source in res/drawable-ldpi
But, i cant unlock it
Can you help me?
*sorry for my english
RATnt said:
i've been following this guide, but i make it for LDPI screen
and i put images source in res/drawable-ldpi
But, i cant unlock it
Can you help me?
*sorry for my english
Click to expand...
Click to collapse
like as mine.. hey op any solution for this??????
RATnt said:
i've been following this guide, but i make it for LDPI screen
and i put images source in res/drawable-ldpi
But, i cant unlock it
Can you help me?
*sorry for my english
Click to expand...
Click to collapse
Did you resize the images to ldpi ?
Sent from my GT-I9300 using xda premium
Sky_Walker said:
Did you resize the images to ldpi ?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
yes, i only resize unlock_default.png [240×400]
@Sky_Walker Can you help me in making this??
I'm using miniCM9
Regards, MR.
Please help!
Everytime I try to recompile it, it says "an error occured" I don't know why is this happening because yesterday it just works -_- I'm using APK multi tool, latest version. Need your help ASAP, I really want to have this BB10 lockscreen for my Xperia Mini!​
hey, could you tell how to get rid of the white shadow behind the clock? ?

[GUIDE] Honeycomb lock screen MOD & much more [NO SMALI EDITING]

found a nice guide here http://forum.xda-developers.com/showthread.php?p=23456320 by evilisto.... but my device manufacturer doesn't release source code...
after reading AOSP source and smali files of framework.jar found that all lock screen files are there... android didnt removed its previous versions lock screen styles.... but they added new one leaving old one as it is.... and referred to that style in layout files.... so, we can still use that lock screen styles without editing smail... means just refer that style in layout file.... and copy images from other folder... means most likely they are in other drawable-xxxx...
so for example if you want honeycomb lock screen :
Step 1 :
decompile framework-res.apk
goto res > layout > keyguard_screen_tab_unlock.xml
Step 2 :
search for "com.android.internal.widget.multiwaveview.GlowPadView" if you are runnig JB... search for "com.android.internal.widget.multiwaveview.MultiWaveView" if are runnig ICS.... so just change the above code with "com.android.internal.widget.WaveView" so that it refer honeycomb lock screen style.....
you may also have to change its location.....
compare your code with this one.... :
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:background="#90000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:layout_gravity="center" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="center" android:orientation="horizontal">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0dip" android:textStyle="bold" android:textColor="#ffe2e2e2" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:fontFamily="sans-serif-light" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0dip" android:textStyle="italic" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<include android:id="@id/NewEventController" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:layout_alignParentRight="true" layout="@layout/keyguard_newevent_controller" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:layout_gravity="left" android:id="@id/calibrationData" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="2.0dip" android:layout_marginRight="12.0dip" android:singleLine="true" android:layout_below="@id/NewEventController" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:layout_gravity="center" android:id="@id/status1" android:singleLine="true" android:drawablePadding="2.0dip" android:fontFamily="sans-serif-light" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="380.0dip">
<com.android.internal.widget.WaveView android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="300dip" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="12.0dip" android:layout_alignParentBottom="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="right" android:id="@id/carrier" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
<TextView android:gravity="center" android:id="@id/carrierDivider" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:drawablePadding="2.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="left" android:id="@id/carrierGemini" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
</LinearLayout>
</RelativeLayout>
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" style="?android:attr/buttonBarButtonStyle" />
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="4" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
add pngs(images) from here...
SS:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sliding Tab
anybody want classic android slidingtab :silly:
how ? compare code with mine... , just edit red line...
:
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:background="#90000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:layout_gravity="center" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="center" android:orientation="horizontal">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0dip" android:textStyle="bold" android:textColor="#ffe2e2e2" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:fontFamily="sans-serif-light" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0dip" android:textStyle="italic" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<include android:id="@id/NewEventController" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:layout_alignParentRight="true" layout="@layout/keyguard_newevent_controller" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:layout_gravity="left" android:id="@id/calibrationData" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="2.0dip" android:layout_marginRight="12.0dip" android:singleLine="true" android:layout_below="@id/NewEventController" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:layout_gravity="center" android:id="@id/status1" android:singleLine="true" android:drawablePadding="2.0dip" android:fontFamily="sans-serif-light" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="380.0dip">
[COLOR="Red"]<com.android.internal.widget.SlidingTab android:id="[COLOR="Blue"]@id/unlock_widget[/COLOR]" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="80dip" /> [/COLOR]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="12.0dip" android:layout_alignParentBottom="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="right" android:id="@id/carrier" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
<TextView android:gravity="center" android:id="@id/carrierDivider" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:drawablePadding="2.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="left" android:id="@id/carrierGemini" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
</LinearLayout>
</RelativeLayout>
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" style="?android:attr/buttonBarButtonStyle" />
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="4" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
as simple as that... :laugh: don't ever change that blue id in any lock screen mod unless you edit android.policy.jar and change id...
UPDATE : for these effect :
video by @evilisto not by me...
HOW :
* download chrome resource... put it in framework-res/res/drawable-xxx
got animation exactly as here for all logos :victory::victory:
search :
Code:
.field private static final DURATION:J = [COLOR="Red"]0x12cL[/COLOR]
it controls duration of transitional animations
change all occurrence of 0x12c to 0x400
search :
Code:
.field private static final WAVE_DELAY:J = 0x64L
it controls duration between waves,
to change it to 0x250L
then search for (they are more than once replace all) :
Code:
Lcom/android/internal/widget/WaveView;->mWaveTimerDelay:J
one line above you will see 0x64 change it too 0x250
search :
Code:
.field private static final SHORT_DELAY:J = 0x64L
it controls time for starting one animation after another
change all occurrence of 0x64 to 0x300
search:
Code:
field private static final WAVE_COUNT:I = 0x14
it controls... well, its self explanatory
change 0x14 to 0x5
search for
Code:
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 4
const/16 v3, 0x14
const/4 v2, 0x0
change 0x14 to 0x5
search
Code:
.field private static final WAVE_DURATION:J = 0x7d0L
its single wave duration
replace all 0x7d0 to 0xBB8
its also there in WaveView$2.smali...
ps : you may ask where is those resource ?? (png) its there always, look in res/drawable-swxxx
using same method you can try older version lockscreen WITHOUT modifying smali...
Resources?
This is awesome.. but won't we need the resources, images and such? And do we need to modify public id's in the smali? Please elaborate.
grvrulz said:
This is awesome.. but won't we need the resources, images and such? And do we need to modify public id's in the smali? Please elaborate.
Click to expand...
Click to collapse
the images are still in there more than likely, there are still gingerbread and froyo images in there as well....
jasonevil said:
the images are still in there more than likely, there are still gingerbread and froyo images in there as well....
Click to expand...
Click to collapse
Yup, images are still there look in drawable-xxxx .... and if someone managed to edit smali to switch between these style that will be great....
Sent from my IRIS_501 using xda premium
Thanks
akash akya said:
Yup, images are still there look in drawable-xxxx .... and if someone managed to edit smali to switch between these style that will be great....
Sent from my IRIS_501 using xda premium
Click to expand...
Click to collapse
I'll try it right now and report back.
Btw AOKP has the option of selecting lockscreens in settings, maybe some amazing developer could try porting
bootloop :/
tried every method but no luck moreover i can't find any drwables releated to HoneyComb in my framework
and i am running JB 4.1.1 on MY kARBONN A5
Got it working but now there is no lockring
GuneetAtwal said:
bootloop :/
tried every method but no luck moreover i can't find any drwables releated to HoneyComb in my framework
and i am running JB 4.1.1 on MY kARBONN A5
Got it working but now there is no lockring
Click to expand...
Click to collapse
glad to hear you got it.. :good:
its easy fix... check missing drawable in /res/drawable/ic_lockscreen_xxhandlexx.png
or
define manually by comparing other ic_lockscreen_xxx.png
@akash akya
Great guide man
i didt get bootloop but my lockscreen slider gone,,but it still shows clock and carrier,,i am using cm9
can u help
Can u give us more codes to replace to get more lockscreens?
Hpsgill said:
@akash akya
Great guide man
i didt get bootloop but my lockscreen slider gone,,but it still shows clock and carrier,,i am using cm9
can u help
Can u give us more codes to replace to get more lockscreens?
Click to expand...
Click to collapse
i think its because of misplaced layout... correct it by checking "layout_margin" n "padding"
sure... i will post codes soon...
Hi
first thanks!
i trid it on my Rom SGS2 JB 4.1.2 but not working!
i have only clock and status lins
i trid your layout cods but that was be same
here is my layout cods:
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.WaveView android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:layout_gravity="left" android:id="@id/carrier" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="12.0dip" android:singleLine="false" />
</RelativeLayout>
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:layout_gravity="right" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:layout_marginBottom="12.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="right" android:orientation="horizontal" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:layout_gravity="right" android:id="@id/status1" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:singleLine="true" android:drawablePadding="4.0dip" />
<Space android:layout_gravity="fill" />
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="4.0dip" style="?android:attr/buttonBarButtonStyle" />
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="16" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
Biftor said:
Hi
first thanks!
i trid it on my Rom SGS2 JB 4.1.2 but not working!
i have only clock and status lins
i trid your layout cods but that was be same
here is my layout cods:
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.WaveView android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:layout_gravity="left" android:id="@id/carrier" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="12.0dip" android:singleLine="false" />
</RelativeLayout>
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:layout_gravity="right" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:layout_marginBottom="12.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="right" android:orientation="horizontal" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:layout_gravity="right" android:id="@id/status1" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:singleLine="true" android:drawablePadding="4.0dip" />
<Space android:layout_gravity="fill" />
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="4.0dip" style="?android:attr/buttonBarButtonStyle" />
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="16" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
Click to expand...
Click to collapse
i will give you new codes new few minutes...
akash akya said:
i will give you new codes new few minutes...
Click to expand...
Click to collapse
thanks i am here!
but one Q are sure we dont need edit androidpolicy.jar/lockscreen.smali
??
Biftor said:
thanks i am here!
but one Q are sure we dont need edit androidpolicy.jar/lockscreen.smali
??
Click to expand...
Click to collapse
sorry for late replay...as i said no need to edit any smali.... compare with my keyguard_screen_tab_unlock.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:background="#90000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:layout_gravity="center" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="center" android:orientation="horizontal">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0dip" android:textStyle="bold" android:textColor="#ffe2e2e2" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:fontFamily="sans-serif-light" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0dip" android:textStyle="italic" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<include android:id="@id/NewEventController" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:layout_alignParentRight="true" layout="@layout/keyguard_newevent_controller" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:layout_gravity="left" android:id="@id/calibrationData" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="2.0dip" android:layout_marginRight="12.0dip" android:singleLine="true" android:layout_below="@id/NewEventController" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:layout_gravity="center" android:id="@id/status1" android:singleLine="true" android:drawablePadding="2.0dip" android:fontFamily="sans-serif-light" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="380.0dip">
[COLOR="Red"]<com.android.internal.widget.WaveView android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="300dip" />[/COLOR]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="12.0dip" android:layout_alignParentBottom="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="right" android:id="@id/carrier" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
<TextView android:gravity="center" android:id="@id/carrierDivider" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:drawablePadding="2.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="left" android:id="@id/carrierGemini" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
</LinearLayout>
</RelativeLayout>
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" style="?android:attr/buttonBarButtonStyle" />
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="4" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
just add red code... as whole code 99% wont work as mine is an MTK device...
don't know why files in other drawable is not working... anyway... add pngs to drawable-hdpi or nodpi
updating to OP...
GuneetAtwal said:
bootloop :/
tried every method but no luck moreover i can't find any drwables releated to HoneyComb in my framework
and i am running JB 4.1.1 on MY kARBONN A5
Got it working but now there is no lockring
Click to expand...
Click to collapse
Hpsgill said:
@akash akya
Great guide man
i didt get bootloop but my lockscreen slider gone,,but it still shows clock and carrier,,i am using cm9
can u help
Can u give us more codes to replace to get more lockscreens?
Click to expand...
Click to collapse
soory for that... try guide now... also add pngs...
akash akya said:
sorry for late replay...as i said no need to edit any smali.... compare with my keyguard_screen_tab_unlock.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:background="#90000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:layout_gravity="center" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="center" android:orientation="horizontal">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0dip" android:textStyle="bold" android:textColor="#ffe2e2e2" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:fontFamily="sans-serif-light" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0dip" android:textStyle="italic" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<include android:id="@id/NewEventController" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:layout_alignParentRight="true" layout="@layout/keyguard_newevent_controller" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:layout_gravity="left" android:id="@id/calibrationData" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="2.0dip" android:layout_marginRight="12.0dip" android:singleLine="true" android:layout_below="@id/NewEventController" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:layout_gravity="center" android:id="@id/status1" android:singleLine="true" android:drawablePadding="2.0dip" android:fontFamily="sans-serif-light" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="380.0dip">
[COLOR="Red"]<com.android.internal.widget.WaveView android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="300dip" />[/COLOR]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="12.0dip" android:layout_alignParentBottom="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="right" android:id="@id/carrier" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
<TextView android:gravity="center" android:id="@id/carrierDivider" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:drawablePadding="2.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="left" android:id="@id/carrierGemini" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
</LinearLayout>
</RelativeLayout>
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" style="?android:attr/buttonBarButtonStyle" />
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="4" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
just add red code... as whole code 99% wont work as mine is an MTK device...
don't know why files in other drawable is not working... anyway... add pngs to drawable-hdpi or nodpi
updating to OP...
Click to expand...
Click to collapse
Thanks mate I will try it now and will give you feedback
Goodluck
Armin.
Sent from my GT-I9100 using xda premium
Thanks mate that's great great great
Yes we should add pngs again to drawable
that's working now
Thanks
I can play on it and add toggle for switch between jb and honey with more unlock logo and color piker to that
One more question where is lock png in smali in the right side I want remove that do you now??
Goodluck
Armin.
Sent from my GT-I9100 using xda premium
Anybody can help me?
I really need to remove logo from Right
See my attached screen shot
(Right Google chrome logo)
Thanks
Sent from my GT-I9100 using xda premium
Biftor said:
Anybody can help me?
I really need to remove logo from Right
See my attached screen shot
(Right Google chrome logo)
Thanks
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
make it transparent... else wait for some time i got new idea. ....
Sent from my IRIS_501 using xda premium
Biftor said:
Anybody can help me?
I really need to remove logo from Right
See my attached screen shot
(Right Google chrome logo)
Thanks
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
anybody want classic android slidingtab :silly:
how ? compare code with mine... , just edit red line...
:
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:background="#90000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:layout_gravity="center" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="center" android:orientation="horizontal">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0dip" android:textStyle="bold" android:textColor="#ffe2e2e2" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:fontFamily="sans-serif-light" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0dip" android:textStyle="italic" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<include android:id="@id/NewEventController" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:layout_alignParentRight="true" layout="@layout/keyguard_newevent_controller" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:layout_gravity="left" android:id="@id/calibrationData" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="2.0dip" android:layout_marginRight="12.0dip" android:singleLine="true" android:layout_below="@id/NewEventController" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:layout_gravity="center" android:id="@id/status1" android:singleLine="true" android:drawablePadding="2.0dip" android:fontFamily="sans-serif-light" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="380.0dip">
[COLOR="Red"]<com.android.internal.widget.SlidingTab android:id="[COLOR="Blue"]@id/unlock_widget[/COLOR]" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="80dip" /> [/COLOR]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="12.0dip" android:layout_alignParentBottom="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="right" android:id="@id/carrier" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
<TextView android:gravity="center" android:id="@id/carrierDivider" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:drawablePadding="2.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="left" android:id="@id/carrierGemini" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
</LinearLayout>
</RelativeLayout>
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" style="?android:attr/buttonBarButtonStyle" />
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="4" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
as simple as that... :laugh: don't ever change that blue id in any lock screen mod unless you edit android.policy.jar and change id...
akash akya said:
anybody want classic android slidingtab :silly:
how ? compare code with mine... , just edit red line...
:
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:background="#90000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:layout_gravity="center" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:layout_gravity="center" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="center" android:orientation="horizontal">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0dip" android:textStyle="bold" android:textColor="#ffe2e2e2" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:fontFamily="sans-serif-light" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0dip" android:textStyle="italic" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<include android:id="@id/NewEventController" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:layout_alignParentRight="true" layout="@layout/keyguard_newevent_controller" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:layout_gravity="left" android:id="@id/calibrationData" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="12.0dip" android:layout_marginTop="2.0dip" android:layout_marginRight="12.0dip" android:singleLine="true" android:layout_below="@id/NewEventController" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:layout_gravity="center" android:id="@id/status1" android:singleLine="true" android:drawablePadding="2.0dip" android:fontFamily="sans-serif-light" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="380.0dip">
[COLOR="Red"]<com.android.internal.widget.SlidingTab android:id="[COLOR="Blue"]@id/unlock_widget[/COLOR]" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_marginBottom="80dip" /> [/COLOR]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="12.0dip" android:layout_alignParentBottom="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="right" android:id="@id/carrier" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
<TextView android:gravity="center" android:id="@id/carrierDivider" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:drawablePadding="2.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="left" android:id="@id/carrierGemini" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" android:layout_weight="1.0" />
</LinearLayout>
</RelativeLayout>
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" style="?android:attr/buttonBarButtonStyle" />
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="4" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
as simple as that... :laugh: don't ever change that blue id in any lock screen mod unless you edit android.policy.jar and change id...
Click to expand...
Click to collapse
That great mate thanks!
I had thought for that
Honey comb lock screen with many logo and color piker for that added in my other lock screen to my Rom and slid tab will add too
Thanks
Here is my final screen shot
Goodluck
Armin.
Sent from my GT-I9100 using xda premium

[GUIDE][Mods][All Devices]How to add/ Change Clocks to Analog/ Digital with Seconds

Hi devs...
Today i will share to you How to add/ Change All Clocks to Analog nor even with Seconds Digital Clock...
This method only for you who have experiences or familiar with Apktool/ Apk Multy tool/ etc.
So, Let's do this;
Required:
PC
Apktool or similar Tools
NotePad++ for edit xmls files
WinRAR or 7z
A Cup of coffee (Yeaahh...)
1. Change your Clock Lockscreen (From framework or UxpNxtLockscreen)
Only need to change "Textview" to "DigitalClock" for it;
> Decompile your framework-res.apk
> Navigate to /res/layout/
> Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> That's it, now save and Recompile...
Do the same way for UxpNxtLockscreen.apk with open w_clock.xml on /res/layout/
And we got look like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Change your Status bar Clock and Status bar Expanded Clock
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar.xml (for Status bar Clock) and status_bar_expanded_header.xml (for JB status bar expanded clock)
> On status_bar.xml, search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
> Change the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
Yeah, we know what it should be
> Save and Recompile...
Now play with expanded clock;
> Open status_bar_expanded_header.xml
> Search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
> I bet you already knew what you have to do... yep, change the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> Save and Recompile...
> And we got look like this:
3. Change your lockscreen Clock to Analog Clock (from framework or UxpNxtLockScreen)
> Decompile framework-res.apk
> Navigate to /res/layout/
> Again, Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
> You need to HIDE these lines first (hide the Digital Clock) by add this code:
Code:
android:visibility="gone"
> Then, copy this line to show Analog Clock upside the above lines:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
> Now code lines should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
<LinearLayout android:layout_gravity="top" android:orientation="vertical" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip">
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip" android:layout_marginBottom="3.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="62.0dip" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
> Save it
> We have new id for now then,
> Navigate to /res/values/
> Open ids.xml and add this line at the end of ids (above </resource> code )
Code:
<item type="id" name="analogClock1">false</item>
> Save and Recompile...
Now play with UxpNxtLockScreen clock;
> After decompiling
> Navigate to /res/layout/
> Open w_clock.xml
> Search for this line:
Code:
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Again, HIDE the Digital Clock before add the Analog Clock by add this line:
Code:
android:visibility="gone"
> Just like the way we made for framework-res.apk, add the Analog Clock lines mentioned above.
> It's should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Wait, it's NOT perfect looks yet :cyclops:
> You need to make some MARGIN to the top of Clock, then:
> On second line, add the RED code and should be look like this:
Code:
<LinearLayout android:orientation="vertical" android:id="@id/clock_and_date" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginTop="36.0dip"[/COLOR] android:layout_alignParentTop="true" android:layout_centerHorizontal="true
> Margin should be differ for some Screen Sizes. Then look up for your self...
> Done, Save and Recompile...
> And we got look like this:
4. Add Analog Clock in expanded status bar layout
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar_expanded.xml (for JB devices)
> Search for this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
> Below the code, add this line:
Code:
<AnalogClock android:layout_gravity="bottom" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginBottom="100.0dip"[/COLOR] android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
> See the RED code? That mean depends on your Screen Sizes,.... you know what you have to do...
> And we got look like this:
One more simple guide for change the Analog Clock Style: CLICK ME!
That's it for the Guides, if you have some questions related to this method, just post here...
But, don't ask me for how to use apktool or bla..bla..bla... Try to use your Search Bar Engine or CLICK ME!...
If you had Xperia E Single SIM on your hands, i have those things already for ya... CLICK ME!
Original Thread on Xperia Miro, Tipo, J and E
CREDITS:
> XDA Developers Staff and Members
> Rizal Lovins for JB Apktool
> Google
> My Coffee...
> If someone forgotten by me, please PM then i will edit the Credits... Thanks
Give me a Motivate by Hit that THANKS button
or Help me for Upgrade my Damn Networking by DONATE to me:fingers-crossed:​
Good stuff. :good:
XperienceD said:
Good stuff. :good:
Click to expand...
Click to collapse
Thanks mate...
Hope this helpful for nu Themer out there :fingers-crossed:
Regards,
Very nice and original.
Awesome mods, keep it up.. Will try and report!!
Sent from my Wildfire S A510e using xda premium
Can you help me?
yayakuya said:
Hi devs...
Today i will share to you How to add/ Change All Clocks to Analog nor even with Seconds Digital Clock...
This method only for you who have experiences or familiar with Apktool/ Apk Multy tool/ etc.
So, Let's do this;
Required:
PC
Apktool or similar Tools
NotePad++ for edit xmls files
WinRAR or 7z
A Cup of coffee (Yeaahh...)
1. Change your Clock Lockscreen (From framework or UxpNxtLockscreen)
Only need to change "Textview" to "DigitalClock" for it;
> Decompile your framework-res.apk
> Navigate to /res/layout/
> Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> That's it, now save and Recompile...
Do the same way for UxpNxtLockscreen.apk with open w_clock.xml on /res/layout/
And we got look like this:
2. Change your Status bar Clock and Status bar Expanded Clock
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar.xml (for Status bar Clock) and status_bar_expanded_header.xml (for JB status bar expanded clock)
> On status_bar.xml, search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
> Change the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
Yeah, we know what it should be
> Save and Recompile...
Now play with expanded clock;
> Open status_bar_expanded_header.xml
> Search for this line:
Code:
<[COLOR="Red"]com.android.systemui.statusbar.policy.Clock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
> I bet you already knew what you have to do... yep, change the RED code to:
Code:
<[COLOR="Red"]DigitalClock[/COLOR]
> Save and Recompile...
> And we got look like this:
3. Change your lockscreen Clock to Analog Clock (from framework or UxpNxtLockScreen)
> Decompile framework-res.apk
> Navigate to /res/layout/
> Again, Open keyguard_screen_tab_unlock.xml (for normal lockscreen) or keyguard_screen_password_portrait.xml (for Password lockscreen)
> Search for this line:
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="12.0dip" android:layout_marginBottom="0.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
You just need to change the RED color text:
Code:
<[COLOR="Red"]TextView[/COLOR] android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
> You need to HIDE these lines first (hide the Digital Clock) by add this code:
Code:
android:visibility="gone"
> Then, copy this line to show Analog Clock upside the above lines:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
> Now code lines should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" />
<LinearLayout android:layout_gravity="top" android:orientation="vertical" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip">
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="22.0dip" android:layout_marginBottom="3.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="62.0dip" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_centerInParent="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_am_pm_font_size" android:textColor="@color/lockscreen_clock_am_pm" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginBottom="0.0dip" android:singleLine="true" android:shadowColor="@color/lockscreen_clock_background" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBottom="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
> Save it
> We have new id for now then,
> Navigate to /res/values/
> Open ids.xml and add this line at the end of ids (above </resource> code )
Code:
<item type="id" name="analogClock1">false</item>
> Save and Recompile...
Now play with UxpNxtLockScreen clock;
> After decompiling
> Navigate to /res/layout/
> Open w_clock.xml
> Search for this line:
Code:
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Again, HIDE the Digital Clock before add the Analog Clock by add this line:
Code:
android:visibility="gone"
> Just like the way we made for framework-res.apk, add the Analog Clock lines mentioned above.
> It's should be look like this:
Code:
<AnalogClock android:layout_gravity="center_horizontal" android:id="@id/analogClock1" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/timeRelativeLayout24h" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="-6.0dip">
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="76.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:singleLine="true" android:shadowColor="@color/clock_text_shadow_color" android:shadowDx="@integer/clock_text_shadow_dx" android:shadowDy="@integer/clock_text_shadow_dy" android:shadowRadius="@integer/clock_text_shadow_radius" android:layout_centerHorizontal="true" />
<TextView android:textAppearance="?android:textAppearanceMedium" android:textSize="16.0dip" android:textColor="@*android:color/white" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:singleLine="true" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_toRightOf="@id/timeDisplay" android:layout_alignParentTop="true" />
</RelativeLayout>
> Wait, it's NOT perfect looks yet :cyclops:
> You need to make some MARGIN to the top of Clock, then:
> On second line, add the RED code and should be look like this:
Code:
<LinearLayout android:orientation="vertical" android:id="@id/clock_and_date" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginTop="36.0dip"[/COLOR] android:layout_alignParentTop="true" android:layout_centerHorizontal="true
> Margin should be differ for some Screen Sizes. Then look up for your self...
> Done, Save and Recompile...
> And we got look like this:
4. Add Analog Clock in expanded status bar layout
> Decompile your SystemUI.apk
> Navigate to /res/layout/
> Open status_bar_expanded.xml (for JB devices)
> Search for this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
> Below the code, add this line:
Code:
<AnalogClock android:layout_gravity="bottom" android:id="@id/analogClock1" android:layout_width="fill_parent" android:layout_height="wrap_content" [COLOR="Red"]android:layout_marginBottom="100.0dip"[/COLOR] android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
> See the RED code? That mean depends on your Screen Sizes,.... you know what you have to do...
> And we got look like this:
One more simple guide for change the Analog Clock Style: CLICK ME!
That's it for the Guides, if you have some questions related to this method, just post here...
But, don't ask me for how to use apktool or bla..bla..bla... Try to use your Search Bar Engine or CLICK ME!...
If you had Xperia E Single SIM on your hands, i have those things already for ya... CLICK ME!
Original Thread on Xperia Miro, Tipo, J and E
CREDITS:
> XDA Developers Staff and Members
> Rizal Lovins for JB Apktool
> Google
> My Coffee...
> If someone forgotten by me, please PM then i will edit the Credits... Thanks
Give me a Motivate by Hit that THANKS button
or Help me for Upgrade my Damn Networking by DONATE to me:fingers-crossed:​
Click to expand...
Click to collapse
Can you help me? I have tried many times but failed. I'm currently using Android version 2.3.6.
http://www.mediafire.com/download/yabpt45y8w62sdy/framework-res_%2BSystemUI.rar

[GUIDE][JB][HEADER]Date below Clock

Hello Guyz This was my First Post on This Forum Today I bring A Guide While I'm working on a SystemUI.apk I lear something Diff/easy to Do Okay :angel:
What changes this guide will Make?
Ans-It Will bring ur date below clock
Things needed :-
apktool
xml editor / Notepad++
some experience
-Decompile Ur SystemUI
-open res/layout/tw_status_bar_expanded_header.xml
U can see Something Like This
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffcbcbcb" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
We need To edit This Lines
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-5.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffcbcbcb" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
Change it like this
Code:
<RelativeLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ff00698c" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-8.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff00698c" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginTop="31.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
</FrameLayout>
</RelativeLayout>
Save
Recompile
Sign
Push
Reboot
Done
Enjoy
Credits
 @Ticklefish
Good guide bro..
Nice
Thanks hitted bro .
I will use this in my systemui:good:
vipin s said:
Thanks hitted bro .
I will use this in my systemui:good:
Click to expand...
Click to collapse
This guide is for Helping u can use it anywhere u want good luck

Categories

Resources