How to Add BRIGHTNESS SLIDER TO NOTIFICATION PANEL for CM9 & CM10
Hi..Hi..Hello XDA , especially for Developer only
I want to share to you all how to add brigtness slider to notification panel for your Devices running CyanogenMod 9 & 10
Basically the guide is for Gingerbread, and I use all smali file and code from here http://forum.xda-developers.com/showthread.php?t=2152370
so full credit goes to evanlocked
I just made some change and fix to suit for Device running CM9 & CM10
WARNING !!!
But there is a little bug on this Mod, if you enable Automatic Brightness from your SETTINGS - DISPLAY -BRIGHTNESS - , the Brightness bar will dissappear from notification panel, and never want to show again, so make sure before and after applying this mod, never to do that
SEE THE SCREENSHOT :
{
"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"
}
If you can see, there is an Automatic brightness check box,
and the check box is only a fake check box, doesn't have accessibility to access Automatic brightness of our Device. so you are free to tick/check list it, and brightness slider will not dissapear.
ok lets go to Guide:
first of all need some requirement for this MOD-GUIDE
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
STEP 1
Decompile your SytemUI.apk, go to
res/values/ids.xml
and add this line to the end
Code:
<item type="id" name="automatic">false</item>
NEXT - STEP -2
res/values/strings.xml
Add these two lines to the end
Code:
<string name="brightness_settings_automatic">AUTO</string>
<string name="brightness_settings_title" />
NEXT - STEP -3 for CM10
res/layout/status_bar_expanded.xml
and add the RED line code
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_widget_height" />
[COLOR="Red"]<include layout="@layout/adi_brightness" />[/COLOR]
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" 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="fill_parent" android:overScrollMode="always">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</LinearLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" android:src="@drawable/status_bar_close" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
NEXT - STEP -3 for CM9
add the RED LINE
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" 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 android:orientation="vertical" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
<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" />
<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" />
<ImageView android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
[COLOR="Red"]<include layout="@layout/adi_brightness" />[/COLOR]
</LinearLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</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.phone.ExpandedView>
NEXT - STEP -4
FOR CM9, YOU JUST SKIP THIS STEP-4 !!!
res/layout/status_bar_expanded_header
LINE xml 2
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="#ff000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
NEXT - STEP -5
Download the brightness bar source according to your device category :
Source_Brightness_HDPI
Source_Brightness_XHDPI
Source_Brightness_MDPI
Source_Brightness_LDPI
NEXT - STEP -6
Extract you have downloaded and merge it to your decompiled SytemUI.apk
Done and Recompile
I''ve made for my device Galaxy Wonder (HDPI) http://forum.xda-developers.com/showthread.php?t=2230063
and Galaxy Nexus http://forum.xda-developers.com/showthread.php?t=2265104
thanks to Omar1c for testing it
CREDIT & THANKS
arco
evanlocked
Omar1c
Galaxy Nexus xda themes forum
Galaxy wonder xda themes forum
XDA
CyanogenMod
ApkMultitools
and all of you , sorry if I missed
Reserved for something
will this mod work on CM10.1 ?
MicroLizard said:
will this mod work on CM10.1 ?
Click to expand...
Click to collapse
No , still force close..
I still try and try to get it working..
PS : But it will work to CM9
Sent from my GT-I8150 using xda app-developers app
Adi Aisiteru Reborn said:
No , still force close..
I still try and try to get it working..
PS : But it will work to CM9
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes, I've tried and it give me force close.
Big thanks!! :good:
Thank you bro work fine
androidphone2012 said:
Big thanks!! :good:
Click to expand...
Click to collapse
Screenshot will be appreciated
Sent from my GT-I8150 using xda app-developers app
Awesome bro!!
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Awesome bro!!
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I want to write another porting Guide, CM10 O4x style lockscreen, will you test it for XHDPI version ?.
I 'll use your file framework , but before you test it, make sure you revert back to stok theme first, without mod installed on your device.
I'll send you PM when the flashable zip is ready
Edit : Done for the porting guide
Adi Aisiteru Reborn said:
Screenshot will be appreciated
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes, sir. :good: I slightly modified the layout
Adi Aisiteru Reborn said:
I want to write another porting Guide, CM10 O4x style lockscreen, will you test it for XHDPI version ?.
I 'll use your file framework , but before you test it, make sure you revert back to stok theme first, without mod installed on your device.
I'll send you PM when the flashable zip is ready
Edit : Done for the porting guide
Click to expand...
Click to collapse
Alright sorry for the late reply and yeah bro remember I'm your test monkey lul
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Alright sorry for the late reply and yeah bro remember I'm your test monkey lul
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
that's oke Bro
do you still want flashable.zip ?
or you gonna try to do it your self ? http://forum.xda-developers.com/showthread.php?t=2269131
Adi Aisiteru Reborn said:
that's oke Bro
do you still want flashable.zip ?
or you gonna try to do it your self ? http://forum.xda-developers.com/showthread.php?t=2269131
Click to expand...
Click to collapse
Flashable zip would be great
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Flashable zip would be great
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
well I need your CM10 android.policy.jar and services.jar
Adi Aisiteru Reborn said:
well I need your CM10 android.policy.jar and services.jar
Click to expand...
Click to collapse
Ok
Sent from my Galaxy Nexus using xda premium
---------- Post added at 02:20 PM ---------- Previous post was at 02:14 PM ----------
Adi Aisiteru Reborn said:
well I need your CM10 android.policy.jar and services.jar
Click to expand...
Click to collapse
Here it is
http://db.tt/9fmkUR6y
Sent from my Galaxy Nexus using xda premium
Omar1c said:
Ok
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
but first I want ask you
is it still working or not anymore ? http://forum.xda-developers.com/showthread.php?p=27873486
Adi Aisiteru Reborn said:
but first I want ask you
is it still working or not anymore ? http://forum.xda-developers.com/showthread.php?p=27873486
Click to expand...
Click to collapse
That's for GSM not toroplus so I can't test that one
Sent from my Galaxy Nexus using xda premium
Omar1c said:
That's for GSM not toroplus so I can't test that one
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Oke
give me 20 minutes , I'll send you PM soon, when flshble.zip ready
EDIT : Done
please check your PM
Adi Aisiteru Reborn said:
Oke
give me 20 minutes , I'll send you PM soon, when flshble.zip ready
EDIT : Done
please check your PM
Click to expand...
Click to collapse
Please please please!!! will u make a guide (optimus4x lockscreen) for ldpi device as well??????I am using cm10.1 right now and will test it..
Related
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
GUIDE ( SMALI ) CM9 BLACKBERRY TEN STYLE LOCKSCREEN FOR HDPI / XHDPI DEVICES ONLY
for MDPI Devices , you can go here : http://forum.xda-developers.com/showthread.php?t=2260883
thanks to Sky_Walker for getting it working on MDPI devices
Hi..Hi.how are you all XDA especially for Developer only
I want to share to you all how to make Mod Backberry ten style lockscreen but only for HDPI/XHDPI Devices running CyanogenMod 9
and for CyanogenMod 10 you can go here http://forum.xda-developers.com/showthread.php?t=2236926
The different with CyanogenMod 10 version that we don't have lockscreen transparency in CM9 version.
and there is a little bug in CM9 version, Don't ever try to change lockscreen background to color fill or custom image, or you will not able to unlock/open the lockscreen,
so make sure you always use Default Wallpaper as Lockscreen background
I am coming from this guide thread http://forum.xda-developers.com/showthread.php?t=1920612
and Full Credit goes to the original founder Legend Senior Member EVILISTO
and here I want to share it to you how to make Mod Blackberry ten style lockscreen but with SMALI code :good::laugh:
I made one for my device Galaxy Wonder GT-I8150 :http://forum.xda-developers.com/showthread.php?t=2229154
THANKS to sir Arco68 for giving our device smooth and stable CyanogenMod 9
and Thanks to Sir Idiomedi for helping me with the Blackberry WaveView.smali
ok lets go to Guide:
first of all need some requirement for this MOD-GUIDE
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- Know how to decompile/recompiling jar Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
Sorry for my bad english
GUIDE
1. Decompile your framework-res.apk
\res\layout\keyguard_screen_tab_unlock.xml
Delete the whole lines and replace with this :
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.internal.widget.WaveView android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.internal.widget.DigitalClock android:id="@id/time" android:paddingTop="36.0dip" android:layout_marginBottom="8.0dip">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:gravity="center_horizontal" android:id="@id/timeDisplayBackground" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="5.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:gravity="center_horizontal" android:id="@id/timeDisplayForeground" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="5.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:orientation="horizontal" android:id="@id/date_line" android:layout_width="fill_parent">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/date" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/alarm_status" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/status1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:singleLine="true" />
<RelativeLayout android:orientation="horizontal" android:id="@id/weather_panel" android:paddingTop="4.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:id="@id/weather_image" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_dialog_alert" android:layout_centerHorizontal="true" android:layout_centerVertical="true" />
<RelativeLayout android:orientation="horizontal" android:padding="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@id/weather_image" android:layout_centerVertical="true">
<TextView android:textSize="14.0sp" android:textStyle="bold" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:gravity="right" android:id="@id/weather_city" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentRight="true" />
<TextView android:textSize="12.0sp" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:gravity="right" android:id="@id/weather_condition" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_below="@id/weather_city" android:layout_alignParentRight="true" />
<TextView android:textSize="6.0sp" android:textColor="?textColorSecondary" android:gravity="right" android:id="@id/update_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/weather_condition" android:layout_alignParentRight="true" />
</RelativeLayout>
<RelativeLayout android:orientation="horizontal" android:id="@id/weather_temps_panel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/weather_image" android:layout_centerVertical="true">
<TextView android:textSize="20.0sp" android:textColor="?textColorPrimary" android:id="@id/weather_temp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" />
<View android:id="@id/weather_divider" android:background="@drawable/divider_horizontal_dark" android:layout_width="44.0dip" android:layout_height="1.0dip" android:layout_below="@id/weather_temp" />
<TextView android:textSize="12.0sp" android:textColor="?textColorPrimary" android:id="@id/weather_low_high" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/weather_divider" android:layout_centerHorizontal="true" />
</RelativeLayout>
</RelativeLayout>
<Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="4.0dip" style="?android:attr/buttonBarButtonStyle" />
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:id="@id/calendar_panel" android:paddingLeft="12.0dip" android:paddingRight="12.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="28.0dip">
<ImageView android:gravity="center" android:layout_gravity="center_vertical" android:layout_width="36.0dip" android:layout_height="wrap_content" android:src="@drawable/ic_lock_idle_calendar" />
<View android:background="@drawable/divider_horizontal_dark" android:paddingTop="6.0dip" android:paddingBottom="6.0dip" android:layout_width="1.0dip" android:layout_height="fill_parent" />
<RelativeLayout android:paddingLeft="4.0dip" android:paddingTop="6.0dip" android:paddingBottom="6.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textSize="14.0sp" android:textColor="?textColorPrimary" android:ellipsize="marquee" android:id="@id/calendar_event_title" android:fadingEdge="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textSize="12.0sp" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:id="@id/calendar_event_details" android:focusable="true" android:focusableInTouchMode="true" android:fadingEdge="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/calendar_event_title" android:layout_alignLeft="@id/calendar_event_title" android:marqueeRepeatLimit="marquee_forever" />
</RelativeLayout>
</LinearLayout>
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:weightSum="2.0" style="?android:attr/buttonBarStyle">
<Button android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:layout_gravity="center_horizontal" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" android:layout_weight="1.0" style="?android:attr/buttonBarButtonStyle" />
</LinearLayout>
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="8" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
</RelativeLayout>
NEXT
2. for HDPI DEVICES download THIS and put it to
\res\drawable-hdpi\
for XHDPI DEVICES download THIS and put it to
\res\drawable-xhdpi\
NEXT
\res\values\ids.xml
3. add this line to the end
Code:
<item type="id" name="date_line">false</item>
DONE and recompile your framework-res.apk
NEXT
4. Decompile the Newly recompiled framework-res.apk again
and go to
\res\values\public.xml
open in text editor or notepad++ that public.xml
and don't do anything., we just leave it.
NEXT
5. Decompile your framework.jar
\com\android\internal\widget
DELETE WaveView.smali and replace with THIS new WaveView.smali
NEXT
6. Open in text editor that new WaveView.smali and look into your new public.xml that we just leave.
Make sure the ID in WaveView.smali is same like your new ID in new public.xml
but without 0 number in the public.xml
Code:
[B]new WaveView.smali new Public.xml[/B]
-line 198 -> 0x10404bd <public type="string" name="description_target_camera" id="0x[COLOR="Red"]0[/COLOR]10404bd" />
-line 306 -> 0x10805fc <public type="drawable" name="unlock_ring" id="0x[COLOR="Red"]0[/COLOR]10805fc" />
-line355 -> 0x10805fd <public type="drawable" name="unlock_wave" id="0x[COLOR="Red"]0[/COLOR]10805fd" />
-line 404 -> 0x10805fa <public type="drawable" name="unlock_default" id="0x[COLOR="Red"]0[/COLOR]10805fa" />
-line 453 -> 0x10805fb <public type="drawable" name="unlock_halo" id="0x[COLOR="Red"]0[/COLOR]10805fb" />
if the ID in new public.xml is different, you must change the ID in new WaveView.smali with your new ID in public.xml but without 0 number in the public.xml
DONE and Compile your framework-res.apk and your framework.jar.
reserved for something
Recompile error at step 3 sir
jetse7en said:
Recompile error at step 3 sir
Click to expand...
Click to collapse
Ouh .. sorry
Can post the log chat , so we can see which error
Sent from my GT-I8150 using xda app-developers app
That the step 3 would earn, to enough only one hundred-fate ( <com.android.internal.widget.WaveView android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" />) to transfer to the file. Having removed the which is responsible for blocking. All other lines exclusively under each phone.
Adi Aisiteru Reborn said:
Ouh .. sorry
Can post the log chat , so we can see which error
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Here it is, sir
jetse7en said:
Here it is, sir
Click to expand...
Click to collapse
yah, I've seen that, but why you have so many missing ids ?
are you sure it's CM9 (4.0.4) framework-res.apk ?
or can you give me your framework-res.apk too ?, I want to check it
Adi Aisiteru Reborn said:
yah, I've seen that, but why you have so many missing ids ?
are you sure it's CM9 (4.0.4) framework-res.apk ?
or can you give me your framework-res.apk too ?, I want to check it
Click to expand...
Click to collapse
Yes, i'm sure.
Here's my's framework-res.apk
Can this work for mdpi devices coz I've heard that hdpi mods can also work for MDP I devices
HTC pico yc style,
jetse7en said:
Yes, i'm sure.
Here's my's framework-res.apk
Click to expand...
Click to collapse
ahh seems that your tools, I dont find error with my tools decompile recompile your framewrok-res.apk
here you go for you, I've edit your framewrok-res.apk to bb lockscreen
jetse7en_BB_FLASHABLE_framework-res.apk
I ve checked it and the public.xml already mach with my BB wave view smali,. now you only need to compile your frmaework.jar with my waveview.smali, no need to check it anymore,.
and flash with my template flashable zip
and if it works,. remember , this lockscreen has bug, read my first post
yasir4abbas said:
Can this work for mdpi devices coz I've heard that hdpi mods can also work for MDP I devices
HTC pico yc style,
Click to expand...
Click to collapse
not yet, I'm sorry
Adi Aisiteru Reborn said:
ahh seems that your tools, I dont find error with my tools decompile recompile your framewrok-res.apk
here you go for you, I've edit your framewrok-res.apk to bb lockscreen
jetse7en_BB_FLASHABLE_framework-res.apk
I ve checked it and the public.xml already mach with my BB wave view smali,. now you only need to compile your frmaework.jar with my waveview.smali, no need to check it anymore,.
and flash with my template flashable zip
Click to expand...
Click to collapse
Thank you very muchhhhh!
Can you give me your apktool? I need to build a new one for my other device which using CM10 too.
jetse7en said:
Thank you very muchhhhh!
Can you give me your apktool? I need to build a new one for my other device which using CM10 too.
Click to expand...
Click to collapse
I dont use apk tool , I use Apk Multitools , you can get it on its official website
Sent from my GT-I8150 using xda app-developers app
Adi Aisiteru Reborn said:
I dont use apk tool , I use Apk Multitools , you can get it on its official website
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Sir, i think my apktool is not has any problem.
I've tested with your framework-res.apk by steps below:
- Unzip jetse7en_BB_FLASHABLE_framework-res.apk
- Decompile framework-res.apk
- Recompile without any change
-> Recompile complete
(sry my bad english)
jetse7en said:
Sir, i think my apktool is not has any problem.
I've tested with your framework-res.apk by steps below:
- Unzip jetse7en_BB_FLASHABLE_framework-res.apk
- Decompile framework-res.apk
- Recompile without any change
-> Recompile complete
(sry my bad english)
Click to expand...
Click to collapse
that framework-res.apk already been compressed when decompile recompile procss by my tools, ,
I dont know, may be its difficult for your tools for editing stok original apk especially injecting/porting new lines to the apk,.
Adi Aisiteru Reborn said:
that framework-res.apk already been compressed when decompile recompile procss by my tools, ,
I dont know, may be its difficult for your tools for editing stok original apk especially injecting/porting new lines to the apk,.
Click to expand...
Click to collapse
OK. My wrong,
I've finished. Thank for support
Adi Aisiteru Reborn said:
not yet, I'm sorry
Click to expand...
Click to collapse
But are u going to do it?
Thanks in advance
Impulse1020 said:
But are u going to do it?
Thanks in advance
Click to expand...
Click to collapse
see this original founder thread , [MOD][DEV] BlackBerry 10 style Lockscreen mod for JB [JZO54K / AOKP / CM10]
he said the resources for HD( xhdpi )..
and
EVILISTO said
I made this mod for jellybean but basically it is based on old WaveView widget(honeycomb's). So I think making same mod for ICS is possible too.. (but untested.. and maybe you have to apply patch manually)
Click to expand...
Click to collapse
am not this Mod founder, so I cannot find the solution for MDPI / LDPI
what am trying to share here is, how to make that Mod with different guide,. and still use the same resources
and the fact I can prove it that this mod is able for ICS base rom too :good::laugh:
bro !!! this is my framework-res.apk got compilation error !!!
please mod it if possible thnx in advance !!!
showstopper1 said:
bro !!! this is my framework-res.apk got compilation error !!!
please mod it if possible thnx in advance !!!
Click to expand...
Click to collapse
sorry for late repply, I had a bussy in my office
Btw, I've checked your framework-res.apk, and it is not CM9 framework-res.apk,.it is ICS.4.0.4 stok framework-res.apk.. thts why you got error,
and this Mod guide is only for CM9 only. sorry
Hello, this is my first topic on this section..
28.9.14 Created on 2.3 but it also works on 4.0, 4.1, 4.2, 4.3 and 4.4 too!
Thanx to @Ticklefish for testing ..
[14.7.13]Update for CyanogenMod 9/10/10.1 by @Adi Aisiteru Reborn . Credits & Thanks to him..
CHECK HERE FOR GUIDE
{
"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"
}
How to (GB tut)
- Download BatteryPercentage from attachment and unrar it.
- Decompile SystemUI.apk and copy smali files into smali/com/erryy folder. ( so the long path is com/erryy/BatteryText$1.smali and BatteryText.smali)
- Go to SystemUI/res/layout/status_bar.xml and open it;
add the code before <com.android.systemui.statusbar.Clock ...
Code:
<com.erryy.BatteryText android:textSize="14.0dip" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" />
- Save and compile apk and push .
Done.
--Answers to some questions--
- 2.3+
- GINGERBREAD FW QUESTION!
Layout is placed right of the battery not on the left. Why?
On ICS+ fw signal, battery etc they have their android:id's but on GB all status icons are just in one id ( android:id="@id/statusIcons) so Its so easy to put it to left of battery on ICS.
Check my signature
GB SPECIAL! BatteryText% with JB Battery!! signal-%-battery! for putting it to left on GB!
- You dont have to use it same place on guide. You can put the code whereever you want and use it.
happy mods.
excellent mod
very useful :good:
I'd put the 0.0KB / s as you have :fingers-crossed:
todoslosdias24 said:
excellent mod
very useful :good:
I'd put the 0.0KB / s as you have :fingers-crossed:
Click to expand...
Click to collapse
You can find data traffic guide on my signature. Remod GB system apps. Check first topic. Thanks
Sent from my LT15i using xda app-developers app
Would this work on the cdma version from Verizon?
Sent from my R800x using xda premium
@Erhany
CM7 has battery number without "%"
What should I do to have yours?
darkharbinger81 said:
Would this work on the cdma version from Verizon?
Sent from my R800x using xda premium
Click to expand...
Click to collapse
Im sorry I have no idea about CDMA Version from Verizon. You can try it if your phone is rooted and deodexed.
androidphone2012 said:
@Erhany
CM7 has battery number without "%"
What should I do to have yours?
Click to expand...
Click to collapse
Just follow the guide. If you dont want to use my smali files , then you have to add a textview for '' % '' before or after your smali code to show % .
Erhany said:
You can find data traffic guide on my signature. Remod GB system apps. Check first topic. Thanks
Sent from my LT15i using xda app-developers app
Click to expand...
Click to collapse
already did :good:
Now I have a question
It can make a settings to enable and disable it from settings?
Awesome guide bro .!!
I've been locking for this ever since I got my phone
sent from my super advanced mini fridge
How about the position, it's can moved beside the signal bar? Soo its look like xperia z status bar
Sent from my Andromax U (Xperia Style) using xda premium
Erhany said:
... you have to add a textview for '' % '' before or after your smali code to show % .
Click to expand...
Click to collapse
Please edit my smali for "add a textview for '' % '' before or after your smali code to show %" whenever you're free. Thanks in advance
Can u tell how to change battery icon... i want sony stock battery icon in statusbar, actually now i have percentage in battery icon.
XML code for CyanogenMod 9, CyanogenMod 10, CyanogenMod 10.1
Thanks Bro @Erhany for the code and guide
and thanks to Recognized Themer @rodman01 for information about this guide
the smali & guide work great on CM9 / CM10 / CM10.1
but I've made some change to the xml, below is the xml code :
CyanogenMod 9
Code:
<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/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />[/COLOR]
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
CyanogenMod 10
Code:
<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/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />[/COLOR]
<ImageView android:gravity="bottom" android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
CyanogenMod 10.1
Code:
<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:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleDockBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />[/COLOR]
<ImageView android:id="@id/battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
and merge the smali from first post, Thanks @Erhany, Done & Compile
my XML code will put the 00% text on the left of main battery image, and the text color will be change according to theme chooser applied
below attched is screenshot, from stok theme and three different theme chooser
Adi Aisiteru Reborn said:
Thanks Bro @Erhany for the code and guide
and thanks to Recognized Themer @rodman01 for information about this guide
the smali & guide work great on CM9 / CM10 / CM10.1
but I've made some change to the xml, below is the xml code :
CyanogenMod 9
Code:
<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/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />[/COLOR]
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
CyanogenMod 10
Code:
<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/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />[/COLOR]
<ImageView android:gravity="bottom" android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
CyanogenMod 10.1
Code:
<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:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleDockBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
[COLOR="Blue"]<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />[/COLOR]
<ImageView android:id="@id/battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
and merge the smali from first post, Thanks @Erhany, Done & Compile
my XML code will put the 00% text on the left of main battery image, and the text color will be change according to theme chooser applied
below attched is screenshot, from stok theme and three different theme chooser
Click to expand...
Click to collapse
Hello dev, thank you for your interest and support and also for your work.
Topic updated.
i copy BatteryText$1.smali and BatteryText.smali file into path smali/com but statusbar no change
lovevip1102 said:
i copy BatteryText$1.smali and BatteryText.smali file into path smali/com but statusbar no change
Click to expand...
Click to collapse
How about the status_bar.xml ?
Have you add the line responsible for those smalis
Sent from my GT-I8150 using xda app-developers app
Adi Aisiteru Reborn said:
How about the status_bar.xml ?
Have you add the line responsible for those smalis
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Yes i edit status_bar.xml, i used cm 10.1, i should copy folder com into smali or copy file BatteryText$1.smali and BatteryText.smali file into path smali/com
lovevip1102 said:
Yes i edit status_bar.xml, i used cm 10.1, i should copy folder com into smali or copy file BatteryText$1.smali and BatteryText.smali file into path smali/com
Click to expand...
Click to collapse
you must copy 2 smali files into smali/com/erryy folder and edit status_bar.xml file. Then compile.
I have only tested the smali to CM9/CM10/CM10.1 , haven't test it on other AOSP base rom , such as , AOSP stok, PA, PAC, Slimbean or etc,. so if anybody have test it on other AOSP base rom , please tell us . share you experience OK !!
Thnks
I have try this mod for AOSP and nothing happen,
using xda premium
vanitea said:
I have try this mod for AOSP and nothing happen,
using xda premium
Click to expand...
Click to collapse
thanx for feedback.
Hello Guys,Hope everyone is fine
Today iam going to guide you how to add quickpanel button on statusbar to change layouts with cool sliding animation.
First of all this is not my work I would like to thank XDA Recognized Themer @b16h22 For allowing me to make this guide.
So lets start..
1. First of all download the attached files and merge with your SystemUI.apk
2. Now open statusbar.expanded and add these codes on the top lines anywhere where you want the switching button.
Code:
<com.panel.Button android:id="@id/button" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
3 And then add this code anywhere..
Code:
<com.panel.Panel android:id="@id/panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
Your First layout
</LinearLayout>
<LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
Your Second Layout
</LinearLayout>
</com.panel.Panel>
4.Now open ids.xml and add these in the last above resources .
Code:
<item type="id" name="panel">false</item>
<item type="id" name="button">false</item>
5.Recompile your SystemUI.apk.
6.Decompile it again.
7.Now open public.xml in values folder
8.Search for panel and copy its id
11.Now open Panel.smali in smali/com/panel/panel and search for 0x7f09004d and replace it with panel id .
12.Similarly,
13.Open public.xml in values folder
14.Search for button and copy its id
15.Now open Button.smali in smali/com/panel/Button and search for 0x7f09004e and replace it with Button id .
16.Also,
17.Open public.xml in values folder
18.Search for btn drawable and copy its id.
19.Now open Button.smali in smali/com/panel/Button and search for 0x7f020190 and replace it with btn id .
20.Now compile your SystemUI.apk
And done.
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
san122 said:
Hello Guys,Hope everyone is fine
Click to expand...
Click to collapse
recompiling problem after add ur smali files
Aleemk9 said:
recompiling problem after add ur smali files
Click to expand...
Click to collapse
Make sure u have placed ids in the ids.xml in values folder.
Aleemk9 said:
recompiling problem after add ur smali files
Click to expand...
Click to collapse
If you still have a recompiling problem, it helps if you share what the error message is that you get. Then we can say what's going wrong.
Sent from my C6603 using Tapatalk
Got only switch but no quickpanel buttons ............ do i did some thing worng.
princemouli said:
Got only switch but no quickpanel buttons ............ do i did some thing worng.
Click to expand...
Click to collapse
That depends...what two views were you trying to switch between?
Ticklefish said:
That depends...what two views were you trying to switch between?
Click to expand...
Click to collapse
i got a icon for qucikpanal buttuns but no quickicons as shown in the screen shoots provided in the guide...
for clear understanding see the screen shots i uploaded...
princemouli said:
i got a icon for qucikpanal buttuns but no quickicons as shown in the screen shoots provided in the guide...
for clear understanding see the screen shots i uploaded...
Click to expand...
Click to collapse
Place to linearlayouts bw com.pane....
And
</com.panel.....>
Sent from my GT-S5360 using Tapatalk 2
san122 said:
Place to linearlayouts bw com.pane....
And
</com.panel.....>
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
brother still not working please check this....
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" 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">
<FrameLayout android:id="@id/toolBarSwitchPanel" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="103.0dip">
<include layout="@layout/zzz_toolbar_view" />
<include layout="@layout/zzz_toolbar_indicator" />
</FrameLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<RelativeLayout android:background="@drawable/notification_header_bg" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
<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" />
<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" />
<ImageView android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
<com.panel.Button android:id="@id/button" android:paddingRight="8.0dip" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" />
</RelativeLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:paddingTop="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<in.jmkl.dcsms.statusbargreper.SlideBrightness android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
<com.panel.Panel android:id="@id/panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
Your First layout
</LinearLayout>
<LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
Your Second Layout
</LinearLayout>
</com.panel.Panel>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</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.phone.ExpandedView>[CODE]
[/CODE]
princemouli said:
brother still not working please check this....
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" 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">
<FrameLayout android:id="@id/toolBarSwitchPanel" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="103.0dip">
<include layout="@layout/zzz_toolbar_view" />
<include layout="@layout/zzz_toolbar_indicator" />
</FrameLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<RelativeLayout android:background="@drawable/notification_header_bg" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
<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" />
<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" />
<ImageView android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
<com.panel.Button android:id="@id/button" android:paddingRight="8.0dip" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" />
</RelativeLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:paddingTop="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<in.jmkl.dcsms.statusbargreper.SlideBrightness android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
<com.panel.Panel android:id="@id/panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
Your First layout
</LinearLayout>
<LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
Your Second Layout
</LinearLayout>
</com.panel.Panel>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</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.phone.ExpandedView>[CODE]
[/CODE]
Click to expand...
Click to collapse
Why dont you replaced Your first layout and your second layout.
Sent from my GT-S5360 using Tapatalk 2
san122 said:
Why dont you have replaced Your first layout and your second layout.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Sent from my GT-S5360 using Tapatalk 2
san122 said:
Why dont you replaced Your first layout and your second layout.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
i didn't understand ......
what things should i add there .........
you have not mentioned in the guide......
princemouli said:
i didn't understand ......
what things should i add there .........
you have not mentioned in the guide......
Click to expand...
Click to collapse
Two linearlayouts which you want to fip in there.
Sent from my GT-S5360 using Tapatalk 2
san122 said:
Two linearlayouts which you want to fip in there.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
hooo...
now i came to understand that means i should add icons and i should write the linear layouts for them... which i wanted in statusbar.....
please add this lines clearly to the op so that some others may not confuse like me........
and thanks nice guide..... i will say u the result tommarow
how to adding owner photo in quick panel ?
Ikhsan_novindri said:
how to adding owner photo in quick panel ?
Click to expand...
Click to collapse
Go here
forum.xda-developers.com/showthread.php?t=2341341
Sent from my GT-S5360 using Tapatalk 2
san122 said:
Go here
forum.xda-developers.com/showthread.php?t=2341341
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
i've tried it , but not working .
im using jb 4.1.2 deodexed
on which CM version we can use this ? only JB?
goudaniket said:
on which CM version we can use this ? only JB?
Click to expand...
Click to collapse
Anyone
Sent from my GT-S5360 using Tapatalk 2
san122 said:
Anyone
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
cool!
so i can try this on minicm 7.2?
WHAT IS THIS?
Just a Potato clock
FEATURES
(COLOR HINTS)
NEW FEATURE
REMOVED
ORIGINAL FEATURE
VERSION
Potato Clock v2.1
Word Clock - Just time in words
All caps Word Clock
Minor bug fixes
New settings style - This one is cool
Potato Clock v2
***** Clock - Potato Edition of Fuzzy Clock (Show exact minutes in words)
All caps *****
Ninja Time removed
All features from v1.1
PREVIOUS CHANGE LOGS
Potato Clock v1.3
Ninja Moves - Ninja Time(Will change the current time to "NOW")
Potato Clock v1.2
Font - Bold|Condensed|Light|Light Italic|Normal|Custom (ttf & otf supported)
Potato Clock v1.1
AM/PM style - Normal|Small|Gone|Custom
Date style - Normal|Small|Gone|Custom
Potato Clock v1 - Initial release
Clock color - Color picker
Clock position - Left|Center|Right|Hide
Font - Bold|Condensed|Light|Light Italic|Normal
AM/PM style - Normal|Small|Gone
Date style - Normal|Small|Gone
Date format - 14 styles too many to mentions|Custom JAVA format
BUGS?
404 NOT FOUND
PM me if you found any bugs
SCREENIES
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
INSTRUCTIONS
Download needed files here.
Download & install Potato Clock settings here.
Extract the needed files.
Decompile your SystemUI.apk
Go to SystemUI.apk/smali then paste the smali in that folder
the smali directory will be
smali/com/potato/systemui/clocks/.SMALI FILES HERE
and the assets folder
SystemUI.apk/assets/.ttf files should be here
Go to res/layout/statusbar.xml
PHP:
<com.potato.systemui.clocks.ClockLeft android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:paddingLeft="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
- This is for Left Clock
PHP:
<com.potato.systemui.clocks.ClockRight android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
- This is for Right Clock
PHP:
<com.potato.systemui.clocks.ClockCenter android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
- This is for Center clock
Put the codes in their right position
(Don't copy my whole statusbar.xml this is for TW 2.3.6)
PHP:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#00000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.potato.systemui.clocks.ClockCenter android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.potato.systemui.clocks.ClockLeft android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:paddingLeft="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="1.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.potato.systemui.clocks.ClockRight android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#000" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="0.0px" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
For those who have Potato Statusbar Gesture mod you can use this for center clock
PHP:
<com.potato.touchbar.TouchMe android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.potato.systemui.clocks.ClockCenter android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.potato.touchbar.TouchMe>
IF YOU ALREADY HAVE POTATO CLOCK JUST PASTE THE SMALI FILES (.smali) in
PHP:
SystemUI.apk\smali\com\potato\systemui\clocks
ISSUES
404 ISSUES NOT FOUND
CREDITS
PotatoInc
MARIOZAWA
pollube31 - 24/7 tester
@Jay_SEAN - 12/2 tester
CYANOGENMOD
iPaulPro
IF YOU LIKE OUR WORK YOU KNOW WHAT TO DO
IF YOU WANT TO USE THIS IN YOUR AWESOME WORK PLEASE SEND ME A PM
AND AT LEAST PRESS THANKS BUTTON
I SUFFER FROM SUPER HEADACHE VERSION 4 WHEN DOING THIS
great mod!!!!!!
vishal1404 said:
great mod!!!!!!
Click to expand...
Click to collapse
Great mod!
But its do not work (Statusbar Force closed) on my LG P713, 4.1.2
Tested in Galaxy Wonder with CM9 rom, thanks for shared this awesome mod
thanks master
the_vanya1 said:
Great mod!
But its do not work (Statusbar Force closed) on my LG P713, 4.1.2
Click to expand...
Click to collapse
Can you attach logcat? Thanks
Sent from my GT-I9300 using Tapatalk
mariozawa said:
Can you attach logcat? Thanks
Sent from my GT-I9300 using Tapatalk
Click to expand...
Click to collapse
My LGSystemUI - https://www.dropbox.com/s/toi7vkcjgq2c4z1/LGSystemUI.apk
the_vanya1 said:
My LGSystemUI - https://www.dropbox.com/s/toi7vkcjgq2c4z1/LGSystemUI.apk
Click to expand...
Click to collapse
Bro logcat not your SystemUI.apk.
BTW there is a new version.
404 font not found when i chose a font
butiti_09 said:
404 font not found when i chose a font
Click to expand...
Click to collapse
Try to choose font from /system/fonts
It has bugs on devices that didn't have internal sdcard
But I'm working on it.
mariozawa said:
Bro logcat not your SystemUI.apk.
BTW there is a new version.
Click to expand...
Click to collapse
I know)
can you tell me the function of custom clock ? and whre i can find the custom java code for this potato clock mod ?
but overall this is a great mod sir, good job :good:
MRPP_mod said:
can you tell me the function of custom clock ? and whre i can find the custom java code for this potato clock mod ?
but overall this is a great mod sir, good job :good:
Click to expand...
Click to collapse
It just let you use custom Java date format.
Check this.
http://www.tutorialspoint.com/java/java_date_time.htm
The code of normal clock is hh:mm
AM/PM not showing in EVO X4,dunno why,maybe because this rom have edt tweaks old ver?
s5830i
you do it for me? phone galaxy ace (s5830i) ...I do turns out wrong.I couldn't do any of them, including all the sharing modes.They were all very beautiful!Where'd you learn to do them?
thank you google translate
I am from turkey...
nice mod! :good: nice work. Im using it in my hyperion 9
galing talaga ng pinoy
sir,can i use it on jb 4.1.2?
and what version of apktool should i use? tia
Sir, may I request for a flashable zip of this mod for Jellybean? Thanks.
Deleted
[/PHP]
work with loliipop?