Hi Sony Users,
Almost a year waiting for Sony Improves errors in Theme Engine, which have still not been corrected.
I decided to show how remove some bugs in SystemUI
Requirements:
- BRAIN (Moust important )
- ApkTool any
- Notepad++
- framework-res.apk
- SemcGenericUxpRes.apk
- SystemUI.apk
Navigation Button Bug:
1. Decompile SystemUI.apk
2. Copy my files to right folder
3. Open SystemUI.apk\res\values\drawables.xml
4. Replice all this lines:
Code:
<item type="drawable" name="somc_navbar_back_btn">@drawable/ic_sysbar_back</item>
<item type="drawable" name="somc_navbar_back_ime_btn">@drawable/ic_sysbar_back_ime</item>
<item type="drawable" name="somc_navbar_home_btn">@drawable/ic_sysbar_home</item>
<item type="drawable" name="somc_navbar_menu_btn">@drawable/ic_sysbar_menu</item>
<item type="drawable" name="somc_navbar_recent_btn">@drawable/ic_sysbar_recent</item>
<item type="drawable" name="somc_navbar_ime_switcher_btn">@drawable/ic_ime_switcher_default</item>
<item type="drawable" name="somc_navbar_back_btn_land">@drawable/ic_sysbar_back_land</item>
<item type="drawable" name="somc_navbar_back_ime_btn_land">@drawable/ic_sysbar_back_ime_land</item>
<item type="drawable" name="somc_navbar_home_btn_land">@drawable/ic_sysbar_home_land</item>
<item type="drawable" name="somc_navbar_menu_btn_land">@drawable/ic_sysbar_menu_land</item>
<item type="drawable" name="somc_navbar_recent_btn_land">@drawable/ic_sysbar_recent_land</item>
This:
Code:
<item type="drawable" name="ic_sysbar_home">@drawable/somc_navbar_home_btn</item>
<item type="drawable" name="ic_sysbar_recent">@drawable/somc_navbar_recent_btn</item>
<item type="drawable" name="ic_sysbar_back">@drawable/somc_navbar_back_btn</item>
<item type="drawable" name="ic_sysbar_menu">@drawable/somc_navbar_menu_btn</item>
<item type="drawable" name="somc_navbar_ime_switcher_btn">@drawable/ic_ime_switcher_default</item>
5. Save File
6. SystemUI.apk\res\layout\
In this files:
navigation_bar.xml
screen_pinning_request_buttons_land.xml
screen_pinning_request_buttons.xml
Change names ( If this names are on other xml files , also need to change it )
Code:
this: to this:
ic_sysbar_back - somc_navbar_back_btn
ic_sysbar_home - somc_navbar_home_btn
ic_sysbar_recent - somc_navbar_recent_btn
ic_sysbar_recent_land - somc_navbar_recent_btn_land
ic_sysbar_home_land - somc_navbar_home_btn_land
ic_sysbar_back_land - somc_navbar_back_btn_land
Exapmple navigation_bar.xml
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="Red"]ic_sysbar_back[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="red"]ic_sysbar_home[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="red"]ic_sysbar_recent[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin" />
<FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_back_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_home_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/[COLOR="RoyalBlue"]somc_navbar_recent_btn[/COLOR]" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin" />
<FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">
7. Save File
8. From SystemUI.apk\res\
Remowe all PNG Files
ic_sysbar_home.png
ic_sysbar_recent.png
ic_sysbar_back.png
ic_sysbar_menu.png
FROM ALL FOLDERS
/drawable-hdpi
/drawable-xhdpi
/drawable-xxhdpi
etc.
9. Done
Volume control Bug:
1. Open SystemUI.apk\res\layout\ status_bar_toggle_slider.xml
Change this
Code:
<com.android.systemui.settings.ToggleSeekBar android:id="@id/slider" android:paddingTop="16.0dip" android:paddingBottom="16.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:thumb="[COLOR="red"]@drawable/ic_brightness_thumb[/COLOR]" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_brightness" android:paddingStart="20.0dip" android:paddingEnd="20.0dip" android:layout_toEndOf="@id/toggle" android:layout_alignParentStart="true" android:layout_alignParentEnd="true" android:splitTrack="false" />
To this:
Code:
<com.android.systemui.settings.ToggleSeekBar android:id="@id/slider" android:paddingTop="16.0dip" android:paddingBottom="16.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:thumb="[COLOR="RoyalBlue"]@android:drawable/somc_seekbar_thumb_selector_dark[/COLOR]" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_brightness" android:paddingStart="20.0dip" android:paddingEnd="20.0dip" android:layout_toEndOf="@id/toggle" android:layout_alignParentStart="true" android:layout_alignParentEnd="true" android:splitTrack="false" />
2. Save and done
3. Compile and sign app
Creadits:
RXS MoonBreakers Team
My Ready Mod:
[Mod][5.1.1]Theme Accent SystemUI
Screens:
{
"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"
}
Great tut for fixing this bug
Awesome guide bro so easy.. I wonder why Sony dev doesn't fix it till now
Sent from my C6603 using Tapatalk
shehabskull said:
Awesome guide bro so easy.. I am wonder why Sony dev doesn't fix it till now
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Sony: Simplely, this is not bugs.
shehabskull said:
Awesome guide bro so easy.. I am wonder why Sony dev doesn't fix it till now
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
ReadReadz said:
Sony: Simplely, this is not bugs.
Click to expand...
Click to collapse
For Sony lot of stuff is not BUG
Ambor, you forgot to add somc_seekbar_thumb_selector_dark file, when i've tried to do 'Volume control Bug' it misses this file when building
edi194 said:
Ambor, you forgot to add somc_seekbar_thumb_selector_dark file, when i've tried to do 'Volume control Bug' it misses this file when building
Click to expand...
Click to collapse
You need add this:
@android:drawable/somc_seekbar_thumb_selector_dark
Red mean that file is in framework-res.apk
Ok, sorry for mistake. Everything is working on C6603 with stock 5.1 ^^
Cool guide
Nice Tut!
But I have some requests for further modding/fixing bugs:
Is it possible to remove the (for me annoying) status bar theme color tint that is present in apps like chrome?
Thanks in Advance!!
anyone else tried dis tut??? nav bar still changes wen editing quicksettings & in album!
whalesplaho said:
anyone else tried dis tut??? nav bar still changes wen editing quicksettings & in album!
Click to expand...
Click to collapse
For Z2 try my
http://forum.xda-developers.com/cro...od-theme-accent-systemui-navi-button-t3216761
Nice Guide - Thank you!
Ambor said:
For Z2 try my
http://forum.xda-developers.com/cro...od-theme-accent-systemui-navi-button-t3216761
Click to expand...
Click to collapse
am using a modded systemui buddy... please help!
ReadReadz said:
Sony: Simplely, this is not bugs.
Click to expand...
Click to collapse
And Sony's right. Those are not bugs, just stylistic choices. Speaking as a graphic designer here, Sony theme may not be my favourite, as a matter of taste, but it is fully functional. Bugs are things that shouldn't work, which is not the case. The OP is theming stuff, which is okay, but not fixing a single thing.
whalesplaho said:
am using a modded systemui buddy... please help!
Click to expand...
Click to collapse
Check this step again
8. From SystemUI.apk\res\
Remowe all PNG Files
ic_sysbar_home.png
ic_sysbar_recent.png
ic_sysbar_back.png
ic_sysbar_menu.png
Renmazuo said:
And Sony's right. Those are not bugs, just stylistic choices. Speaking as a graphic designer here, Sony theme may not be my favourite, as a matter of taste, but it is fully functional. Bugs are things that shouldn't work, which is not the case. The OP is theming stuff, which is okay, but not fixing a single thing.
Click to expand...
Click to collapse
I see that you're an expert on the subject. You say I got a reply from Sony, you do not work for them?
This is one of the absurdities of Sony Theme Engine, which is full of them. Sony piecemeal it improves (Lollipop almost a year)
I will not explain, because I would not understand. How would you like to blurt it out find another topic.
Ambor said:
I see that you're an expert on the subject. You say I got a reply from Sony, you do not work for them?
This is one of the absurdities of Sony Theme Engine, which is full of them. Sony piecemeal it improves (Lollipop almost a year)
I will not explain, because I would not understand. How would you like to blurt it out find another topic.
Click to expand...
Click to collapse
Hello brother
I have tried ur tutorial but not working for me. I have followed all correctly. And only Brightness slider is working as per ur tutorial. And u mean delete pngs from SystemUI/res ? Is it SystemUI/res/drawable-xxhdpi folder ?
Any help. ?
I think something is missing in ur tutorial..
EDIT
===
I have tried ur modded apk also. But still i can't find any difference in album . Only other things changed.. Pls take a look at this..
First one is ur modded apk and second one is un modded pure Z2 apk
Files must delete from all folders
/drawable-hdpi
/drawable-xhdpi
/drawable-xxhdpi
etc.
Related
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 FOR S2 USERS I am ON cm-9-20120916-NIGHTLY-galaxys2 you can use it directly replacing it with yours
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>
COMPLETED
Now what i want is to hide the clock while statusbar expended is open
looks nice mind sharing?
mysterio619 said:
looks nice mind sharing?
Click to expand...
Click to collapse
Make a backup
Read some pages
http://forum.xda-developers.com/showthread.php?p=31718198
Sent from my GT-I9100 using xda app-developers app
released for Testing
Testing only
1st mount /system in cwm
http://www.mediafire.com/?3c1scc10q4nkp4y
Let me know it works or not
Updated check op
is this work in ics stock based rom??
Gabrieltan said:
is this work in ics stock based rom??
Click to expand...
Click to collapse
i dont think so
if you know how to use the codes and compile it then you can
Amazing Work!
But when i change theme, maybe is for them or not but status bar disappear.
I tested the Mod Version in a CyanogenMod 9.1.0 Stable obviously this mod is for nightlies?
Very nice work man!
its bcoz you are applying jellubean theme
and if u get anynotification or rebot you will see statusbar again
dark_zhero said:
Amazing Work!
But when i change theme, maybe is for them or not but status bar disappear.
I tested the Mod Version in a CyanogenMod 9.1.0 Stable obviously this mod is for nightlies?
Very nice work man!
Click to expand...
Click to collapse
nitinvaid said:
its bcoz you are applying jellubean theme
and if u get anynotification or rebot you will see statusbar again
Click to expand...
Click to collapse
Yes i Set a System Theme and after set a Jelly Bean Theme and status bar disappear (or any theme) and reboot the phone and now works.
but is tedious
Maybe you have create a Right clock (original) mod?
Regards
And sorry for my Google's Translate English
dark_zhero said:
Yes i Set a System Theme and after set a Jelly Bean Theme and status bar disappear (or any theme) and reboot the phone and now works.
but is tedious
Maybe you have create a Right clock (original) mod?
Regards
And sorry for my Google's Translate English
Click to expand...
Click to collapse
i will create it dont worry but not now
already have two much request
UPDATE 21-09-2012
-removed center clock
-statusbar hide problem
-some other allingments
DOWNLOAD LINK v2
http://www.mediafire.com/?bivyy24x690ahls
nitinvaid said:
UPDATE 21-09-2012
-removed center clock
-statusbar hide problem
-some other allingments
DOWNLOAD LINK v2
http://www.mediafire.com/?bivyy24x690ahls
Click to expand...
Click to collapse
This what im missing in cm10. Thanks sir!
" In Cody, we trust "
Can i have a small request sir? Maybe if you have time can you hide the notification when it is drop down like this..
thanks in advance! Very much appreciated your work!
" In Cody, we trust "
huwande1acruz said:
Can i have a small request sir? Maybe if you have time can you hide the notification when it is drop down like this..
thanks in advance! Very much appreciated your work!
" In Cody, we trust "
Click to expand...
Click to collapse
My friend i am also working on the same do you have any idea how to do that
How to Change clock color in systemUI ?
ararat1824 said:
How to Change clock color in systemUI ?
Click to expand...
Click to collapse
you can not u have to decompile systemui
or use another theme
nitinvaid said:
you can not u have to decompile systemui
or use another theme
Click to expand...
Click to collapse
ok but in systemui Where is the edit which file for change clock color
Good day devs, I am making a guide here, it was like a 4.1.2 SystemUI. Partially I am not fond of tabbed ui so I made it with minimalizing sir SpaceCaker code.
Original Thread:
http://forum.xda-developers.com/showthread.php?t=2315342
Click to expand...
Click to collapse
Like this,
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. Pull SystemUI.apk
2. Decompile
3. Now, go to /res/layout/statusbar_expanded.xml
4.After opening it, you will see some code like this,
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
Add this code after it,
Code:
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<include layout="@layout/header" android:id="@id/headerid" android:layout_width="fill_parent" android:layout_height="48.0dip" />
</RelativeLayout>
<com.pineapple.PineappleLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/quickpanel_quick_settings_secondlayout" />
</LinearLayout>
and before
Code:
</com.android.systemui.statusbar.ExpandedView>
add this,
Code:
</com.pineapple.PineappleLayout>
It should be like this,
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:orientation="horizontal" android:background="@drawable/quickpanel_plmn_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<include android:id="@id/header" android:layout_width="fill_parent" android:layout_height="48.0dip" layout="@layout/header" />
</RelativeLayout>
<com.pineapple.PineappleLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/quickpanel_quick_settings_second" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<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/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" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
</FrameLayout>
</LinearLayout>
</com.pineapple.PineappleLayout>
</com.android.systemui.statusbar.ExpandedView>
5. Go to /res/values/id and add this
Code:
<item type="id" name="headerid">false</item>
<item type="id" name="clock">false</item>
<item type="id" name="panel">false</item>
6. We are finish at ID's. Now, at the string.xml, add this,
Code:
<string name="statusbardateformat">"%1$s
%2$s"</string>
7.Go back to /res/layout/statusbar.xml, add the blue ones to your statusbar.xml
Code:
[COLOR="Blue"]<com.android.systemui.statusbar.StatusBarServiceLRPull android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.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="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.Clock android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textColor="#ffffffff" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
[COLOR="Blue"]</com.android.systemui.statusbar.StatusBarServiceLRPull>[/COLOR]
8. Download this and put it in your systemui.
https://www.dropbox.com/s/nz18cj7rqdppuc7/pineappleadd.zip?m
8. Save everything and recompile it, wait, theres more. . .
9. After recompiling, decompile it again, go to /res/values/public.xml. Find these
<public type="drawable" name="btn_tg"
<public type="drawable" name="btn_toggles_normal"
Click to expand...
Click to collapse
10. Go to /smali/com/pineapple/SecondLayout,open
ffind
0x7f020180
Click to expand...
Click to collapse
and change to the public id of <public type="drawable" name="btn_toggles_normal". . .
and also find this,
0x7f02017f
Click to expand...
Click to collapse
and chage it to public ID of <public type="drawable" name="btn_tg". . .
11. Go to /smali/com/android/systemui/statusbar/policy/DateView
find
0x7f07002a
Click to expand...
Click to collapse
and replace it with the public ID of <public type="string" name="statusbardateformat"
12. Save everything and recompile. Done.
Hyperion 2.5 : https://www.dropbox.com/s/r3t4cv9on5pgixz/SystemUIH82.5.zip
Stock DXF1 : https://www.dropbox.com/s/mgfzvowf0ljvinv/SystemUIStock.zip
Click to expand...
Click to collapse
Credits to:
SPACECAKER for his awesome guide
DCSMS
Marinalin85
Matz
AuliaYF
The code in your file is totally done by SpaceCaker so you have no right to rename the "spacecaker" smali file folder to "pineapple" this is called stealing others work
Even if you have given him credits that doesn't mean that you got the permission from him
I would recommend you to point to SpaceCaker's Guide Thread for the Smali Files
Though I find this guide simplistic as compared to SpaceCaker's One
nolinuxnoparty said:
The code in your file is totally done by SpaceCaker so you have no right to rename the "spacecaker" smali file folder to "pineapple" this is called stealing others work
Even if you have given him credits that doesn't mean that you got the permission from him
I would recommend you to point to SpaceCaker's Guide Thread for the Smali Files
Though I find this guide simplistic as compared to SpaceCaker's One
Click to expand...
Click to collapse
Hi sir, I got permission from sir SpaceCaker to modify some smali, and he approved it.
3r41nl33n said:
Hi sir, I got permission from sir SpaceCaker to modify some smali, and he approved it.
Click to expand...
Click to collapse
Good Then
@3r41nl33n
will this work on galaxy y dous stock deodexed systemui
EDIT= ERROR WHILE RECOMPILING
Omkar$ said:
@3r41nl33n
will this work on galaxy y dous stock deodexed systemui
Click to expand...
Click to collapse
It will work sir. As what sir SpaceCaker did, it work with all GB Rom, thus this one too. Cause the codes are exactly the same as his work.
Whats the problem sir? Can i see the log?
Sent from my GT-S5360 using Tapatalk 2
Omkar$ said:
@3r41nl33n
will this work on galaxy y dous stock deodexed systemui
EDIT= ERROR WHILE RECOMPILING
Click to expand...
Click to collapse
Whats the problem? Can I see your logs?
Sent from my GT-S5360 using Tapatalk 2
it a modifed method on LRPull
the Left-Right Pull method are modified from mainalin85's theme, which is i've made that method for marinalin, i still don't give him permission to share but my method now modified by SpaceCaker without my permission.
http://forum.xda-developers.com/showthread.php?t=2315342&page=15
3r41nl33n said:
Whats the problem? Can I see your logs?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Lol statusbar gon
After flashing
Sent from my GT-S6102 using xda app-developers app
I think your guide is not perfect just like in your SS there is no notifications at the 2nd panel of your statusbar..
btw my statusbar already has a statusbarheaderview. cAn you make a tut for it?
Sent from my GT-S5360 using xda premium
Plz tell me, how to use it on my galaxy y because I'm a newbie.
markmellarpes said:
I think your guide is not perfect just like in your SS there is no notifications at the 2nd panel of your statusbar..
btw my statusbar already has a statusbarheaderview. cAn you make a tut for it?
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
I moved the notification at the otherlayout. It works with someone. I saw some at fb groups.they made it.
Sent from my GT-S5360 using Tapatalk 2
AuliaYF said:
the Left-Right Pull method are modified from mainalin85's theme, which is i've made that method for marinalin, i still don't give him permission to share but my method now modified by SpaceCaker without my permission.
http://forum.xda-developers.com/showthread.php?t=2315342&page=15
Click to expand...
Click to collapse
I didnt know about that. I put credits on you. :/
markmellarpes said:
I think your guide is not perfect just like in your SS there is no notifications at the 2nd panel of your statusbar..
btw my statusbar already has a statusbarheaderview. cAn you make a tut for it?
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
It has? So I can say sir,
<RelativeLayOut>StatusBarHeaderView. . . . . . . .
. . . . . .
. . .<RelativeLayout> is equal to /res/layout/header.xml and delete the smali/com. . . /DateView* at my smali. Thats what I can teach now, its hard to explain sir.
imElectronica said:
Plz tell me, how to use it on my galaxy y because I'm a newbie.
Click to expand...
Click to collapse
Pardon sir, I cant understand what you are saying sir, can you make it clear?
Omkar$ said:
Lol statusbar gon
After flashing
Sent from my GT-S6102 using xda app-developers app
Click to expand...
Click to collapse
Can I take your logcat?
3r41nl33n said:
I moved the notification at the otherlayout. It works with someone. I saw some at fb groups.they made it.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
How to use it?
imElectronica said:
How to use it?
Click to expand...
Click to collapse
It can change your Notification Pulldown layout sir.
3r41nl33n said:
It can change your Notification Pulldown layout sir.
Click to expand...
Click to collapse
I know but how i implement this systemUI on my phone.
3r41nl33n said:
I didnt know about that. I put credits on you. :/
Click to expand...
Click to collapse
i can't see my name on your thread.
Good morning,
I have searched a long time for a tutorial modification date of the status bar style ICS. All I can find are for the JB style.
Could anyone help me?
I've tried to decompile and check the command line, inserting them in status_bar_expanded but it only offers no modification.
Is there anything more to be done?
My idea is that it looks like this (only SystemUI): http://forum.xda-developers.com/showthread.php?t=2287815
Thank you!
Maybe this can help?
http://forum.xda-developers.com/showthread.php?t=2203166
Nightglade said:
Maybe this can help?
http://forum.xda-developers.com/showthread.php?t=2203166
Click to expand...
Click to collapse
Thanks, but this post is about estijo JB and I look for is ICS style.
JSS³ said:
Thanks, but this post is about estijo JB and I look for is ICS style.
Click to expand...
Click to collapse
Sorry I'm not quite sure what you mean? Are you running JB or ICS? The tutorial should help you to understand how to modify the status bar towards the style that you like and it should work for both ICS and JB. I'm using ICS
Nightglade said:
Sorry I'm not quite sure what you mean? Are you running JB or ICS? The tutorial should help you to understand how to modify the status bar towards the style that you like and it should work for both ICS and JB. I'm using ICS
Click to expand...
Click to collapse
I'm using GB, and I intend to leave the date ICS style.
The tutorial is great, but does not apply to the case.
JSS³ said:
I'm using GB, and I intend to leave the date ICS style.
The tutorial is great, but does not apply to the case.
Click to expand...
Click to collapse
Ah sorry, I didn't read the title properly How about this?
http://forum.xda-developers.com/showthread.php?t=1678470
Nightglade said:
Ah sorry, I didn't read the title properly How about this?
http://forum.xda-developers.com/showthread.php?t=1678470
Click to expand...
Click to collapse
This is my post!
I improved a lot today, but I would add the date. Would be much better!
I appreciate the effort!
JSS³ said:
This is my post!
I improved a lot today, but I would add the date. Would be much better!
I appreciate the effort!
Click to expand...
Click to collapse
Oh my, you're right. I'm so inattentive today, I should stop before I hurt myself Sorry. I hope you find what you're looking for
Nightglade said:
Oh my, you're right. I'm so inattentive today, I should stop before I hurt myself Sorry. I hope you find what you're looking for
Click to expand...
Click to collapse
No problem friend. And thank you!
Did you meen that mod http://forum.xda-developers.com/showthread.php?t=2235087
elshur said:
Did you meen that mod http://forum.xda-developers.com/showthread.php?t=2235087
Click to expand...
Click to collapse
No friend. These tutorials are great but they treat about JB style.
What I try seems to be simpler, but I can not do it.
Thanks for the help!
The idea is that it looks like:
JSS³ said:
The idea is that it looks like:
Click to expand...
Click to collapse
I am slightly more coherent now. I'm not sure if this can help you, but this is the content of my:
status_bar_expanded_header.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/header" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<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:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" android:baselineAligned="false">
<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.Expanded.Date" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" android:maxLines="2" android:singleLine="false" />
<ImageView android:id="@id/settings_button" android:visibility="gone" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<Button android:textAppearance="@style/TextAppearance.StatusBar.ClearButton" android:id="@id/clear_all_button" android:background="@drawable/btn_clear" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="100.0dip" android:layout_height="46.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</LinearLayout>
</LinearLayout>
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">
<com.lidroid.systemui.quickpanel.PowerWidget android:id="@id/quickpanel" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" 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>
</FrameLayout>
</com.android.systemui.statusbar.phone.ExpandedView>
and styles (/res/values/style.xml) relating to the expanded clock
Code:
<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">28.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">11.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
</style>
You said that you only edited status_bar_expanded. Did you try the status_bar_expanded_header? I've not personally played around with it, but the date is mentioned in that and not on status_bar_expanded.xml
You're also very likely to be missing the style associated with any attempt to add a date in the expanded header in a GB rom. I've not played around with GB nor do I have a phone with a GB rom on it, so I can't personally test this out. You can take a look at the code above me and see if that can help you figure anything out. If not, you're welcome to send me your SystemUI.apk and I'll take a look.
This might also be helpful for you
http://forum.xda-developers.com/showthread.php?t=2384531
JSS³ said:
The idea is that it looks like:
Click to expand...
Click to collapse
Ok i understanhd; in fact its come from DateView.smali manipulation or modification ? Try to found from another SystemUI, then paste and recompil it
otherwise, you can modify the style of the Date from SystemUI.apk /res /values /styles.xml
elshur said:
Ok i understanhd; in fact its come from DateView.smali manipulation or modification ? Try to found from another SystemUI, then paste and recompil it
otherwise, you can modify the style of the Date from SystemUI.apk /res /values /styles.xml
Click to expand...
Click to collapse
Yes! That was it!!
I compared one by one until you find the required files, and realized that DateView.smali DateView.smali§1 and were not in my SystemUI.
After the addition was perfect!
Thank you all for your help!!
Good day devs, I have something new here not new but I think it is.
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
PineappleOwl said:
Good day devs, I have something new here not new but I think it is.
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.
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
Click to expand...
Click to collapse
Gud job buddy.. :good: :good: :good: :good: :good: :highfive: :highfive: :highfive: :highfive:
Nitzz said:
Gud job buddy.. :good: :good: :good: :good: :good: :highfive: :highfive: :highfive: :highfive:
Click to expand...
Click to collapse
Hey, dont quote the whole long post, It cause lag on tapatalk
Gửi từ Galaxy Y bằng cách sử dụng tia X truyền từ mặt trời!
here is mine haha XD
Sent from my GT-S5360 using xda premium
Sent from my GT-S5360 using xda premium
markmellarpes said:
View attachment 2370794
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Cant see the picture sir. Its too blurred,eeh,im on mobile right now. But i can say your systemui is awesome.
Sent from my GT-S5360 using Tapatalk 2
Awesome Mod Dude! Will surely try it.. :good:
MuSaddiq1410 said:
Awesome Mod Dude! Will surely try it.. :good:
Click to expand...
Click to collapse
Thanks sir,and post if it works sir. Without b16h22,this will be nothing, hes awesome.
Sent from my GT-S5360 using Tapatalk 2
PineappleOwl said:
Thanks sir,and post if it works sir. Without b16h22,this will be nothing, hes awesome.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Please don't call me Sir..it feels awkward because I'm only 13 and younger than you !! XD
Anyways I will post if it works
Awesome guide! Thanks. Will try later.
Sent from my GT-S5570I using xda app-developers app
PineappleOwl said:
Cant see the picture sir. Its too blurred,eeh,im on mobile right now. But i can say your systemui is awesome.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
it is because of you master haha i try to upload em 1 by 1
this guide is good so dont forget to give thanks to our master pineappleowl..haha :thumbup:
Sent from my GT-S5360 using xda premium
MuSaddiq1410 said:
Please don't call me Sir..it feels awkward because I'm only 13 and younger than you !! XD
Anyways I will post if it works
Click to expand...
Click to collapse
Even if you are younger or older, respecting is a must sir. good luck then.
m4RinKo2 said:
Awesome guide! Thanks. Will try later.
Sent from my GT-S5570I using xda app-developers app
Click to expand...
Click to collapse
post some ss if done sir please?hehe
markmellarpes said:
it is because of you master haha i try to upload em 1 by 1
View attachment 2370866
View attachment 2370868
View attachment 2370869
View attachment 2370871
View attachment 2370872
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
I saw it on the group master, you are awesome as usual..xD mine is imageview.
Sent from my GT-S5360 using Tapatalk 2
Can u share yr sytemui.apk bro?? @markmellarpes
ThE ROckStar said:
Can u share yr sytemui.apk bro??
Click to expand...
Click to collapse
Why sir? You can make it. if you insist,check lenox rom, it has that kind of ui.
Sent from my GT-S5360 using Tapatalk 2
PineappleOwl said:
Why sir? You can make it. if you insist,check lenox rom, it has that kind of ui.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Grow up child i was askingfor just an apk...for the sake of android dont just put guides if u cant share the apk..
And u r telling to me download whole rom for a mere apk..grow up
ThE ROckStar said:
Grow up child i was askingfor just an apk...for the sake of android dont just put guides if u cant share the apk..
And u r telling to me download whole rom for a mere apk..grow up
Click to expand...
Click to collapse
Oh sorry sir. Thats rude. You can ask in a better and respectful manner sir, here it is, sorry again.
https://db.tt/mWYO1Mni
Sent from my GT-S5360 using Tapatalk 2
PineappleOwl said:
sorry sir. Thats rude. You can ask in a better and respectful manner sir, here it is, sorry again.
https://db.tt/mWYO1Mni
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
srry boy that was rude..
but I like ur behaviour...
hats off...might try ur rom aswell
do you accept donations?? want to send u a beer?
ThE ROckStar said:
srry boy that was rude..
but I like ur behaviour...
hats off...
do you accept donations??
Click to expand...
Click to collapse
I dont have sir,I am still under 18. Thanks by theway. Hehe. Set aside it for your snack.
Sent using Neighbors Wifi
Lets say I was succesful in porting it on my Desire X. But how to handle the tabs?? as in, when I click the tabs how do I put something inside them? Should there be new xml files to handle it?
InfinityShooter said:
Lets say I was succesful in porting it on my Desire X. But how to handle the tabs?? as in, when I click the tabs how do I put something inside them? Should there be new xml files to handle it?
Click to expand...
Click to collapse
You can try to add another layout by making a linear layout with only height and width attrib and a nested <include layout.> something like that or you can try to make another linearlayout and put it there.
Sent using Neighbors Wifi
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"
}
Long Description: Three panel with Swipe Animation, as you can see on the image, you will say that it will have conflict to swipe to remove notifications but it will not. It is because you will swipe at your "header" (or any place you want to put the swipe detector) only, BUT the whole page of UI will switch and the header will stay. You cant swipe at the bottom part but only in the part of the header of UI so that's why it will not have any conflicts to swipe to remove notification. (My header is where the smart buddy is.)
Short Description: Two class, first class was the swipe detector, the second class will switch and will receive what kind of swipe happened.
What YOU need:
1. know how to decompile and recompile apks.
2. Some experience.
---------STEPS--------
1.) Decompile your SystemUI.apk
2.) Go to res/layout/status_bar_expanded.xml open it and cover your header with this code.
Code:
<com.lenox.multiswipe.headerswipe android:layout_width="fill_parent" android:layout_height="wrap_content">
<(your header)/>
</com.lenox.multiswipe.headerswipe>
Example of my header cover by the code (The place of carrier's label act as my header):
Code:
<com.lenox.multiswipe.headerswipe android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:background="@drawable/quickpanel_plmn_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
<Button android:textSize="13.0sp" android:layout_gravity="center_vertical" 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="@string/status_bar_clear_all_button" style="?android:attr/buttonStyleSmall" />
</LinearLayout>
</com.lenox.multiswipe.headerswipe>
3.) Then on the same xml, cover the first page of your UI, my first page of UI was the notifications so ... just look at the code below (hard to explain sorry xD) :
Code:
<com.lenox.multiswipe.multiswipe android:id="@id/ms" android:layout_width="fill_parent" android:layout_height="fill_parent">
[B]<ScrollView[/B] android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="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" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
[B]<LinearLayout[/B] android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textColor="#ff000000" android:textSize="20.0dip" android:gravity="center_vertical|center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="secondlayout" />
</LinearLayout>
[B]<LinearLayout[/B] android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textColor="#ff000000" android:textSize="20.0dip" android:gravity="center_vertical|center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="thirdlayout" />
</LinearLayout>
</com.lenox.multiswipe.multiswipe>
REMINDER: You must have atleast 3 view or layouts for it to work otherwise your status bar will be gone missing. So my first view was the ScrollView (firstpage), second view/layout was the linearlayout(second page) and third view/layout was another linearlayout(thirdpage). It's up to you what you want to put in that pages. You can have three Relativelayouts, linearlayouts, or scramble, etc..
4.) Close and save, then go to res/values/ids.xml and add this line before </resources> at the bottom.
Code:
<item type="id" name="ms">false</item>
</resources>
5.) Close and save, then recompile the SystemUI.apk.
6.) Get your recompiled SystemUI.apk, and decompile it again. Then go to smali/com and add the lenox folder (with smalis inside) Download it the attachment part below.
7.) Get the public id of the id you put in the ids.xml earlier. To get it, go to res/values/public.xml then find the public id:
Code:
<public type="id" name="ms" id="(Important code)" />
(Remember the Important code.)
8.) Go to smali/com/lenox/multiswipe/multiswipe.smali then find this line:
Code:
.line 64
const v3, 0x7f040001
And replace the 0x7f040001 with your Important code/public id you get at step 7.
9.) Save all, Close then recompile it.
10.) flash or push your recompile SystemUI.apk.
That's it. Report if I forgot something and the credit goes to you .
Have a party. LOL
CREDITS:
github.com
Google.com (especially StackOverFlow.com)
[email protected] (ViewFlipper Source Code)
[email protected] (exact animation) (a very nice guy )
[email protected]
forum.xda-developers.com
Lenox Devs :laugh:
Handy guide...looks great
Nice one man!
Wow! Great! :good:
Nice guide buddy! :thumbup::thumbup::thumbup:
Just looking for this thanx man!!
Sent from my GT-S5360 using Tapatalk 2
and what does the last two layout for ? is it toogles ? or what ?
Suggestion :
i think you should remove the lidroid on the second and third panel to make it more cool.
Mranggapo said:
and what does the last two layout for ? is it toogles ? or what ?
Click to expand...
Click to collapse
It's up to you what you want to put inside them. Example, your toggles is on second layout, information about you is on third layout. Because there's a guide on two panel swipe, but it has conflict on swipe to remove notification so i create that won't conflict on swipe to remove and it has three panels.
Sorry for my english. xD
Luwiji said:
i think you should remove the lidroid on the second and third panel to make it more cool.
Click to expand...
Click to collapse
It was not lidroid, they are stock toggles, if you have lidroid, you can put them in second or third layout to keep layouts clean. I dont have time (and skills xD) on designing my UI. This was only a mod for three panel with swipe animation and it's up to you on how will you use it.
hi sir tenten .i just want to ask if there is a way to make the swipe animation faster? thanks for this awesome tut
markmellarpes said:
hi sir tenten .i just want to ask if there is a way to make the swipe animation faster? thanks for this awesome tut
Click to expand...
Click to collapse
Ill remake it and use the animation of spacecaker from b16h22, becuase i think it is exact . And also I will make it faster. thanks for suggesting sir
Great guide buddy, but i see no point in having 2-3 layout's .. :thumbup:
Mr.Gentleman said:
Great guide buddy, but i see no point in having 2-3 layout's .. :thumbup:
Click to expand...
Click to collapse
For me also xD, but I saw some roms/mods that have 2-3 layouts. Example, 2 panel swiping(conflict with swipe to remove) and 3 page UI. I just make it three and remove the conflict on swipe to remove. It's up to them what they want to put inside and how they will use it. haha.
And by the way, I like your signature. hahahaha.
Thread Updated
Thread Updated, exact and faster animation.
Thanks to Spacecaker and b16h22.
tentenponce said:
Thread Updated, exact and faster animation.
Click to expand...
Click to collapse
thats what ive been waiting for.ahaha good job sir .gonna try it now :thumbup:
Sent from my GT-S5360 using xda premium
Can i Get the Java source of the app OP
samsoul16 said:
Can i Get the Java source of the app OP
Click to expand...
Click to collapse
I want to push the source on github, but my internet connection is </3 too too slow. xD
tentenponce said:
I want to push the source on github, but my internet connection is </3 too too slow. xD
Click to expand...
Click to collapse
buddy thats gr8. but actually i am a in a little hurry can u pm me the source or just the java files if u dont mind. ty
Now this guide is just awesome!!!
why only for galaxy y sir? xD does it work with any other device?