In some of the ROM's I've seen here the lockscreen is transparent, but in the ROM I use it's not, and I should like to know how to make it transparent.
If this would involve downloading source code, changing it and recompiling it, just let me know and I'll forget about it for now, but if it's something that a relative beginner might be able to accomplish then any pointers would be appreciated.
TheGrammarFreak said:
In some of the ROM's I've seen here the lockscreen is transparent, but in the ROM I use it's not, and I should like to know how to make it transparent.
If this would involve downloading source code, changing it and recompiling it, just let me know and I'll forget about it for now, but if it's something that a relative beginner might be able to accomplish then any pointers would be appreciated.
Click to expand...
Click to collapse
2.03 Roms have a broken vanilla lockscreen which 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"
}
This lockscreen has the trasparency and can be changed editing keyguard_screen_tab_unlock.xml in framework-res.apk (You need to deassemble with apktool).
You can change color and trasparency by changing the ARGB color highlighted down here.
If you refer to CyanogenMod or other Vanilla (from source) i can't confirm that changing the highlighted part of that xml will help (i don't know if there is a class which create the RelativeLayout and apply a background somewhere outside the xml) .
Code:
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" [B]android:background="#DC000000"[/B] android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock">
<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="10.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" 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="52.0dip" android:layout_marginBottom="10.0dip" android:layout_below="@id/carrier">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:gravity="bottom" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="8.0dip" android:layout_marginBottom="-6.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" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/date" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/status1" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/screenLocked" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="12.0dip" android:layout_below="@id/status2" />
<com.android.internal.widget.SlidingTab android:orientation="horizontal" android:id="@id/tab_selector" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="80.0dip" android:layout_alignParentBottom="true" />
<Button android:id="@id/emergencyCallButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="8.0dip" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_below="@id/screenLocked" style="@style/Widget.Button.Transparent" />
</RelativeLayout>
Well, I'll give it a shot, and let y'all know. We'll see what happens. I assume it's a boot into recovery and then use ADB pull to get the apk? And then push it back when when I've finished?
EDIT:
Well, I've pulled the APK, edited the file and am now backing up my phone before I push it back. I hope this works...
EDIT 2:
Well, I tried, and failed. It got stuck in a bootloop... I just pushed the original framework-res.apk back to get back to a working system.
TheGrammarFreak said:
Well, I'll give it a shot, and let y'all know. We'll see what happens. I assume it's a boot into recovery and then use ADB pull to get the apk? And then push it back when when I've finished?
EDIT:
Well, I've pulled the APK, edited the file and am now backing up my phone before I push it back. I hope this works...
EDIT 2:
Well, I tried, and failed. It got stuck in a bootloop... I just pushed the original framework-res.apk back to get back to a working system.
Click to expand...
Click to collapse
Read your logcat, it will give you advices on what's wrong.
Did you signed framework-res.apk with fakesign?
You could try to make a small update.zip and flash it instad of pushing.
Ok, well I'll look at into logcat.
I didn't know I had to sign it, I'll do that too. <-- How? A Google search yielded little,unless I was looking for the wrong thing
And I'll look into update.zip's later. Thanks for all your help.
EDIT:
Well, I had a go with logcat, and none of it means anything to me. I'll keep trying though. I may have filtered the wrong things. The thing is I'm not quite sure what I'm looking for. Oh well, I'll get there eventually. Doing this makes me realise how great ROM developers are...
Thanks again for your help with this
I've been trying hard with no luck.
The ROM I'm using is Azure (0.5), if anyone has any ideas on how to go about making the lockscreen I would be grateful for the help.
Cheers.
You can't push files to the system partition, we don't quite have access to it yet.... your best bet is to create an update zip and clockwork it in as mentioned above....
Sent from my Legend using XDA App
Quanny2000 said:
You can't push files to the system partition, we don't quite have access to it yet.... your best bet is to create an update zip and clockwork it in as mentioned above....
Sent from my Legend using XDA App
Click to expand...
Click to collapse
Well, I do it with my phone in clockworkMOD recovery, with /system mounted, and it seems to work fine...
where 2 find non-transparent screen lock
im pretty new to all this and am not that technical, so please bear with me
i have successfully rooted my legend and have installed custom rom speedlegend v.06
it comes with a lockscreen which is transparent.
i dont like the transparency and was wondering if you could point me in the direction of the link where i can find the lockscreen w/o a transparency?
id be happy with juz a black background with the clock and unlock and silent buttons
im not confident enough with coding or messing with coding to try and manually edit it
on a side note, do you think there would be any way to change the sliding "sound off" tab to make it enter vibration mode rather than no ring at all?
thanks in advance!
r3ptil3 said:
im pretty new to all this and am not that technical, so please bear with me
i have successfully rooted my legend and have installed custom rom speedlegend v.06
it comes with a lockscreen which is transparent.
i dont like the transparency and was wondering if you could point me in the direction of the link where i can find the lockscreen w/o a transparency?
id be happy with juz a black background with the clock and unlock and silent buttons
im not confident enough with coding or messing with coding to try and manually edit it
on a side note, do you think there would be any way to change the sliding "sound off" tab to make it enter vibration mode rather than no ring at all?
thanks in advance!
Click to expand...
Click to collapse
Well, if you follow the instruction up there ^ and set it all to #00000000 you'll get a black background.
I was about as noob as you when I tried to do it first (it was about my 3rd post), it's easy. You'll be fine.
Related
{
"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"
}
Usual disclaimer: i'm not responsible, you assume all risks blah blah etc etc...
Don't forget to backup first
In order to accomplish this you have to decompile system/framework/lge-res.apk. I used ahmadfarisfs gingerbread themed res as a base, due credit to him.
Note if you're already using a themed res different to the above flashing the version provided will overwrite it - obviously, unless you manually edit your version of lge-res.apk.
No Carrier + ahmadfarisfs Ginger Themed flashable zip
Manually editing
1: Download AutoTool cmd version and set it up in a folder.
2: Copy /system/framework/framework-res.apk & lge-res.apk from your phone to the input_apk folder of autotool.
3: Launch autotool and perform opt 1 & 2 - ignore errors.
4: Open lge_status_bar_expanded.xml in notepad from within the _INPUT_APK\lge-res\res\layout\ autotool directory.
5: XML Edits
Completed xml for comparison
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.server.status.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/quick_setting" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="48.0dip">
<ImageView android:id="@id/wifi_button_toggle" android:layout_width="60.0dip" android:layout_height="wrap_content" android:layout_marginLeft="1.0dip" />
<ImageView android:id="@id/bt_button_toggle" android:layout_width="60.0dip" android:layout_height="wrap_content" android:layout_marginLeft="1.0dip" />
<ImageView android:id="@id/gps_button_toggle" android:layout_width="60.0dip" android:layout_height="wrap_content" android:layout_marginLeft="1.0dip" />
<ImageView android:id="@id/network_button_toggle" android:layout_width="60.0dip" android:layout_height="wrap_content" android:layout_marginLeft="1.0dip" />
<ImageView android:id="@id/sound_button_toggle" android:layout_width="60.0dip" android:layout_height="wrap_content" />
</LinearLayout>
[COLOR="RoyalBlue"]<LinearLayout android:visibility="gone" android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0">
<TextView android:textAppearance="?android:textAppearanceLarge" android:textColor="?android:textColorSecondaryInverse" android:layout_gravity="center_vertical" android:id="@id/plmnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="?android:textAppearanceLarge" android:textColor="?android:textColorSecondaryInverse" android:layout_gravity="center_vertical" android:id="@id/spnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>[/COLOR]
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<com.android.server.status.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/TextAppearance.StatusBarTitle" android:id="@id/noNotificationsTitle" android:background="@android:drawable/title_bar_portrait" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@android:string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBarTitle" android:id="@id/ongoingTitle" android:background="@android:drawable/title_bar_portrait" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@android:string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
[COLOR="SeaGreen"]<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:layout_gravity="center_vertical" android:layout_weight="1" android:textAppearance="@android:style/TextAppearance.StatusBarTitle" android:id="@id/latestTitle" android:paddingLeft="5.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@android:string/status_bar_latest_events_title" />
<TextView android:layout_gravity="center_vertical" android:textSize="14.0sp" android:textColor="#ff000000" android:id="@id/clear_all_button" android:background="@android:drawable/btn_default_small" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@android:string/status_bar_clear_all_button" style="\?android:attr/buttonStyle" />
</LinearLayout>[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.server.status.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@android:drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.server.status.ExpandedView>
To hide the carrier bar, add the android:visibility="gone" attribute to the <LinearLayout> that encaspsulates plmnLabel & spnLabel.
Create a new <LinearLayout> exactly as in the comparison that encapsulates latestTitle. Cut & Paste the clear_all_button code from below the plmnLabel & spnLabel nesting it within this new block. Ensure the attributes of latestTitle & clear_all_button match the comparison - without layout_width="0.0dip" and layout_weight="1" on latestTitle it won't align well.
6: As per the autotool instructions but substituting the example path with the path of our xml file.
xavierjohn22 said:
......
EXAMPLE 2: XML BINARY WHEN YOU DO DIRECT EDITS
Say you are editing a file straight from framework-res\res\drawable\progress_horizontal.xml
FOR NOW YOU HAVE TO DO THIS:
1) After doing [3], recompiling the apk
2) Copy the file _INPUT_APK\framework-res\build\apk\res\drawable\progress_horizontal.xml
to
_CUSTOM_RES\framework-res\res\drawable\progress_horizontal.xml
(this is the binary of your edited file, by doing this, you are telling the tool to overwrite it when building the apk)
3) Once this is done, make sure that "Overwrite res using _CUSTOM_RES" is ON, it is ON by default
4) then do build usable, It should overwrite those binaries in the APK
......
Click to expand...
Click to collapse
7: The completed lge-res.apk resides in autotool's out_apk folder, make this into a flashable zip, flash and pray everything went well - you don't need to flash framework-res.apk as well.
Troubleshooting: If autotool complains it can't find *.bat files try moving it to a folder that doesn't require permissions, ie: your user folder, I also had difficulty with long path names, so don't bury it too deep.
I'm an android noob so if my instructions are too vague in some areas i'll try to assist the best i can.
i found a guide in the Nexus S forums to Add date to the top bar. (and removed from dropdown)
ported to ICS SGS project (AOSP ICS) for captivate by ME!!!
DOWNLOADS AT BOTTOM OF 1st POST
built on RC3.1 but will work on all versions. no ICSSGS release is perfect, so not going to worry about multiple versions unless I feel there is a real reason to.
made the zip to delete .odex file as this apk is de-odexed. so IT WORKS ON BOTH!!!
Battery mod included.
Right Hand Date ( Giggidy.. I had a right hand date last night..)
{
"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"
}
Centered Date/Time - smaller font
Made to work with trial and error combining two mod guides... and changing font size to 12. that was all me!
http://forum.xda-developers.com/showthread.php?t=1491887
http://forum.xda-developers.com/showthread.php?p=19760562#post19760562
Note: if you enable every statusbar icon(bt, vibrate,alarm,wifi etc) it will look messy cause the clock overlapse the icons...
Enjoy the Effin Mods!!
edits posted below.. the centre mod took a bit of playing around, original date centering guide was for AOKP (kang project) not AOSP (had centred time to begin with)
1. TO ADD DATE:
You have to decompile SystemUI.apk
Go to file: SystemUI.apk\res\layout\status_bar.xml
find the line looks like this... (line 15 ish..)
Code:
<com.android.systemui.statusbar.policy.Clock 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 androidaddingLeft= to "4.0dip"go to the beginning of the clock code and insert a line above it, paste this line above clock code
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
so it will look like this.... (keeping spacing in-line)
Code:
</LinearLayout>
[COLOR=Red]<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
</LinearLayout>
above in the original clock line, I set the
Code:
android:paddingLeft="4.0dip"
(was 6.0dip) to the same value as date, so they have the same space at the left.
With this setup, you will always see date and then clock at the right of the statusbar(I haven't test something else yet).
if you want to delete the date from the notification header, do the following:
in the file: SystemUI.apk\res\layout\status_bar_expanded.xml delete the following line
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
and in the line
Code:
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
replace the
Code:
android:layout_toRightOf="@id/date"
with the following(it maybe not crucial, but I did it)
Code:
android:layout_alignParentLeft="true"
it should look something like that
the text size is probably looking different between date and clock, so in the file SystemUI.apk\res\values\styles.xml is the text size of both.
clock
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
and date
Code:
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
I changed both with
Code:
<item name="android:textSize">12.0sp</item>
HOW TO CENTER CLOCK/DATE AFTER FIRST MOD
2. CLOCK FIRST...
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
<com.android.systemui.statusbar.policy.Clock
-delete the entire original clock line
-next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
</LinearLayout>
-make sure everything lines up (see my xml below)
-lastly, find this line:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
-right after "@id/ticker" add this drawable:
Code:
android:background="@drawable/status_bar_bg_tile"
3. NOW DATE....
now find, copy & delete (or cut) the line we modded in 1st part (adding date):
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
and place it in the part pasted at the top, above the line...
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so it will look like..... full xml - changes in RED..
Code:
<?xml version="1.0" encoding="utf-8"?><com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
[COLOR=#ff0000] xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">[/COLOR]
[COLOR=#ff0000] <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
[COLOR=#ff0000] <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />[/COLOR]
[COLOR=#ff0000] <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity "center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
[COLOR=#ff0000] </LinearLayout>[/COLOR]
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" [COLOR=#ff0000]android:background="@drawable/status_bar_bg_tile"[/COLOR]android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
reserved....
just in case have more mods...
Will this work on fuzion ics
Sent from my SGH-I897 using XDA App
I think fusion is built off of CM9. So it won't work. If it is built off ICS SGS then it will
Thanks a million TR...worked perfect on first try of both mods...nice work and I'll hit thanks when I get off work.
Sent from my SGH-I897 using XDA App
I'm not sure about the xda app but with tapatalk you are able to give thanks through the app, Same way you reply, click a post then click thanks
Its all good ....just got thanks taken care of.....ill keep an eye out for more updates from you.....later
REALLY SURPRISED this isn't more popular. I LOVE this mod
3 downloads?
Ima give this a try when i get home....
Awesome wallpaper mind sharing?
heres the wallpaper... but 1 sec i'll PM you "the.zip" file.
This is great thanks!
Sent from my SGH-I897 using XDA App
Love the way it looks. I am on the Kang CM9 RC0 right now and wish it worked on that. I assume if I flash it my stuff will be broken. So, I will wait for another version to magically appear somewhere maybe.
well if you use the guide part of the first post, and a little playing around, I'm sure it would be possible.
TRusselo said:
heres the wallpaper... but 1 sec i'll PM you "the.zip" file.
Click to expand...
Click to collapse
May I also get that "the.zip" file please?
TRusselo said:
well if you use the guide part of the first post, and a little playing around, I'm sure it would be possible.
Click to expand...
Click to collapse
I may mess around with and see what I can do. I love the way it looks. As a matter of fact if I could get this working I wouldn't need a huge widget on my main screen to display this info anymore. I have gone as far as extracting the xml files, but I am on a windows box and it doesn't like the XML format. Says it is corrupt, illegal characters etc. I will look around at some more of the modding guides and see if I can find a XML editor that will work. It seems most are still geared toward 2.2-2.2 versions of the OS. My knowledge is limited, as I am not a developer anyway.
Maybe I won't brick it.
I use windows only... Use notepad++ to edit... Anything...
And don't worry there is absolutely no risk of bricking your phone. At Worst, a bunch of force closes until you restore the original APK
Did you decompile APK properly? (right way) Or just use win rar? (wrong way). The winrar method will only work changing images
TRusselo said:
Did you decompile APK properly? (right way) Or just use win rar? (wrong way). The winrar method will only work changing images
Click to expand...
Click to collapse
Yeah, I seem to have taken a wrong turn with the winrar way. I saw information about apktool a few minutes ago and I just got it installed. So I will see if I can get to work this time through. Thanks for the info.
to de-compile ICS apks without error you will have to find the new updated AAPT.exe files and add them to the apktools ... ? bin folder??? er... sorry not at home. look through its folders and find the old one, and replace with new. ALSO add the updated AAPT files to " C:/Windows/ " as some times it will look for it there and other tools may install it there as well. I was unable to de-compile until i added it there.
APK_Manager ... er updated name...?? APK toolbox??
apktools...
xda auto-tools...
all does the same things and all need the aapt update to decompile ICS as they all use the same base tools through a different GUI...
--------------------------------------------------
1. SOFT POWER BUTTON
--------------------------------------------------
Today I will introduce about my new mod. This will add a soft lock button on your screen which help to decrease the usage of hard lock button
And another great thing is that this button has the same funtion with power button (hold to show power menu as well).
I'm on stock Bell 4.1.2 so the attached file below is only applied on Bell 4.1.2 deodexed only. U also may try on Mexican retail 4.1.2 and I think it should work. About 4.1.1 (Bell & ATT), I'm not sure so if anyone who is interested in, I will write a guide.
Note: About Back, Home, Task icons, I have used SoftkeyZ to change and forgot to go back to stock one before modding So if you want, search for the app and change it again. :">
Instruction:
- Put file in /system/app
- set permission: rw-r-r
Download: (see attachment)
Guide for doing this mod is in 2nd post below.
Here is screenshots:
{
"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"
}
-------------------------------------------------
5 SOFT KEY BUTTONS ( BACK, RECENT, HOME, SEARCH & MENU)
-------------------------------------------------
Here is the new mod as request from
It currently has a small limitation is that the search & menu button always show on lockscreen. I'm trying to figure out how to make it show only in homescreen. If anyone knows, plz tell me. Thank you.
Anw, enjoy this mod. Of course, this is for Bell 4.1.2 only I have no time to flash other stock firmware. I also attached the modded files for anyone want to compare and do this mod by themselves.
DOWNLOAD (see attachment)
INSTRUCTIONS:
- Put file in /system/app
- set permission: rw-r-r
SCREENSHOTS
Now I will write how to do this mod for your rom.
Requirement:
- Apktool (for decompile/compile) - If you dont have, go and download our Myth Tools here and install it.
- Notepad ++ (recommended or u can use other apps)
- Understanding about decompile/compile/replace file in system
- Deodexed system/rom/firmware
Target:
- We will modify SystemUI.apk
Instructions:
1. Pull your deodexed SystemUI.apk and use apktool to decompile it
2. Find "navigation_bar.xml" in \res\layout. Open it with Notepad ++
3. We need to modify 2 places in navigation_bar.xml:
- This place for screen when it's not rotation:
Code:
<FrameLayout android:id="@id/rot0" android:layout_width="fill_parent" android:layout_height="fill_parent">
- And this place for screen when it's rotation
Code:
<FrameLayout android:id="@id/rot90" android:paddingTop="0.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
4. In the 1st place, replace the code below (it's under "<LinearLayout..." line):
Code:
<View android:visibility="invisible" android:layout_width="40.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
with
Code:
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
5. In the 2nd place, replace the code below (It's above the "</LinearLayout>" line)
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="40.0dip" android:layout_weight="0.0" />
with this one:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="15.0dip" android:layout_weight="0.0" />
6. Now go to /value and open "ids.xml". Then add this line:
Code:
<item type="id" name="lock">false</item>
7. Next is editing "strings.xml" in /value. Add this line:
Code:
<string name="accessibility_lock">Lock</string>
8. Put the png file for lock image in the attachment below into /res/drawable-xhdpi. Or you can change it to ur image, it's up to u.
9. Compile and test.
Note: I also attached my navigation_bar.xml for you if you need it to compare.
Have fun with modding!
DK
Looks nice, and should come in handy to people with dis-functional power buttons. :good:
If only we could get an IOS6 style "Assistive touch" just like the one on the iPhone.
Codex01 said:
Looks nice, and should come in handy to people with dis-functional power buttons. :good:
If only we could get an IOS6 style "Assistive touch" just like the one on the iPhone.
Click to expand...
Click to collapse
Ya. I did this mod becoz all apps such as Toucher, Easy Touch...etc which look like "assistive touch" have problem with lockscreen funtion. After the screen turn off, it automatically turns on to lockscreen again. And that makes me mad =.='. So I decided to mod this one
Any guide to make it work on another rom,bro? This is so helpful to keep my power button.
Sent from my XT897 using Tapatalk 2
huatz84 said:
Any guide to make it work on another rom,bro? This is so helpful to keep my power button.
Sent from my XT897 using Tapatalk 2
Click to expand...
Click to collapse
I will write the guide when i come back home tonight
Sent from my MB886 using xda app-developers app
huatz84 said:
Any guide to make it work on another rom,bro? This is so helpful to keep my power button.
Sent from my XT897 using Tapatalk 2
Click to expand...
Click to collapse
Wrote the guide as ur request have fun!
devilsking said:
Wrote the guide as ur request have fun!
Click to expand...
Click to collapse
Thanks for the guide,bro.. I'll try it when I have much time.
I tested it. It works awesome.
wow, this is a great mod. very underated.
im surprised its not more in demand to have a MENU SOFT KEY, the stock navbar uses a lot of space and it can easily fit a softkey button for menu.
thanks again op, maybe you can add a matching menu (three dots) button in the nav bar section.
eugenile said:
wow, this is a great mod. very underated.
im surprised its not more in demand to have a MENU SOFT KEY, the stock navbar uses a lot of space and it can easily fit a softkey button for menu.
thanks again op, maybe you can add a matching menu (three dots) button in the nav bar section.
Click to expand...
Click to collapse
I think it's possible. As i Checked in code of menu button, it's only be invisible modify the code and it can be come visible. U can do it urself I'm busy these time and I dont know when I can do it
I'm an idiot... While wrestling my 2 year old to sleep, I applied the mod without renaming the original systemUI.apk... Now systemUI is dead, and I have no backup. Any chance someone could upload the stock AT&T systemUI.apk PLEASE?
I know... N00b move, but I blame the kid... Lol
Edit: extracted the apk from the rom zip and replaced modded apk. No go... Just gonna reflash and start from scratch... Ugh...
N7...'Nuff said...
http://android-gz.com
eugenile said:
wow, this is a great mod. very underated.
im surprised its not more in demand to have a MENU SOFT KEY, the stock navbar uses a lot of space and it can easily fit a softkey button for menu.
thanks again op, maybe you can add a matching menu (three dots) button in the nav bar section.
Click to expand...
Click to collapse
Done it as your request. Check the 1st post.
Thanks a lot,bro! Can I request advanced reboot on power menu?
huatz84 said:
Thanks a lot,bro! Can I request advanced reboot on power menu?
Click to expand...
Click to collapse
U means expanded power menu? For Bell 4.1.2? If yes, I already did and I will upload for u
devilsking said:
U means expanded power menu? For Bell 4.1.2? If yes, I already did and I will upload for u
Click to expand...
Click to collapse
Yeah,bro.. For Bell 4.1.2. Thanks a lot!
huatz84 said:
Yeah,bro.. For Bell 4.1.2. Thanks a lot!
Click to expand...
Click to collapse
Here u are. Flash it with cwm and remember to mount /system before flashing.
I changed some things in my framework-res (lockscreen mod) so if u want stock one, u can use myth tools to make it go back to default
http://d-h.st/Iwt
devilsking said:
Here u are. Flash it with cwm and remember to mount /system before flashing.
I changed some things in my framework-res (lockscreen mod) so if u want stock one, u can use myth tools to make it go back to default
http://d-h.st/Iwt
Click to expand...
Click to collapse
I also like the lockscreen mod. You are awesome,bro!! You can combine all your mods into a new stable ROM.
Here's my screenshot :
great work keep em coming
WOW!! THANK YOU SIR YOU ARE AWESOME!!
this should be implented in all roms for the atrix hd from now on its that awesome!!
How to add PagedView to lockscreen.
As most of you all know the android 4.2+ has implemented an awesome new Lockscreen on wich u can swipe pages to show widgets and such.
Currently i have managed to create working pageview but for now without Widgets.
However you can add some custom stuff though .
i had added DigitalClok -> AnalogClock -> Device Info.
but you would be able to change it like what you want as you can add unlimited LinearLayouts for adding new views.
{
"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"
}
Basicly this mod is very easy to add.
What is inside the resources.zip ?
SwipeLock Smalis for Framework.jar
Basicly what you would need to do is:
Download Resources Attachement.
Extract it
Decompile you’re framework.jar
Go to the extract smali folder from the resources.zip and copy the smali folder to the smali folder of you’re framework.jar.
Compile framework.jar
Now we are going to add it to the frameworks location/allocate the text.
Decompile framework-res.apk
Find a lockscreen layout to you’re likes. (“zzz_keyguard_screen_clockwidget.xml” <- on this one i have NOT tested as in my test app when i used a Lockscreen overlay i couldnt swipe the pages so its likely this one not works but on the GB ones it does
so instead i used “keyguard_screen_tab_unlock.xml” ofcourse you would be able to add this in other lock layouts aswell.
Open the layout you wanted and simply add this line above the clock layout or where you want
I put this code above my clock code ( i setted minheight to 300.0dip so u would be able to swipe it at this height)
Code:
<com.spacecaker.swipelock.ui.SwipeView android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="300.0dip" android:overScrollMode="never">
And below you're clock layout
Code:
</com.spacecaker.swipelock.ui.SwipeView>
So now we have that now we need to put the clock layout inside a LinearLayout
Like this
Code:
<LinearLayout android:orientation="vertical" android:minHeight="300.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true">
[COLOR="Magenta"] <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="30.0dip" android:layout_below="@id/carrier">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBaseline="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>[/COLOR]
</LinearLayout>
So it would end up looking like this:
Code:
<com.spacecaker.swipelock.ui.SwipeView android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="300.0dip" android:overScrollMode="never">
<LinearLayout android:orientation="vertical" android:minHeight="300.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="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="30.0dip" android:layout_below="@id/carrier">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBaseline="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
</LinearLayout>
</com.spacecaker.swipelock.ui.SwipeView>
Now we add another LinearLayout for you're second Page i used the universal AnalogClock like this
Code:
<AnalogClock android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" />
So now we again add a LinearLayout so it ends up looking like this:
Code:
<LinearLayout android:orientation="vertical" android:minHeight="300.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true">
[COLOR="Magenta"]<AnalogClock android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" />[/COLOR]
</LinearLayout>
The end Layout would look like something like this:
Code:
<com.spacecaker.swipelock.ui.SwipeView android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="300.0dip" android:overScrollMode="never">
<LinearLayout android:orientation="vertical" android:minHeight="400.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="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="30.0dip" android:layout_below="@id/carrier">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBaseline="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:minHeight="400.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true">
<AnalogClock android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</com.spacecaker.swipelock.ui.SwipeView>
To Add More pages just add another LinearLayout with something inside
Now Compile framework-res.apk
Now zip the files together and make sure these are set properly.
framework-res.apk inside /system/framework/**
And then ofcourse you’re modified framework.jar inside /system/framework/**
Now you are done
Happy modding
On what roms can u apply this mod ?
Basicly it can be applied to ALL Roms atleast if u know what u are doing.
If you wanna see how i moddified mine take a look here https://github.com/spacecaker/git_status_xp/commit/f85c304142f577e3a933a60ef3d61cbb2c0e89ac
That shows u what changes i did ^^ its on GingerBread SlidingTab Lockscreen just added it for making it look bit easier.
A list of helper,idea givers,and such
RomanBB
Pineapleowl
Mariozawa
BroadComCM
SpaceCaker
Sources? Yes We have!
https://github.com/spacecaker/SwipeLock
Try it without Modding?
Yes you can
In the Screenshots i had used HoloLocker as an example
So you can try it on you"re phone aswell
Note: the minheight might be to much for low res phones so i am sorry if the layout is cut.
looks cool bro... gonna try it soon..
It would be easy to add more items if all worked correctly..
thanks..
i was going to recompile framework.jar and i take this error
WHAT IS THIS?
Just a Potato clock
FEATURES
(COLOR HINTS)
NEW FEATURE
REMOVED
ORIGINAL FEATURE
VERSION
Potato Clock v2.1
Word Clock - Just time in words
All caps Word Clock
Minor bug fixes
New settings style - This one is cool
Potato Clock v2
***** Clock - Potato Edition of Fuzzy Clock (Show exact minutes in words)
All caps *****
Ninja Time removed
All features from v1.1
PREVIOUS CHANGE LOGS
Potato Clock v1.3
Ninja Moves - Ninja Time(Will change the current time to "NOW")
Potato Clock v1.2
Font - Bold|Condensed|Light|Light Italic|Normal|Custom (ttf & otf supported)
Potato Clock v1.1
AM/PM style - Normal|Small|Gone|Custom
Date style - Normal|Small|Gone|Custom
Potato Clock v1 - Initial release
Clock color - Color picker
Clock position - Left|Center|Right|Hide
Font - Bold|Condensed|Light|Light Italic|Normal
AM/PM style - Normal|Small|Gone
Date style - Normal|Small|Gone
Date format - 14 styles too many to mentions|Custom JAVA format
BUGS?
404 NOT FOUND
PM me if you found any bugs
SCREENIES
{
"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"
}
INSTRUCTIONS
Download needed files here.
Download & install Potato Clock settings here.
Extract the needed files.
Decompile your SystemUI.apk
Go to SystemUI.apk/smali then paste the smali in that folder
the smali directory will be
smali/com/potato/systemui/clocks/.SMALI FILES HERE
and the assets folder
SystemUI.apk/assets/.ttf files should be here
Go to res/layout/statusbar.xml
PHP:
<com.potato.systemui.clocks.ClockLeft android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:paddingLeft="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
- This is for Left Clock
PHP:
<com.potato.systemui.clocks.ClockRight android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
- This is for Right Clock
PHP:
<com.potato.systemui.clocks.ClockCenter android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
- This is for Center clock
Put the codes in their right position
(Don't copy my whole statusbar.xml this is for TW 2.3.6)
PHP:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#00000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.potato.systemui.clocks.ClockCenter android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.potato.systemui.clocks.ClockLeft android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:paddingLeft="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="1.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.potato.systemui.clocks.ClockRight android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#000" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="0.0px" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
For those who have Potato Statusbar Gesture mod you can use this for center clock
PHP:
<com.potato.touchbar.TouchMe android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.potato.systemui.clocks.ClockCenter android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.potato.touchbar.TouchMe>
IF YOU ALREADY HAVE POTATO CLOCK JUST PASTE THE SMALI FILES (.smali) in
PHP:
SystemUI.apk\smali\com\potato\systemui\clocks
ISSUES
404 ISSUES NOT FOUND
CREDITS
PotatoInc
MARIOZAWA
pollube31 - 24/7 tester
@Jay_SEAN - 12/2 tester
CYANOGENMOD
iPaulPro
IF YOU LIKE OUR WORK YOU KNOW WHAT TO DO
IF YOU WANT TO USE THIS IN YOUR AWESOME WORK PLEASE SEND ME A PM
AND AT LEAST PRESS THANKS BUTTON
I SUFFER FROM SUPER HEADACHE VERSION 4 WHEN DOING THIS
great mod!!!!!!
vishal1404 said:
great mod!!!!!!
Click to expand...
Click to collapse
Great mod!
But its do not work (Statusbar Force closed) on my LG P713, 4.1.2
Tested in Galaxy Wonder with CM9 rom, thanks for shared this awesome mod
thanks master
the_vanya1 said:
Great mod!
But its do not work (Statusbar Force closed) on my LG P713, 4.1.2
Click to expand...
Click to collapse
Can you attach logcat? Thanks
Sent from my GT-I9300 using Tapatalk
mariozawa said:
Can you attach logcat? Thanks
Sent from my GT-I9300 using Tapatalk
Click to expand...
Click to collapse
My LGSystemUI - https://www.dropbox.com/s/toi7vkcjgq2c4z1/LGSystemUI.apk
the_vanya1 said:
My LGSystemUI - https://www.dropbox.com/s/toi7vkcjgq2c4z1/LGSystemUI.apk
Click to expand...
Click to collapse
Bro logcat not your SystemUI.apk.
BTW there is a new version.
404 font not found when i chose a font
butiti_09 said:
404 font not found when i chose a font
Click to expand...
Click to collapse
Try to choose font from /system/fonts
It has bugs on devices that didn't have internal sdcard
But I'm working on it.
mariozawa said:
Bro logcat not your SystemUI.apk.
BTW there is a new version.
Click to expand...
Click to collapse
I know)
can you tell me the function of custom clock ? and whre i can find the custom java code for this potato clock mod ?
but overall this is a great mod sir, good job :good:
MRPP_mod said:
can you tell me the function of custom clock ? and whre i can find the custom java code for this potato clock mod ?
but overall this is a great mod sir, good job :good:
Click to expand...
Click to collapse
It just let you use custom Java date format.
Check this.
http://www.tutorialspoint.com/java/java_date_time.htm
The code of normal clock is hh:mm
AM/PM not showing in EVO X4,dunno why,maybe because this rom have edt tweaks old ver?
s5830i
you do it for me? phone galaxy ace (s5830i) ...I do turns out wrong.I couldn't do any of them, including all the sharing modes.They were all very beautiful!Where'd you learn to do them?
thank you google translate
I am from turkey...
nice mod! :good: nice work. Im using it in my hyperion 9
galing talaga ng pinoy
sir,can i use it on jb 4.1.2?
and what version of apktool should i use? tia
Sir, may I request for a flashable zip of this mod for Jellybean? Thanks.
Deleted
[/PHP]
work with loliipop?