[GUIDE][ICS][JB] Add shortcuts on Xperia JB lockscreen - Sony Xperia P, U, Sola, Go

{
"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"
}
That's how it looks
It works with Xperia JB Lockscreen on Android 4.0.4 and 4.1.2 (confimed)
This guide is for skilled users.
HERE you may download my lockscreen and use it like template or basis
Lets start
Use apktool version 2 (beta) to prevent error while compilling
1. Decompile your UxpNxtLockScreen.apk
2. Find the file main.xml in res/layout folder and add the lines marked red
Lines those are marked blue you must add only if you dont have RelativeLayout in your main.xml. Its important.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.sonyericsson.lockscreen.generic.LockScreenRootView android:id="@id/somc_blinds_lockscreen_root" android:layout_width="fill_parent" android:layout_height="fill_parent" android:directionality="leftToRight"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/background_image" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" />
[COLOR="red"]<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
[COLOR="RoyalBlue"]<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">[/COLOR]
<LinearLayout android:orientation="vertical" android:id="@id/alarm_and_charge" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginTop="8.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:directionality="leftToRight">
<include layout="@layout/top_left_next_alarm" />
<include layout="@layout/charging_status" />
</LinearLayout>
<TextView android:textSize="@dimen/lockscreen_text_size_small" android:textColor="#ffffffff" android:gravity="right|center" android:id="@id/carrier" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8.0dip" android:layout_marginRight="8.0dip" android:maxWidth="@dimen/lockscreen_carrier_text_max_width" android:text="" android:maxLines="3" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<include layout="@layout/w_clock" />
<com.sonymobile.lockscreen.topslider.TopSlider android:id="@id/top_slider" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/lockscreen_widget_slider_margin_top" android:layout_alignParentTop="true" android:directionality="none" />
<com.sonymobile.lockscreen.topslider.HorizontalWidgetSlider android:id="@id/horizontal_widget_slider" android:focusable="true" android:focusableInTouchMode="true" android:scrollbars="none" android:fadingEdge="none" android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignTop="@id/top_slider" android:layout_alignBottom="@id/top_slider" android:directionality="none">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/horizontal_widget_slider_layout" android:focusable="true" android:focusableInTouchMode="true" android:clipChildren="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:directionality="none">
<include layout="@layout/music_controls" />
<View android:id="@id/top_slider_placeholder_widget" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
</com.sonymobile.lockscreen.topslider.HorizontalWidgetSlider>
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/top_slider" android:layout_alignBottom="@id/top_slider" android:layout_centerHorizontal="true">
<ProgressBar android:id="@id/camera_start_progress" android:padding="20.0dip" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:progressDrawable="@drawable/camera_start_progressbar" />
</LinearLayout>
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="center" android:id="@id/screenLockMsg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="8.0dip" android:shadowColor="@color/text_shadow_color" android:shadowDx="@integer/text_shadow_dx" android:shadowDy="@integer/text_shadow_dy" android:shadowRadius="@integer/text_shadow_radius" android:layout_alignParentBottom="true" />
<com.sonyericsson.lockscreen.generic.LockScreenNonTouchView android:id="@id/non_touch_view" android:background="#00000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<include android:id="@id/hint" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/lockscreen_hint_bottom_margin" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" layout="@layout/unlock_hint" />
[COLOR="RoyalBlue"]</RelativeLayout>[/COLOR]
[COLOR="red"]<LinearLayout android:gravity="center" android:layout_gravity="bottom" android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="@dimen/botbar_height">
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".DialerEntryActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.android.socialphonebook" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_call_icon" android:scaleType="center" />
</RelativeLayout>
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".activities.SocialPhonebookActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.android.socialphonebook" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_contact_icon" android:scaleType="center" />
</RelativeLayout>
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" android:tag=".ui.ConversationListActivity" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" android:contentDescription="com.sonyericsson.conversations" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/botbar_conversations_icon" android:scaleType="center" />
</RelativeLayout>
</LinearLayout>
</FrameLayout>[/COLOR]
</com.sonyericsson.lockscreen.generic.LockScreenRootView>
3. Find the file dimens.xml in res/values and add the lines marked red
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="set_button_width">220.0dip</dimen>
<dimen name="lockscreen_widget_slider_margin_top">93.0dip</dimen>
<dimen name="lockscreen_hint_bottom_margin">190.0dip</dimen>
<dimen name="lockscreen_text_size_small">12.0dip</dimen>
<dimen name="lockscreen_text_size_medium">14.0sp</dimen>
<dimen name="lockscreen_text_size_medium_large">16.0dip</dimen>
<dimen name="lockscreen_text_size_large">76.0dip</dimen>
<dimen name="lockscreen_text_padding">0.0dip</dimen>
<dimen name="lockscreen_carrier_text_max_width">168.0dip</dimen>
<dimen name="lockscreen_owner_margin_top">6.0dip</dimen>
[COLOR="Red"]<dimen name="botbar_width_icon_bg">100.0dip</dimen>
<dimen name="botbar_height">80.0dip</dimen>[/COLOR]
</resources>
4. Add icons from archive to res/drawable-hdpi (it depends on your display's resolution, be attentive)
ICONS
5. Unpack archive in smali folder
SMALI
Must be UxpNxtLockScreen\smali\aaa\sk0t\ui\MultyBtn.smali
6. Compile your lockscreen
Thats all
If you want to change shortcuts here is explaining:
Code:
<RelativeLayout android:layout_width="@dimen/botbar_width_icon_bg" android:layout_height="fill_parent">
<aaa.sk0t.ui.MultyBtn android:layout_gravity="center" [COLOR="SeaGreen"]android:tag[/COLOR]="[B].ui.ConversationListActivity[/B]" android:background="#00000000" android:layout_width="70.0dip" android:layout_height="70.0dip" [COLOR="DarkOrchid"]android:contentDescription[/COLOR]="[B]com.sonyericsson.conversations[/B]" />
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]botbar_conversations_icon[/COLOR]" android:scaleType="center" />
</RelativeLayout>
android:contentDescription - search in AndroidManifest.xml of your apk (package parameter)
android:tag - search in AndroidManifest.xml (see parameter android:name, be attentive, you need main activity of app)
botbar_conversations_icon - icon of your shortcut
Thanks maks398tim for GUIDE
I just translated it and shared on XDA

