Related
Anyone knows how to color or to center the lockscreen clock on ics? Thanks in advance..
Sent from my Nexus S®
Anyone?
Sent from my Nexus S®
...the only one know the answer is codename android (I've searched on his github but nothing ), or evilisto.
Here there are plenty of "recognized themers" or "recognizer contributors" who do not know anything.
The few who know the answer, prefer to sell their issues on play market, instead of sharing the experience as it is in the free spirit of Android, like Microsoft or Apple.
I ask anyone and everyone knows only answer is "looks color.xml" blah blah blah (...obviously not the right answer!!) and I think is a smali or jar file need to edit for change color clock (and center it) on lockscreen mode.
Inviato dal mio Nexus S con Tapatalk 2
maped said:
...the only one know the answer is codename android (I've searched on his github but nothing ), or evilisto.
Here there are plenty of "recognized themers" or "recognizer contributors" who do not know anything.
The few who know the answer, prefer to sell their issues on play market, instead of sharing the experience as it is in the free spirit of Android, like Microsoft or Apple.
I ask anyone and everyone knows only answer is "looks color.xml" blah blah blah (...obviously not the right answer!!) and I think is a smali or jar file need to edit for change color clock (and center it) on lockscreen mode.
Inviato dal mio Nexus S con Tapatalk 2
Click to expand...
Click to collapse
Yeah i ask someone too but he didnt reply to my pm... i still hoping though.
Sent from my Nexus S®
Here a guide (??) for center clock on lockscreen mode...I've abnormal lockscreen after change xml value mentioned , if someone want to try
http://forum.xda-developers.com/showthread.php?p=27816923
Inviato dal mio Nexus S con Tapatalk 2
I got it to work bro
Thanks
What i did is
1. Decompile framework
2. Edit xmls
3. Recompile
*is this a system app? > Y
*aside from bla bla etc? > N
4. In the unsignedframework-res.apk i copy the resouces.arsc file
5. Place the resouces.arc to the original framework then bam! It works like a charm
Before:
{
"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"
}
After:
Sent from my Nexus S®
@mixtapes08
Can you pls tell me what xml you mean? Iam searching for a long time now for the right ones. I want to center the Text and Clock and also the wanna change the Color.
maped said:
Here a guide (??) for center clock on lockscreen mode...I've abnormal lockscreen after change xml value mentioned , if someone want to try
http://forum.xda-developers.com/showthread.php?p=27012908
Inviato dal mio Nexus S con Tapatalk 2
Click to expand...
Click to collapse
Inviato dal mio Nexus S con Tapatalk 2
I found out by my self!
Left is Center Clock and Text. Right is Original.
http://localhostr.com/files/IOkAg3b/06-07-2012_114518.jpg
It is in "\framework-res\res\layout\keyguard_screen_unlock_portrait.xml"
Basian Mile said:
I found out by my self!
Left is Center Clock and Text. Right is Original.
http://localhostr.com/files/IOkAg3b/06-07-2012_114518.jpg
It is in "\framework-res\res\layout\keyguard_screen_unlock_portrait.xml"
Click to expand...
Click to collapse
??? And works???
We have change @res/values/dimens.xml the value on lines
name="keyguard_lockscreen_status_line_font_right_margin">56dip
There's a link in my previous post
Inviato dal mio Nexus S con Tapatalk 2
nope. i testet it and it was not the working one. But i tryed "name="keyguard_lockscreen_status_line_font_right_m argin">56dip" too before and got no luck.
Iam on JellyBean btw.
It's very strange bro , because this methods works fine for me...you have change xml value and following the mixtapes08 steps???
mixtapes08 said:
I got it to work bro
Thanks
What i did is
1. Decompile framework
2. Edit xmls
3. Recompile
*is this a system app? > Y
*aside from bla bla etc? > N
4. In the unsignedframework-res.apk i copy the resouces.arsc file
5. Place the resouces.arc to the original framework then bam! It works like a charm
Before:
After:
Sent from my Nexus S®
Click to expand...
Click to collapse
Inviato dal mio Nexus S con Tapatalk 2
Got it now
Its here "\framework-res\res\layout\keyguard_screen_tab_unlock.xml"
Left is Center Clock and Text. Right is Original.
http://localhostr.com/files/0WwQvpM/06-07-2012_133016.jpg
Not sure if the other file need to be changed too cause i let the file that i made before.
Thanks bro...but your method don't work in my case ...was interesting because you have centered the date
With the last step it was working here.
I check your png and I made the same change:
Code:
<?xml version="1.0" encoding="utf-8"?>
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.internal.widget.DigitalClock android:layout_gravity="center_horizontal" android:id="@id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin_bigclock" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin_center" android:layout_marginBottom="12.0dip">
<TextView android:textAppearance="?textAppearanceLarge" android:textSize="@dimen/keyguard_lockscreen_clock_font_size_bigclock" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
</com.android.internal.widget.DigitalClock>
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin_center">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="20.0sp" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="20.0sp" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
</LinearLayout>
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size_bigclock" android:ellipsize="marquee" android:layout_gravity="center_horizontal" android:id="@id/status1" android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin_center" android:singleLine="true" android:drawablePadding="4.0dip" />
<Space android:layout_gravity="fill" />
<Button android:layout_gravity="center_horizontal" 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="302.0dip">
<com.android.internal.widget.multiwaveview.MultiWaveView android:orientation="horizontal" android:id="@id/unlock_widget" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera" android:directionDescriptions="@array/lockscreen_direction_descriptions" android:targetDrawables="@array/lockscreen_targets_with_camera" android:handleDrawable="@drawable/ic_lockscreen_handle" android:rightChevronDrawable="@drawable/ic_lockscreen_chevron_right" android:waveDrawable="@drawable/ic_lockscreen_outerring" android:outerRadius="@dimen/multiwaveview_target_placement_radius" android:hitRadius="@dimen/multiwaveview_hit_radius" android:vibrationDuration="20" android:snapMargin="@dimen/multiwaveview_snap_margin" android:feedbackCount="3" android:verticalOffset="60.0dip" android:horizontalOffset="0.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size_bigclock" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="0.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
</RelativeLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:weightSum="2.0" style="?android:attr/buttonBarStyle">
<Button android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:layout_gravity="center_horizontal" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" android:layout_weight="1.0" style="?android:attr/buttonBarButtonStyle" />
</LinearLayout>
<include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="4" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
</GridLayout>
but not recompile the framework-res.apk with this change
I have managed to get CM10 style status bar in CM9 rom
A big thanks To ThilinaC for helping me
Now
what i want to do is to hide the statusbar
UPDATE 15-10-2012
statusbar close on/off pressed and unpressed(thanks To mr.faridcom)
Download link
http://www.mediafire.com/?66eni4a4ib59wyv
{
"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"
}
UPDATE 21-09-2012
-removed center clock
-statusbar hide problem
-some other allingments
DOWNLOAD LINK v2
http://www.mediafire.com/?bivyy24x690ahls
Testing only HDPI
http://www.mediafire.com/?3c1scc10q4nkp4y
Let me know it works or not
MY MODDED suystemui
http://www.mediafire.com/?y92cz70tgqchter
Now Its Perfect
By tarunagg at 2012-09-18
Uploaded with ImageShack.us
what i want to do is to hide the statusbar clock
DOCUMENTATION:-
What I Did Is
Assuming you know how to decompile and compile
in SystemUI.apk\res\layout\status_bar_expanded.xml
i modified so many things even i dont remeber exactly
if anyone need help in porting PM me
here's my status_bar_expanded.xml
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">
<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.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="5.0dip" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" android:layout_toRightOf="@id/clock" />
<ImageView android:id="@id/settings_button" android:paddingLeft="250.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_toRightOf="@id/settings_button" android:contentDescription="@string/accessibility_clear_all" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
</RelativeLayout>
<LinearLayout android:orientation="vertical" android:background="@drawable/notification_header_bg2" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:background="@drawable/notification_header_bg2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="@dimen/notification_panel_widget_height" />
</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>
after that dont forget to add all png's from my systemui to yours
and in styles.xml
add
Code:
<style name="TextAppearance.StatusBar.Clock2" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">true</item>
</style>
<style name="TextAppearance.StatusBar.Expanded" parent="@android:style/TextAppearance.Small.CalendarViewWeekDayView" />
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:textAllCaps">true</item>
</style>
and in Strings.xml
find "status_bar_date_formatter"
change it to exact
Code:
<string name="status_bar_date_formatter">"%1$s
%2$s"</string>
Thanks for this mod.
And wow .. you got a nice theme there. Share that one as well.
Hetalk said:
Thanks for this mod.
And wow .. you got a nice theme there. Share that one as well.
Click to expand...
Click to collapse
well if u are talking about the icon pack then here you go
http://forum.xda-developers.com/showthread.php?t=1759709
ok clock is fixed only clear button is left
^^ Can i use on cm10?
Never mind. I did install the apex theme and it looks super cool. Thanks man.
Hetalk said:
^^ Can i use on cm10?
Click to expand...
Click to collapse
yes u can use that on any rom but u need apex launcher for that
nitinvaid said:
ok clock is fixed only clear button is left
Click to expand...
Click to collapse
For clear button I think u can look here
http://forum.xda-developers.com/showthread.php?t=1876018
vishal24387 said:
For clear button I think u can look here
http://forum.xda-developers.com/showthread.php?t=1876018
Click to expand...
Click to collapse
it is only possible after removing the settings button
nitinvaid said:
it is only possible after removing the settings button
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=30912200&postcount=104
I aapriciate ur efforts...
Good Job :thumbup:
Sent from my Galaxy SL using XDA Premium App !!
almost complete
Uploaded with ImageShack.us
COMPLETED
Now what i want is to hide the clock while statusbar expended is open
released for Testing
Testing only
1st mount /system in cwm
http://www.mediafire.com/?3c1scc10q4nkp4y
Let me know it works or not
nitinvaid said:
released for Testing
Testing only
1st mount /system in cwm
http://www.mediafire.com/?3c1scc10q4nkp4y
Let me know it works or not
Click to expand...
Click to collapse
Bootloop
Vasishta Reddy said:
Bootloop
Click to expand...
Click to collapse
which Rom
Updated check op
Hey... You got your SL back?
ammar786 said:
Hey... You got your SL back?
Click to expand...
Click to collapse
nope
XPERIA GX
Thanks a lot for the systemUI bro,here is my XPERIA GX STYLE .
Tested on my XPERIA X10 ,and it will work on all HDPI devices.
DOWNLOAD
SGS3 (RemJB style)
Should look like this, Haven't tested it but it should work.
can anyone make a flashable file for xxlt4 lockbutton on status bar? either on left or right. but more appropriate for right side.
eidecedie03 said:
can anyone make a flashable file for xxlt4 lockbutton on status bar? either on left or right. but more appropriate for right side.
Click to expand...
Click to collapse
Yes plzzzzzzzzzzzzzz
Notification panel lock screen and recent apps
Quote:
Credits to kmokhtar79
1. Decompile SystemUI.apk by APK-Multi tool
2. Navigate to res\drawable-xhdpi folder and put these new resource images there.
3. Navigate to res\layout folder and open tw_status_bar_expanded_header.xml and add the following lines (the blue ones):
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
[COLOR="Blue"] <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_toLeftOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
[COLOR="Blue"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toLeftOf="@id/settings_button" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
First blue line is for recent apps icon and the second one is for lock screen icon
Click to expand...
Click to collapse
4. Save changes, recompile and push to your phone.
Result:
{
"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 add the same lines in tw_status_bar.xml then you will get it on the main status bar not in the pull down menu.
If you add the lines to tw_statusbar_expanded.xml you'll get it on the notification pull down : P
apurvapatel said:
If you add the lines to tw_statusbar_expanded.xml you'll get it on the notification pull down : P
View attachment 1942505
Click to expand...
Click to collapse
where to insert the two lines exaclty???
I mean at which point of the tw_statusbar_expanded.xml
Right at the end of the file, look for:
Code:
</RelativeLayout>
Add the following lines right above it:
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_weight="1.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="1.0" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
Recompile, push, set the permissions of sysyemui.apk and reboot.
Inspired by kmokhtar's mod via majdinj's tutorials.
Sent from my GT-N7000
thanks m8,
will try
but that's not the same lines as for header
I tried these before and one icon couldn't be seen
sent from my G-Note
hara74 said:
thanks m8,
will try
but that's not the same lines as for header
I tried these before and one icon couldn't be seen
sent from my G-Note
Click to expand...
Click to collapse
My apologies. I had changed a few things in the code to get the two icons at the correct place. Added the codes to the post now.
Try adding the two codes that I have put in the post and see, you should get it then.
thanks again, it's working
sent from my G-Note
Ha ha.. so may options. now is there a way to get the E/G/H+ symbol & arrows & battery icon in the pulldown header?
Theoritically it should work. Try copying the necessary codes from the right xml file to the right xml file. Like I tried the codes from the notification top to the notification pulldown bottom.
Sent from my GT-N7000
Already done that but nothing appear there..
@ apurvapatel
looks better now
sent from my G-Note
Looks really good :good:
hara74 said:
Notification panel lock screen and recent apps
Quote:
Credits to kmokhtar79
1. Decompile SystemUI.apk by APK-Multi tool
2. Navigate to res\drawable-xhdpi folder and put these new resource images there.
3. Navigate to res\layout folder and open tw_status_bar_expanded_header.xml and add the following lines (the blue ones):
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
[COLOR="Blue"] <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_toLeftOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
[COLOR="Blue"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toLeftOf="@id/settings_button" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
4. Save changes, recompile and push to your phone.
Result:
Click to expand...
Click to collapse
Sorry, how do u get the resource image on your screenshot and what filename/filenames should the image be renamed to?
hara74 said:
@ apurvapatel
looks better now
View attachment 1944185
sent from my G-Note
Click to expand...
Click to collapse
Looks very nice, could you please share with XDA community?:good:
Thank's
look at my thread
HATO themes, is in my signature
sent from my G-Note
---------- Post added at 01:49 AM ---------- Previous post was at 01:46 AM ----------
@ devil
look at this thread, there's all explained
http://forum.xda-developers.com/showthread.php?p=35229949
sent from my G-Note
ur package
@ devil
here´s your zip with SystemUI inclusive the recent app and lock buttons in statusbar,
hope it works, haven´t test it myself
View attachment 1948474
hara74 said:
@ devil
here´s your zip with SystemUI inclusive the recent app and lock buttons in statusbar,
hope it works, haven´t test it myself
View attachment 1948474
Click to expand...
Click to collapse
Will test it out soon and let you know if it works! :good: Thanks bro! :laugh::victory:
Edit: The apk doesnt work. Changed permission and pushed to sys/app. Clear cache/dalvik. Restart. Status bar disappear. LOL. Tried searching for SystemUI app in list all apps. SystemUI app is not there. Its like OS cant read/detect SystemUI apk.
Not sure what went wrong with the apk.
Good day devs, I have something new here not new but I think it is. It works in higher API than GB that I was running, So I willpost it here.
If there is a problem with this post, kindly PM me sir.
What we will be doing is somehow like this, the picture at the left is my modified UI, and the right picture will be our outcome.
{
"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"
}
As I was inspired by Sir [email protected]'s SystemUI, I want to make it tab also, as I cant decompile his UI and study the code, I thought about Sir b16h22 for his Multipanelflipper, but it was text so I made it on my own class and follow some trick from evox-4 x SystemUI by the use of custom views and sorta intents like what he did. Let we mod again.
Disclaimer: I and XDA are not responsible for the damage of your phone. Take necessary backup if you are indoubt. Thanks.
What we will be needed:
Patience
APK-Tool
Algorithm
Basic smali and xml
Your very own SystemUI
Know how to decompile APK
Instruction:
1. Download the zip file from the download link.
2. Decompile your very own SystemUI.
3. Extract the download link and paste it in your UI.
4. At the ids, add these before </resources> at ids.xml under values folder
Code:
<item type="id" name="tabbutton">false</item>
5. Now we will modify your expanded,
Below this code,
Code:
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
Add this,
Code:
<com.pineapple.TabUI.TabButton android:layout_gravity="top" android:orientation="horizontal" android:background="#00000000" android:paddingTop="5.0dip" android:layout_width="fill_parent" android:layout_height="40.0dip" android:weightSum="3.0" android:layout_alignParentLeft="false" android:layout_alignParentRight="true" />
<com.pineapple.TabUI.TabsContent android:id="@id/tabbutton" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
6. And before this line
Code:
</com.android.systemui.statusbar.ExpandedView>
Add this,
Code:
</com.pineapple.TabUI.TabsContent>
7. Now this is the tricky part, as I am not familiar with the particular name of this (LinearLayout, RelativeLayout FrameLayout) ehh, you understand me what I am saying right sir?
Make the Expanded something like this,
Code:
<com.pineapple.TabUI.TabButton........../>
<com.pineapple.TabUI.TabButton...........>
<LinearLayout>First Layout</LinearLayout>
<LinearLayout>Second Layout</LinearLayout>
<LinearLayout>Third Layout</LinearLayout>
</com.pineapple.TabUI.TabsContent>
If you cant follow sirs, kindly compare it with my stock.
Code:
<com.pineapple.TabUI.TabButton android:layout_gravity="top" android:orientation="horizontal" android:background="#00000000" android:paddingTop="5.0dip" android:layout_width="140.0dip" android:layout_height="42.0dip" android:weightSum="3.0" android:layout_alignParentLeft="false" android:layout_alignParentRight="true" />
<com.pineapple.TabUI.TabsContent android:id="@id/flipper" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<Button android:textSize="13.0sp" android:layout_gravity="center" android:id="@id/clear_all_button" android:layout_width="85.0dip" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginRight="6.0dip" android:layout_marginBottom="3.0dip" android:text="Clear" android:layout_alignTop="@id/dateview" android:layout_alignParentRight="true" style="?android:attr/buttonStyleSmall" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<include layout="@layout/expanded_content3" /> [B]<!-- SecondLayout -->[/B]
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<include layout="@layout/expanded_content3" /> [B]<!-- ThirdLayout -->[/B]
</ScrollView>
</com.pineapple.TabUI.TabsContent>
8. Save it, and recompile.
9. Decompile the APK again (We only did these because we register the added resources)
10. Go to public.xml and find these (the ids are bit different than yours,)
Code:
<public type="drawable" name="tab1" id="0x7f02009c" />
<public type="drawable" name="tab2" id="0x7f02009d" />
<public type="drawable" name="tab3" id="0x7f02009e" />
<public type="id" name="tabbutton" id="0x7f090029" />
11. Now here comes the smali part, Now go to smali/com/pineapple/TabUI/*
Find this smali file, TabsContent.smali
at the TabsContent.smali, find this
0x7f050001 and change it to the public id of your "<public type="id" name="tabbutton" id="0x7f090029" />" So in mine I will change 0x7f050001 to 0x7f090029
12. Open the smali file, TabButtons.smali and find this ids.
0x7f020001 and change it according to the ids of tab1, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020001 to 0x7f02009c
0x7f020002 and change it according to the ids of tab2, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020002 to 0x7f02009d
0x7f020003 and change it according to the ids of tab3, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020003 to 0x7f02009e
13. Save everything and compile your SystemUI and push or flash it, I recommend flashing.
Download Link:
PINEAPPLEOWL
Note/Ads: Lenox V2.1 have this kind of UI.
Credits:
b16h22 for some comparison with his very own MultiPanelSwitcher
serajr for inspire for his awesome UI
LenoxDevs for there support
android.developers.com
Moderator, sorry. can you delete this post. because it has been duplicated. It dindt reload that time, something wrong with my coonection. Thanks a lot sir.
can you post a screenshot of what we get?
didn´t see the screenshots on top of page. :silly:
Maximus1a said:
can you post a screenshot of what we get?
didn´t see the screenshots on top of page. :silly:
Click to expand...
Click to collapse
https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-prn1/941806_601159553278742_1777791751_n.jpg
Very good job, thanks!
How can i do to use only two buttons? I tried to edit the smali files but when i click on any of the buttons i get force close (i don't understand much of smali). Could you explain me how to do?
Thanks again for your work
PineappleOwl said:
https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-prn1/941806_601159553278742_1777791751_n.jpg
Click to expand...
Click to collapse
content not found Attach a ss in attachment
dev.shinchan said:
content not found Attach a ss in attachment
Click to expand...
Click to collapse
Did you happen to notice that was posted 14th November 2013 ???? Perhaps that's why content not found......
dicksteele said:
Did you happen to notice that was posted 14th November 2013 ???? Perhaps that's why content not found......
Click to expand...
Click to collapse
Will you please update post for kk coz I am unable to find any suitable guide
dicksteele said:
Did you happen to notice that was posted 14th November 2013 ???? Perhaps that's why content not found......
Click to expand...
Click to collapse
:good:
https://forum.xda-developers.com/showthread.php?t=2799050
Here's a great link.
There may be something in there or something to give you an idea of how to do what you want.
Hi for all, some people liked the status bar of my Custom ROM, and i resolved make this guide. This guide is based on Stock Android 4.4.2 for Moto X. Ok, let's go!!!
This mod will add:
- Clock positioned left.
- Traffic meter.
- Battery meter.
- Battery icon small.
- Carrier name.
- A touch on the right side to turn off the screen and to open the Power Menu, press.
- Two lines of notifications.
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"
}
Requires:
- framework-res.apk deodexed
- SystemUI.apk deodexed
- apktool v2.0.0b9
Click to expand...
Click to collapse
Let's start:
Part 1: framework-res.apk
1º - Decompile framework-res.apk
2º - Go to "framework-res > res > values" and open "dimens.xml"
3º - Search for this two lines:
Code:
<dimen name="status_bar_height">25.0dip</dimen>
<dimen name="status_bar_icon_size">24.0dip</dimen>
and change the values for:
Code:
<dimen name="status_bar_height">40.0dip</dimen>
<dimen name="status_bar_icon_size">29.0dip</dimen>
4º - Save and compile the framework-res.apk.
Part 2: SystemUI.apk
1º - Decompile SystemUI.apk
2º - Go to "SystemUI > res > layout" and open "status_bar.xml"
3º - Now, copy all this code and replace by their:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:gravity="left" android:id="@id/clock" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="vertical" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="left" android:id="@id/carrier_label" android:paddingTop="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:maxLength="9" android:layout_weight="1.0" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<com.android.systemui.projectx.BatteryText android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="2.0dip" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="6.0dip" android:layout_height="15.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" />
</LinearLayout>
<com.android.systemui.projectx.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center_vertical" android:id="@id/traffic" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/onsText" android:paddingLeft="6.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="18" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="right" android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/screen_lock" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:keyRepeat="false" androidrientation="vertical" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
4º - Save and close.
5º - Go to "SystemUI > res > layout" and open "status_bar_expanded.xml"
6º - Search for this line:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/carrier_label_height" android:singleLine="true" />
change for this:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="@dimen/carrier_label_height" android:singleLine="true" />
7º - Save and close.
8º - Go to "SystemUI > res > values" and open "ids.xml"
in the end add this line:
Code:
<item type="id" name="traffic">false</item>
9º - Save and close.
10º - Download this resources > here
11º - Extract the file and put each file in its place.
12º - Compile the SystemUI.apk
Done! Enjoy!!!
I'll give thanks but. I'm not gonna use it.
Sent from Moto X
Man, is root necessary?
Mont said:
I'll give thanks but. I'm not gonna use it.
Sent from Moto X
Click to expand...
Click to collapse
Thanks
rafamoraes2 said:
Man, is root necessary?
Click to expand...
Click to collapse
I didn't understand. This is a guide, and not a app! For have this you should modify your SystemUI.apk (status bar)
Nice looking status bar, to much work yeah I'm lazy like that.
bigv5150 said:
Nice looking status bar, to much work yeah I'm lazy like that.
Click to expand...
Click to collapse
Thanks kkkkkkk
ramon20 said:
Hi for all, some people liked the status bar of my Custom ROM, and i resolved make this guide. This guide is based on Stock Android 4.4.2 for Moto X. Ok, let's go!!!
Screenshot:
Requires:
Let's start:
Part 1: framework-res.apk
1º - Decompile framework-res.apk
2º - Go to "framework-res > res > values" and open "dimens.xml"
3º - Search for this two lines:
Code:
<dimen name="status_bar_height">25.0dip</dimen>
<dimen name="status_bar_icon_size">24.0dip</dimen>
and change the values for:
Code:
<dimen name="status_bar_height">40.0dip</dimen>
<dimen name="status_bar_icon_size">29.0dip</dimen>
4º - Save and compile the framework-res.apk.
Part 2: SystemUI.apk
1º - Decompile SystemUI.apk
2º - Go to "SystemUI > res > layout" and open "status_bar.xml"
3º - Now, copy all this code and replace by their:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:gravity="left" android:id="@id/clock" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="vertical" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="left" android:id="@id/carrier_label" android:paddingTop="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:maxLength="9" android:layout_weight="1.0" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<com.android.systemui.projectx.BatteryText android:textSize="12.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="2.0dip" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="6.0dip" android:layout_height="15.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" />
</LinearLayout>
<com.android.systemui.projectx.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center_vertical" android:id="@id/traffic" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/onsText" android:paddingLeft="6.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="18" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="right" android:id="@id/home" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/screen_lock" android:layout_toRightOf="@id/recent_apps" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:keyRepeat="false" androidrientation="vertical" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
4º - Save and close.
5º - Go to "SystemUI > res > layout" and open "status_bar_expanded.xml"
6º - Search for this line:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/carrier_label_height" android:singleLine="true" />
change for this:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="@dimen/carrier_label_height" android:singleLine="true" />
7º - Save and close.
8º - Go to "SystemUI > res > values" and open "ids.xml"
in the end add this line:
Code:
<item type="id" name="traffic">false</item>
9º - Save and close.
10º - Download this smalis > here
11º - Extract the file and put the folder "projectx" in "SystemUI > smali > com > android > systemui"
12º - Compile the SystemUI.apk
Done! Enjoy!!!
Click to expand...
Click to collapse
Boy that's a lot of work for a very minimal change. Doesn't this take up more screen?
Sent from my XT1053 using XDA Premium 4 mobile app
marnold425 said:
Boy that's a lot of work for a very minimal change. Doesn't this take up more screen?
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This is not a minimal change, this is big! And yes, this take up more screen, but if you decrease the height of navigation bar of the virtual buttons, everything will be ok!!
ramon20 said:
This is not a minimal change, this is big! And yes, this take up more screen, but if you decrease the height of navigation bar of the virtual buttons, everything will be ok!!
Click to expand...
Click to collapse
I'll give it a try see if I like it if not I'll be able to revert using my stock files. But about the code to copy and paste... I see emoji everywhere and I'm pretty sure my phone don't take those and understand them.
Edit:: never mind I just realized you decompiled apks I've never done that. Can you make a flashable?
Sent from my XT1053 using XDA Premium 4 mobile app
marnold425 said:
I'll give it a try see if I like it if not I'll be able to revert using my stock files. But about the code to copy and paste... I see emoji everywhere and I'm pretty sure my phone don't take those and understand them.
Edit:: never mind I just realized you decompiled apks I've never done that. Can you make a flashable?
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
give me your SystemUI.apk
https://docs.google.com/file/d/0B8P0UMBi48WreGtVTTd4M2pfLXc/edit?usp=docslist_api
Do you need my framework res?
Sent from my XT1053 using XDA Premium 4 mobile app
---------- Post added at 07:54 PM ---------- Previous post was at 07:50 PM ----------
I'm on 4.4.3 if that makes a difference. I don't believe it should though. Really appreciate your help I rarely see developers that aren't complete jerks. You good sir are a blessing in our community!
Sent from my XT1053 using XDA Premium 4 mobile app
Is there anyway someone can attach these apps already changed so we can just install them?
Because it sure looks like a messy change
Someone just requested access to that file to edit I approved. Looks like it was edited two minutes ago. Was that you Ramon?
Sent from my XT1053 using XDA Premium 4 mobile app
marnold425 said:
https://docs.google.com/file/d/0B8P0UMBi48WreGtVTTd4M2pfLXc/edit?usp=docslist_api
Do you need my framework res?
Sent from my XT1053 using XDA Premium 4 mobile app
---------- Post added at 07:54 PM ---------- Previous post was at 07:50 PM ----------
I'm on 4.4.3 if that makes a difference. I don't believe it should though. Really appreciate your help I rarely see developers that aren't complete jerks. You good sir are a blessing in our community!
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
yes, give your framework-res.apk too
pintasmapila said:
Is there anyway someone can attach these apps already changed so we can just install them?
Because it sure looks like a messy change
Click to expand...
Click to collapse
is not good because can cause some error, and if i put the guide, anyone can port for any rom
marnold425 said:
Someone just requested access to that file to edit I approved. Looks like it was edited two minutes ago. Was that you Ramon?
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
i have edit the theard, was missing some things. hey, the link are request permission! what is this???
ramon20 said:
yes, give your framework-res.apk too
is not good because can cause some error, and if i put the guide, anyone can port for any rom
i have edit the theard, was missing some things. hey, the link are request permission! what is this???
Click to expand...
Click to collapse
Google drive. I can't post files with XDA app so I linked you to my Google drive Moto X development folder you have access to modify and make comments I'll leave them both up and if anyone has a stock moto x they can use these files.
https://drive.google.com/folder/d/0B8P0UMBi48WrX3k2ZE5jdUxxblE/edit
Request access there and you can find systemui.apk and I'll upload my framework there as well when you edit them put a comment on the folder so we know you edited it.
Sent from my XT1053 using XDA Premium 4 mobile app
marnold425 said:
Google drive. I can't post files with XDA app so I linked you to my Google drive Moto X development folder you have access to modify and make comments I'll leave them both up and if anyone has a stock moto x they can use these files.
https://drive.google.com/folder/d/0B8P0UMBi48WrX3k2ZE5jdUxxblE/edit
Request access there and you can find systemui.apk and I'll upload my framework there as well when you edit them put a comment on the folder so we know you edited it.
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
i really don't know user the drive, i prefer that you make a upload in the mediafire or other
ramon20 said:
i really don't know user the drive, i prefer that you make a upload in the mediafire or other
Click to expand...
Click to collapse
Ah okay sorry, I just use Google Drive because it's integrated into our phones and works well with other Google products. I don't have any other hosting accounts. But thanks for trying!!
Sent from my XT1053 using XDA Premium 4 mobile app
marnold425 said:
Ah okay sorry, I just use Google Drive because it's integrated into our phones and works well with other Google products. I don't have any other hosting accounts. But thanks for trying!!
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
i right have make the download, and i'm editing
marnold425 said:
Ah okay sorry, I just use Google Drive because it's integrated into our phones and works well with other Google products. I don't have any other hosting accounts. But thanks for trying!!
Sent from my XT1053 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
well, i have got a error when compiling the framework-res :/ i don't know why, i will study this, and after i will tell to you. sorry
ramon20 said:
well, i have got a error when compiling the framework-res :/ i don't know why, i will study this, and after i will tell to you. sorry
Click to expand...
Click to collapse
Alright thanks for your effort and time much appreciated.
Sent from my XT1053 using XDA Premium 4 mobile app