caution : do not expect exactly same thing please...
Preview :
{
"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 mod is originally posted in Nexus S theme forum.
[MOD] Change ICS Lockscreen to Galaxy Note style
and this is guide for above mod..
-----------------------------------------------------------------------------
1) frameworks_base/core/java/com/android/internal/widget/multiwaveview/MultiWaveView.java
- line 444
from :
Code:
mOuterRing.setAlpha(0.0f);
to :
Code:
mOuterRing.setAlpha([COLOR="Blue"]1.0f[/COLOR]);
- line 728~
from :
Code:
if (activeTarget != -1) {
switchToState(STATE_SNAP, x,y);
float newX = singleTarget ? limitX : mTargetDrawables.get(activeTarget).getX();
float newY = singleTarget ? limitY : mTargetDrawables.get(activeTarget).getY();
moveHandleTo(newX, newY, false);
TargetDrawable currentTarget = mTargetDrawables.get(activeTarget);
if (currentTarget.hasState(TargetDrawable.STATE_FOCUSED)) {
currentTarget.setState(TargetDrawable.STATE_FOCUSED);
mHandleDrawable.setAlpha(0.0f);
}
} else {
switchToState(STATE_TRACKING, x, y);
moveHandleTo(x, y, false);
mHandleDrawable.setAlpha(1.0f);
}
}
to :
Code:
if (activeTarget != -1) {
switchToState(STATE_SNAP, x,y);
float newX = singleTarget ? limitX : mTargetDrawables.get(activeTarget).getX();
float newY = singleTarget ? limitY : mTargetDrawables.get(activeTarget).getY();
moveHandleTo(newX, newY, false);
TargetDrawable currentTarget = mTargetDrawables.get(activeTarget);
[COLOR="blue"]mOuterRing.setState(TargetDrawable.STATE_ACTIVE);[/COLOR]
if (currentTarget.hasState(TargetDrawable.STATE_FOCUSED)) {
currentTarget.setState(TargetDrawable.STATE_FOCUSED);
mHandleDrawable.setAlpha(0.0f);
}
} else {
switchToState(STATE_TRACKING, x, y);
[COLOR="blue"]mOuterRing.setState(TargetDrawable.STATE_INACTIVE);[/COLOR]
moveHandleTo(x, y, false);
mHandleDrawable.setAlpha(1.0f);
}
}
2) in framework-res.apk
- /res/drawable/ic_lockscreen_outerring.xml
to :
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="false" android:state_enabled="true" android:state_active="false" android:drawable="@drawable/jog_tab_left_normal" />
<item android:state_focused="false" android:state_enabled="true" android:state_active="true" android:drawable="@drawable/jog_tab_left_pressed" />
</selector>
(i replaced other unused resources instead of adding new files.)
- /res/layout/keyguard_screen_tab_unlock.xml
to :
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">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="332.0dip">
<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="20" android:snapMargin="@dimen/multiwaveview_snap_margin" android:feedbackCount="3" android:verticalOffset="0.0dip" android:horizontalOffset="0.0dip" />
<TextView android:visibility="gone" 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>
<com.android.internal.widget.DigitalClock android:layout_gravity="left" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginLeft="30.0dip" 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="left" android:orientation="horizontal" android:layout_marginLeft="@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_marginRight="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="left" android:id="@id/status1" android:layout_marginLeft="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:singleLine="true" android:drawablePadding="4.0dip" />
<Space android:layout_gravity="fill" />
<Button android:layout_gravity="left" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginLeft="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="4.0dip" style="?android:attr/buttonBarButtonStyle" />
<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>
- /res/values/arrays.xml
from :
Code:
<array name="lockscreen_targets_with_camera">
<item>@drawable/ic_lockscreen_unlock</item>
<item>@null</item>
<item>@drawable/ic_lockscreen_camera</item>
<item>@null</item>
</array>
<array name="lockscreen_target_descriptions_with_camera">
<item>@string/description_target_unlock</item>
<item>@null</item>
<item>@string/description_target_camera</item>
<item>@null</item>
</array>
to :
Code:
<array name="lockscreen_targets_with_camera">
<item>@drawable/ic_lockscreen_unlock</item>
</array>
<array name="lockscreen_target_descriptions_with_camera">
<item>@string/description_target_unlock</item>
</array>
- and resources (for wvga=hdpi device) : http://www.mediafire.com/?fio9rmc8reic4o9
: extract this zip to /res/drawable-hdpi/ (replace original files)
-----------------------------------------------------------------------------
10 char
1) frameworks_base/core/java/com/android/internal/widget/multiwaveview/MultiWaveView.java
Click to expand...
Click to collapse
where to find this file?
WildeRNS said:
where to find this file?
Click to expand...
Click to collapse
Compile from source
LKNim said:
Compile from source
Click to expand...
Click to collapse
oooo.... maybe someone already done this mod for cm9?
Awesome gonna give it a try on mdpi
herpderp © aint got money to pay to my fish
can u help me ?
i cant find frameworks_base/core/java/com/android/internal/widget/multiwaveview/MultiWaveView.java
even on the source of it galaxyics.com '
i couldnt find
i really want too apply this
could i request u to make it for this
dl link of framework http://www.mediafire.com/download.php?x812a9j12fxo8cg
(CM9)
i hope u can help
just 1 little request
try and report back,also mention the device and os
spacecaker said:
Awesome gonna give it a try on mdpi
herpderp © aint got money to pay to my fish
Click to expand...
Click to collapse
figured out that my pc is damm bad at compiling from source -_-
160 GB 1 gb ram
Ooo, going to try this, hope I don't screw something up
Just flashed, it's awesome. but... to Unlock, Only one point is able to touch:-(
Sent from my Nexus S using XDA
thanks for sharing
Can i use this mod to my CUSTOM ROM?
jun980219 said:
thanks for sharing
Can i use this mod to my CUSTOM ROM?
Click to expand...
Click to collapse
sure.. no problem if you use my work with proper credit given..
Ok, I handled to edit all the files, by the first one: that .java thing; i just copied everything in a notepad++ screen and saved it as .java, but I don't know where I have to put that file.
So question 1: Where do i have to put the MultiWaveView.java file?
And I hahve opened the framework-res.apk with apktool, but apktool gives an error when I type: apktool b out
(out=direction where I have the unpacked framework-res.apk)
So question 2: how to put the arrays.xml, ic_lockscreen_outerring.xml and keyguard_screen_tab_unlock.xml in the framework-res.apk?
Thanks in advanced
Wow, too complicated for me
sidewalk_ said:
Wow, too complicated for me
Click to expand...
Click to collapse
i know, i had Same thing when I saw it for the first tome
Sent from my GT-S5660 using xda premium
plzz post guide edit framework.jar
i dont know use source
thanks
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...
WP7(Mango?) app switcher is 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"
}
and i made similar thing by modifying ics app switcher layout.
preview :
flashable mod is originally posted in nexus s theme forum.
[MOD] Change ICS App Switcher to Windows Phone 7 Style
this mod is related to framework-res.apk and SystemUI.apk so making universal version for any devices is difficult. so i write this simple guide for other rom / device users.
-----------------------------------------------------------------------------
* framework-res.apk
- /res/values/dimens.xml : change thumbnail size to..
Code:
<dimen name="thumbnail_height">305.0dip</dimen>
<dimen name="thumbnail_width">192.0dip</dimen>
these values are wvga devices only. if you have mdpi or xhdpi device, you have to adjust these values suitable to your screen size.
* SystemUI.apk
- /res/values/bools.xml
Code:
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
- /res/values/drawables.xml
Code:
<item type="drawable" name="status_bar_recents_background_solid">#ff33b1e1</item>
- /res/layout/status_bar_no_recent_apps.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
- /res/layout-port/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:foreground="@drawable/recents_thumbnail_fg" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="192.0dip" android:layout_height="305.0dip" />
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="0.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
</FrameLayout>
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="100.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
- /res/layout-port/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
and you'd better to edit landscape layout too..
- /res/layout-land/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="115.0dip" android:layout_height="183.0dip" />
</FrameLayout>
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" />
</RelativeLayout>
</FrameLayout>
- /res/layout-land/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
-----------------------------------------------------------------------------
Thanks to brucekey in rootzwiki
(this mod is based on his WEBAOKP mod.)
-----------------------------------------------------------------------------
Looks good bro!! I hope you don't mind BUT I put this mod in my thread over in the EVO section. I gave you full credit for this MOD but I just wanted to share it with my peeps over there.....THANKS AGAIN for everything that you do in the Android community!
beautiful...
Doesn't work
I am unable to decompile and compile with apktool, apk manager and APK multitool.
Can I upload the framework-res.apk and systemui.apk and someone do it for me?
It might be something about Windows 8 that the sdk doesn't like
Hi, is there any way how to make launcher show up in this taskswitcher? Thanks
can you port for samsung galaxy s2 please
nice!!!
Sent from my LT18i
I will really love to have this mod....but can anyone tell me plz what will be the values for qvga screen....????
Thanks
Sent from my GT-I5500 using Tapatalk
Please?
Could someone compile these two for me?
http://www.mediafire.com/download.php?1cr5p09pxcyamw7
Made it work after a while. is there a way to make the thumbnail look less blurry?
evilisto, is there anyway to move the text for the pages down? I resized my pages because of my screen resolution(540x960). But as you can see they are not below the pages. Also can you change the color of the text? Thanks for the write up, I like the a lot all ready.
netwokz said:
evilisto, is there anyway to move the text for the pages down? I resized my pages because of my screen resolution(540x960). But as you can see they are not below the pages. Also can you change the color of the text? Thanks for the write up, I like the a lot all ready.
Click to expand...
Click to collapse
wanna share wallpaper?
herpderp © aint got money to pay to my fish
spacecaker said:
wanna share wallpaper?
herpderp © aint got money to pay to my fish
Click to expand...
Click to collapse
Lol, yeah np. http://i.imgur.com/Bduqs.jpg
whats the dip of mdpi screens i cant figure that out
herpderp © aint got money to pay to my fish
spacecaker said:
whats the dip of mdpi screens i cant figure that out
herpderp © aint got money to pay to my fish
Click to expand...
Click to collapse
Do you mean DPI? If so then I found THIS article. It states MDPI is 160.
netwokz said:
evilisto, is there anyway to move the text for the pages down? I resized my pages because of my screen resolution(540x960). But as you can see they are not below the pages. Also can you change the color of the text? Thanks for the write up, I like the a lot all ready.
Click to expand...
Click to collapse
see this line :
- /res/layout-port/status_bar_recent_item.xml
Code:
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" [COLOR="Blue"][B]android:layout_marginTop="100.0dip"[/B][/COLOR] android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
android:layout_marginTop="100.0dip"
if you use bigger value in this, app label text goes down.
spacecaker said:
whats the dip of mdpi screens i cant figure that out
Click to expand...
Click to collapse
1.0dip is 1 pixel on lcd.density=160. so if your device's default lcd.density is 240, 1.0dip is 1.5 pixel on your phone screen.
then you can calculate all values for your screen size..
hmm i hate dip
cant get the good ones even after calculating
what if i do your dip : 66%
herpderp © aint got money to pay to my fish
spacecaker said:
hmm i hate dip
cant get the good ones even after calculating
what if i do your dip : 66%
Click to expand...
Click to collapse
that's not a good idea because screen ratio is different..
evilisto said:
that's not a good idea because screen ratio is different..
Click to expand...
Click to collapse
damm -_-
i never understand dip
herpderp © aint got money to pay to my fish
can u add the dip for mdpi xhdpi and ldpi ?
herpderp © aint got money to pay to my fish
OP, what is the dip of S II at 240 dpi (stock value) ??
Due to the request from few dev/cookers, i would like to show, how this mod can be achieved!
{
"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"
}
Moderators: Before people scream on me, you can move this thread, if doesn't belongs here!
Decompile both SystemUI and framework-res,apk using apktool
framework-res.apk
- /res/values/dimens.xml : change thumbnail size to..
Code:
<dimen name="thumbnail_height">305.0dip</dimen>
<dimen name="thumbnail_width">192.0dip</dimen>
Change the dip values the way you want, but for galaxy note the above dip's fits correctly.
After this compile back and this is the only chnage needs to be done in framework-res.apk
* SystemUI.apk
- /res/values/bools.xml
PHP:
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
- /res/values/drawables.xml
PHP:
<item type="drawable" name="status_bar_recents_background_solid">#ff33b1e1</item>
Now you can change any background you want, by modifying the values of #ff33b1e1...but i prefer this value #b3000000
- /res/layout/status_bar_no_recent_apps.xml
Replace the entire code with this one!
PHP:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<Button android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_gravity="center" android:id="@id/no_recent_apps_launch_button" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="55.0dip" android:text="@string/status_bar_recent_launch_task_manager_title" />
<TextView android:textSize="20.0dip" android:textColor="@android:color/holo_blue_light" android:gravity="center_horizontal" android:layout_gravity="center" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
- /res/layout-port/status_bar_recent_item.xml
Replace the entire code with this one!
PHP:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:foreground="#00000000" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:paddingTop="60.0dip" android:layout_width="212.0dip" android:layout_height="455.0dip" android:layout_marginTop="30.0dip" android:scaleType="centerInside" />
</FrameLayout>
<ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="405.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
- /res/layout-port/status_bar_recent_panel.xml
Replace the entire code with this one
PHP:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerVertical="true">
<ImageView android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="0.0dip" android:src="@drawable/status_bar_recents_background" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<TextView android:textSize="20.0dip" android:textColor="#ffe5e5e5" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="45.0dip" android:text="@string/recent_apps_title" />
<Button android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_gravity="bottom|center" android:id="@id/recents_launch_button" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_recent_launch_task_manager_title" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
- /res/layout-port/tw_status_bar_recent_panel.xml
Replace the entire code with this one
PHP:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerVertical="true">
<ImageView android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="0.0dip" android:src="@drawable/status_bar_recents_background" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<TextView android:textSize="20.0dip" android:textColor="#ffe5e5e5" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="45.0dip" android:text="@string/recent_apps_title" />
<Button android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_gravity="bottom|center" android:id="@id/recents_launch_button" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_recent_launch_task_manager_title" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
UP TO HERE WE HAVE DONE THE CODING FOR PORTRAIT MODE, FOR LANDSCAPE FOLLOW THE BELLOW STEPS
- /res/layout-land/status_bar_recent_item.xml
Replace the entire code with this one!
PHP:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:foreground="#00000000" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="120.0dip" android:layout_height="320.0dip" android:scaleType="centerInside" />
</FrameLayout>
<ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="225.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="20.0dip" android:maxHeight="20.0dip" />
<TextView android:textSize="20.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
- /res/layout-land/status_bar_recent_panel.xml
Replace the entire code with this one!
PHP:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerVertical="true">
<ImageView android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="0.0dip" android:src="@drawable/status_bar_recents_background" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<TextView android:textSize="20.0dip" android:textColor="#ffe5e5e5" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="15.0dip" android:text="@string/recent_apps_title" />
<Button android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_gravity="bottom" android:id="@id/recents_launch_button" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_recent_launch_task_manager_title" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
- /res/layout-land/tw_status_bar_recent_panel.xml
Replace the entire code with this one!
PHP:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerVertical="true">
<ImageView android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="0.0dip" android:src="@drawable/status_bar_recents_background" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<TextView android:textSize="20.0dip" android:textColor="#ffe5e5e5" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="15.0dip" android:text="@string/recent_apps_title" />
<Button android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_gravity="bottom" android:id="@id/recents_launch_button" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_recent_launch_task_manager_title" />
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
Now open res/values/id.xml and add this one at the end of the file!
PHP:
<item type="id" name="no_recent_apps_launch_button">false</item>
Now open res/values/strings.xml and add this one at the end of the file!
PHP:
<string name="recent_apps_title">Recent apps</string>
Now compile the systemui.apk and you will have windows style task manager / recent apps...if you would like to have the sense style with reflection background, then please download the file from here which i made it for criskelo (http://forum.xda-developers.com/showthread.php?p=27593864#post27593864) and compare the code, you will know how to get it. The code is located in
systemui\smali\com\android\systemui\recent\RecentsPanelView.smali
of @redroid done lot of hard work to find the code , LOL...you can find the code from here
http://forum.xda-developers.com/showpost.php?p=28701323&postcount=28
Credits!
To all the developers around here and my special thanks to @evilisto
Feel Helped, Press Thanks!
Nice ))
now something that belongs here...thanks mate!
@grgsiocl This is fantastic. I realised that you only have the cwm for Criskelo's rom. I was hoping that you could be kind enough to create the cwm for other roms, maybe Cassie's XtraliteRom ICS 4.5 and SVA ICS 5.2? Thanking you in advance.
I remember seeing in nexus thread that someone had ported windows mango to it.
Is it possible to do it here too? ??
zard said:
@grgsiocl This is fantastic. I realised that you only have the cwm for Criskelo's rom. I was hoping that you could be kind enough to create the cwm for other roms, maybe Cassie's XtraliteRom ICS 4.5 and SVA ICS 5.2? Thanking you in advance.
Click to expand...
Click to collapse
just now created a mod for cassies and sent a PM to the developer..let me wait for his nod though!
Rulinglionadi said:
I remember seeing in nexus thread that someone had ported windows mango to it.
Is it possible to do it here too? ??
Click to expand...
Click to collapse
may be possible, but i am not in to that at the moment...it would be feasible for us to port jellybean as early as possible...frayyab has already made working (almost) jelly bean for s3, so we need to wait till he completes...not many of here are int in porting windows OS
grgsiocl said:
may be possible, but i am not in to that at the moment...it would be feasible for us to port jellybean as early as possible...frayyab has already made working (almost) jelly bean for s3, so we need to wait till he completes...not many of here are int in porting windows OS
Click to expand...
Click to collapse
true...but i see MIUI threads coming up...would be nice to mix MIUI,JB and Windows 8 together... :laugh:
Nice to see this...any way im also from kurnool....can you give me your gtalk or fb username. . .
grgsiocl said:
just now created a mod for cassies and sent a PM to the developer..let me wait for his nod though!
Click to expand...
Click to collapse
Still no response from cassies developer? Spent my time to setup my Note with his latest rom the way I liked it and now, it's just missing this mod. ;-)
Sent from my GT-N7000 using Tapatalk 2
grgsiocl said:
just now created a mod for cassies and sent a PM to the developer..let me wait for his nod though!
Click to expand...
Click to collapse
I hear hes working on the next update...so it might be added in it.
zard said:
Still no response from cassies developer? Spent my time to setup my Note with his latest rom the way I liked it and now, it's just missing this mod. ;-)
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
i have sent a PM, but he is pretty busy in making a ROM for s3, so he might include it in next version...personally i have note tested, but you want to test , then flash the zip from recovery!
http://www.mediafire.com/?11f39377ozwrcvz
Please do make a backup of ROM incase if something goes wrong which is very rare...or else make a copy of my zip and rename something like original_cassie and copy the systemui.apk and framework-res.apk in the corresponding folders. if the my mod doesnt work, then you can flash back the original zip!
grgsiocl said:
i have sent a PM, but he is pretty busy in making a ROM for s3, so he might include it in next version...personally i have note tested, but you want to test , then flash the zip from recovery!
http://www.mediafire.com/?11f39377ozwrcvz
Please do make a backup of ROM incase if something goes wrong which is very rare...or else make a copy of my zip and rename something like original_cassie and copy the systemui.apk and framework-res.apk in the corresponding folders. if the my mod doesnt work, then you can flash back the original zip!
Click to expand...
Click to collapse
Cool, works fine, just that the 15 toggles mod from http://forum.xda-developers.com/showthread.php?t=1620625 will not work anymore. Guess both mods are using the same apks. Any possibility of helping to add to the all blue 15 toggles mod? Thanks.
Sent from my GT-N7000 using Tapatalk 2
zard said:
Cool, works fine, just that the 15 toggles mod from http://forum.xda-developers.com/showthread.php?t=1620625 will not work anymore. Guess both mods are using the same apks. Any possibility of helping to add to the all blue 15 toggles mod? Thanks.
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
Ok thanks for the feedback...I will include it by today evening...till that time, you can flash your original file
grgsiocl said:
Ok thanks for the feedback...I will include it by today evening...till that time, you can flash your original file
Click to expand...
Click to collapse
No worries. I am keeping your sense mod and waiting for your update. The sense mod is used more frequently than the 15 toggles mod. ;-)
Thanks.
Sent from my GT-N7000 using Tapatalk 2
grgsiocl said:
Ok thanks for the feedback...I will include it by today evening...till that time, you can flash your original file
Click to expand...
Click to collapse
zard said:
No worries. I am keeping your sense mod and waiting for your update. The sense mod is used more frequently than the 15 toggles mod. ;-)
Thanks.
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
Looks like something might have crop up, hope it's not too serious. Hope you can resolve it soon. Thanks.
Sent from my GT-N7000 using Tapatalk 2
zard said:
Looks like something might have crop up, hope it's not too serious. Hope you can resolve it soon. Thanks.
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
Have asked the 15 toggles developer to help out. Hope he will help. Thanks.
http://forum.xda-developers.com/showthread.php?p=28214909
Sent from my GT-N7000 using Tapatalk 2
nice copy paste
Gues instead of only my ROM every rom will be the same again..
Robbie Hood said:
nice copy paste
Gues instead of only my ROM every rom will be the same again..
Click to expand...
Click to collapse
its even the same in goa rom also my friend(check the ver 2.0)...just sharing the mod and also the mod was ported from nexus...you can search the xda, you will get the results...well yes i did mentioned in the other thread, that only code i obtained from the alliance rom is to change the background image, by changing the nandroid11.png which is located in systemui....that also i changed it and assigned the code to take the background of status bar solid background......no offence
i meant it might be nice to link where you got it from instead of makin it look like you made this
but copy paste for popularity seems hot
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