If it works for you - please, write about it in this thread

It can be useful

Related

[MOD][TUT] Say Hello To Holo!

This is a TICKLEFISH TUTORIAL!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I was having a look through my SystemUI.apk the other day and spotted something odd. I have a Mini Pro which is a MDPI device..but I have a 'layout-sw600dp' folder as well as the ordinary 'layout' folder. And sw600dp is for tablets..
It's tricky for developers to make a completely new app for each and every device. It takes time and costs money. So sometimes bits of code and icons are left behind. And the great thing is we can use that code for ourselves.
So why have I made this thread? Well, buried in that folder is the code for the holo clock..
This is the standard clock:
(it's an old picture, don't hold it against me!)
This is the holo clock:
It can even be used in the expanded notifications screen:
(this is done with serajr's mod. You've already checked that out, haven't you?)
So how do we get this tablet clock onto our phones? Well, you need to have a layout-sw600dp folder in your SystemUI.apk and you need to have this code in status_bar_notification_area.xml:
<com.android.systemui.statusbar.tablet.HoloClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="3.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="40.0sp" android:id="@id/time_solid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />​</com.android.systemui.statusbar.tablet.HoloClock>
Click to expand...
Click to collapse
Now all you need to do is copy this code, paste it into a suitable file in your layout folder and adjust some of the parameters to fit. Obviously, this isn't for beginners, but you'd be surprised how close to a noob you can be and still do this stuff.
This is my modded status_bar.xml which got me the layout above:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView androidrientation="vertical" android:background="@drawable/status_bar_custom_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout androidrientation="horizontal" android:id="@id/icons" androidaddingLeft="6.0dip" androidaddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout androidrientation="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" androidrientation="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" androidrientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stat_no_sim" androidaddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center" androidrientation="horizontal" android:id="@id/signal_battery_cluster" androidaddingLeft="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" androidaddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />​</LinearLayout>
<com.android.systemui.statusbar.tablet.HoloClock android:id="@+id/HOLOclock" android:layout_width="wrap_content" android:layout_height="fill_parent" >
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="30.0sp" android:id="@id/time_solid" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:singleLine="true" />​</com.android.systemui.statusbar.tablet.HoloClock>
</LinearLayout>
<LinearLayout androidrientation="horizontal" android:id="@id/ticker" androidaddingLeft="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" androidaddingTop="2.0dip" androidaddingRight="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>
Click to expand...
Click to collapse
And this is for modding serajr's expanded screen:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@id/header" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<RelativeLayout android:id="@id/datetime" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height">
<View android:gravity="top|left|center" android:id="@id/systemui_preferences_menu_anchor" android:layout_width="1.0dip" android:layout_height="1.0dip" />
<com.android.systemui.statusbar.tablet.HoloClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:id="@id/time_solid" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textSize="42.0sp" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_gravity="center" android:gravity="center" android:layout_marginLeft="2.0dip" android:layout_marginRight="2.0dip"/>​</com.android.systemui.statusbar.tablet.HoloClock>
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:gravity="left|center" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="2.0dip" android:layout_marginRight="2.0dip" android:maxLines="2" android:singleLine="false" android:layout_toRightOf="@id/clock" />
<ViewFlipper android:id="@id/header_flipper" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="2.0dip" android:layout_alignParentRight="true"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:id="@id/flip_to_quickpanel_button" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="3.0dip" android:src="@drawable/ic_notify_quicksettings" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_desc_quick_settings" />
<ImageView android:id="@id/clear_all_button" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_toLeftOf="@id/flip_to_quickpanel_button" android:contentDescription="@string/accessibility_clear_all" />​</RelativeLayout>
<RelativeLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:id="@id/flip_to_notifications_button" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="3.0dip" android:src="@drawable/ic_notifications" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_notifications_button" />​</RelativeLayout>​</ViewFlipper>​</RelativeLayout>​</LinearLayout>
Click to expand...
Click to collapse
Now, at this point, you may be asking yourself quite why you should be worried about this. It's only another clock after all. Or you might have a rom that doesn't have the HoloClock in it so you may be asking what this has to do with you.
Well...this shows you that it's worth looking into your files just to see what's there. You never know, there might be something hidden away in there that you can take full advantage of!
So have a look around, open your xml files, do a little experimenting and see if you can make your phone look better with code you already had without you knowing..
Yeaah great tutorial
thanks
Keep modding brov....
i guess dis will work on my upcomming Xperia Sola
That´s it bro... and congrats about the thread! :good:
Try to "dex2jar" SystemUI classex.dex and take a look at their java sources, you´ll find more stuff yet that you can´t even imagine!!
serajr said:
That´s it bro... and congrats about the thread! :good:
Try to "dex2jar" SystemUI classex.dex and take a look at their java sources, you´ll find more stuff yet that you can´t even imagine!!
Click to expand...
Click to collapse
Doesn't dex2jar give incomplete code though?

[q] help me move status bar clear button?

Hi I themed my GB status bar to look kinda like an ICS/JB one but I really want some help regarding this clear button..
{
"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"
}
https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-snc6/179146_670786386271600_1126134022_n.jpg
I really want to move the clear button to the rightmost side.. I've tried adding androidaddingRight and marginRight and it does move to the right but not to the rightmost corner.. And if I just use padding there are times when the clear button shrinks when the date and time on the expanded view is longer.. Can anyone help me on this?
btw here's my status_bar_expanded.xml
HTML:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/carrier_bar_second_sub" android:background="@drawable/bg_panel" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:textSize="0.0sp" android:textColor="#00000000" android:gravity="right|center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/clear_button" android:paddingLeft="30.0dip" android:paddingRight="3.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="10.0dip" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:singleLine="true" android:layout_weight="1.0" />
<TextView android:textSize="0.0sp" android:textColor="#00000000" android:gravity="right|center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button_fade" android:background="@drawable/clear_button" android:paddingLeft="30.0dip" android:paddingRight="3.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="10.0dip" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:layout_weight="1.0" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="@drawable/stat_bar_color" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.SwitchControlPanel android:id="@id/switch_control_panel" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff0099cc" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff0099cc" android:id="@id/ongoingTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff0099cc" android:id="@id/latestTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>

[Q] [q] help me move status bar clear button?

Hi I themed my GB status bar to look kinda like an ICS/JB one but I really want some help regarding this clear button..
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I really want to move the clear button to the rightmost side.. I've tried adding androidaddingRight and marginRight and it does move to the right but not to the rightmost corner.. And if I just use padding there are times when the clear button shrinks when the date and time on the expanded view is longer.. Can anyone help me on this?
btw here's my status_bar_expanded.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/carrier_bar_second_sub" android:background="@drawable/bg_panel" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:textSize="0.0sp" android:textColor="#00000000" android:gravity="right|center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/clear_button" android:paddingLeft="30.0dip" android:paddingRight="3.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="10.0dip" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:singleLine="true" android:layout_weight="1.0" />
<TextView android:textSize="0.0sp" android:textColor="#00000000" android:gravity="right|center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button_fade" android:background="@drawable/clear_button" android:paddingLeft="30.0dip" android:paddingRight="3.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_marginLeft="10.0dip" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:layout_weight="1.0" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="@drawable/stat_bar_color" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.SwitchControlPanel android:id="@id/switch_control_panel" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff0099cc" android:id="@id/noNotificationsTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff0099cc" android:id="@id/ongoingTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Title" android:textColor="#ff0099cc" android:id="@id/latestTitle" android:background="@drawable/shade_header_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>

[GUIDE] How To Add A Custom Image Or Text To The Top Left Of Status Bar - 09 Oct 13

Two Ways To Add Custom Strings To Status Bar​
Method 1 - How To Add Text To The Top Left Of Status Bar​
{
"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"
}
Follow the guide by enricocid
http://forum.xda-developers.com/showthread.php?t=2440715
Method 2 - How To Add A Custom Image To The Top Left Of Status Bar​
So people wanted to know how to add a custom image to the top left of their status bar - Well there is a really easy way to do it and it will look something like the screenshot
So here is how to do it
1. Create a png or mod a png you have found in an image editor and call it statusbarlogo.png - You want to create it so its size is 20 pixels in hight and width is up to you but the wider it is the more of the status bar it will take up (the total width of the status bar is I think 320 pixels)
2. Decompile SystemUI.apk with apktool (dont ask me how - if you need to know there is a link in my sig to guide)
3. open res/layout/Status_bar.xml with notpad++
4. Under the following line
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
place
Code:
<TextView android:background="@drawable/statusbarlogo" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
5. Place statusbarlog.png that you have created in res/drawable-ldpi
6. Recompile
7. Delete the compiled apk
8. Unzip the original unmoddifed SystemUI.apk
9. Copy META-INF and AndroidManifest.xml and paste them to YourDecompiledFolder/build/apk
10. Recompile the folder again
11. Put in a Flashable Zip and Flash in CWM with System Mounted
For some reason mine is showing on the right next to wifi signal
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" 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_alignParentStart="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
[COLOR="Red"]<TextView android:background="@drawable/batman_logo" android:gravity="left" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />[/COLOR]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/dock_battery_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_battery_cluster_padding" android:layout_marginEnd="@dimen/status_bar_battery_cluster_text_margin" />
<ImageView android:id="@id/dock_battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="@dimen/status_bar_battery_cluster_padding" />
<com.android.systemui.statusbar.policy.CircleDockBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_dock_battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="@dimen/status_bar_battery_cluster_padding" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_battery_cluster_padding" android:layout_marginEnd="@dimen/status_bar_battery_cluster_text_margin" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="@dimen/status_bar_battery_cluster_padding" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="@dimen/status_bar_battery_cluster_padding" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="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:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<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>
TopDroid said:
For some reason mine is showing on the right next to wifi signal
Click to expand...
Click to collapse
I don't recognise that status bar layout from a galaxy y rom
All I can suggest is move where you have placed the @drawable value to somewhere else as it's within the wrong linear layout
I have Galaxy SL. I figured it out and did it. Thanks anyways!
Sent from my GT-I9003 using Tapatalk
TNKS!!
Working.!
working perfectly
oh i forgot one question
how to make this text running from left to right... like marquee text
Will work on lollipop?
how do I turn on and off, the image displayed

[Q&A] [GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones...

Q&A for [GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones...
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [GUIDE] [MODS] Collection of mods for all gingerbread[2.3] phones.... If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
lokeshsaini94 said:
6. Carrier logo in bottom of status bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line and remove it
Code:
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:layout_gravity="center_vertical" android:id="@id/carrier_label" 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" />
Save the file and close it. now open status_bar_tracking.xml with notepad++
search for this line
Code:
<ImageView android:layout_gravity="bottom" android:id="@id/close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
replace above line with this line
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
</LinearLayout>
Save the file and close it.
The whole status_bar_expanded.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<TextView android:textSize="14.0dip" android:textColor="@color/status_bar_clear_all_button_text" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="@color/notification_header_text_color" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:id="@id/title_bar_shadow" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
and The whole status_bar_tracking.xml would look like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:id="@id/tracking_background" android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/carrier_label_background" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="@color/status_bar_carrier_label_text" android:gravity="center_horizontal" android:paddingBottom="1.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" />
</LinearLayout>
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
Now compile back apk file and push back to system/app.
7. Add settings shortcut in status bar
GO HERE​
8. Jelly bean style Date, Time and Day on Status Bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\layout\ and open status_bar_expanded.xml with notepad++
Search for this line
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
Replace above line with this line
Code:
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
Save the file and close it.
Download Jelly.zip from attachments of this post
Extract jelly.zip and copy two files from jelly.zip to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
Now compile back apk file and push back to system/app.
{
"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"
}
9. Add Recent App shortcut in status bar
Decompile systemui.apk with apktool or similar.
Go to SystemUI.apk\res\values\ and open ids.xml with notepad++
Add this line in end of code but before </resources>
Code:
<item type="id" name="recent_app_button">false</item>
Now go to SystemUI.apk\res\layout\ and open statusbar_expanded.xml with notepad++
Search for 'clear' and whole code will be like this or different
Code:
<Button android:textSize="15.0sp" android:id="@id/clear_all_button" android:paddingRight="6.0dip" android:layout_width="46.0dip" android:layout_height="46.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" style="@style/Clear.Buttons" />
Add this line above the code mentioned above
Code:
<com.android.systemui.statusbar.RecentAppButton android:textSize="10.0dip" android:id="@id/recent_app_button" android:background="@drawable/btn_recent_app" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_toRightOf="@id/settings_button" />
Save the file and close it.
Download sourcei.zip from attachments of this post
Extract sourcei.zip and copy RecentAppButton.smali to SystemUI.apk/smali/com/android/systemui/statusbar/(here)
and copy btn_recent_app.9.png to SystemUI.apk\res\drawable-mdpi\(here)
Now compile back apk file and push back to system/app.
10. Jelly Bean 4.2.2 Status bar on Gingerbread.
Screenshots:
Guide:
Go Here​
Click to expand...
Click to collapse
Can I know how to add brightness slider in notification bar please? ??

Categories

Resources