[GUIDE][GB] Music Lock Controls - Galaxy Y GT-S5360 General

Customizable remodified CM lock music controls + Information​
Updated (Read):
Fullscreen AlbumArt
Moving trackname if it is long (credits to sir El Uyuz [email protected], Bhevz Cailao
@fb and lenar [email protected])
Bugs:if you find one, feel free to report
NOTE: Tested on Gingerbread version DXLF baseband. Still not sure if will work on other version, you can give it a try but i dont have the responsibility on bricking/damaging your phone :
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"
}
What you need
- Basic xml techniques
- Decompile recompile skills
- android.policy.jar
- framework-res.apk
- SystemUI.apk
Steps:
Click to expand...
Click to collapse
1.) Decompile android.policy.jar.
2.) Download MusicInfo.zip in attachment and extract it to smali folder.
3.) Decompile framework-res.apk.
4.) open res/layout/zzz_keyguard_screen_clockwidget.xml below:
Code:
<view android:gravity="center" android:orientation="vertical" android:id="@id/clock_time_and_date" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">
add this line:
Click to expand...
Click to collapse
Code:
[COLOR="Red"]<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.AlbumArt android:layout_width="100.0dip" android:layout_height="100.0dip" android:scaleType="fitCenter" />
<com.tenten.trackname android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_horizontal" android:background="#00000000" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" />
<com.tenten.MusicControl android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.prev android:layout_marginRight="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.play android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.next android:layout_marginLeft="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.tenten.MusicControl>
</LinearLayout>[/COLOR]
It will be like this:
Click to expand...
Click to collapse
Code:
<view android:gravity="center" android:orientation="vertical" android:id="@id/clock_time_and_date" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">
[COLOR="Red"]<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.AlbumArt android:layout_width="100.0dip" android:layout_height="100.0dip" android:scaleType="fitCenter" />
<com.tenten.trackname android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="10.0px" android:paddingRight="10.0px" android:singleLine="true" />
<com.tenten.MusicControl android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.tenten.prev android:layout_marginRight="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.play android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.tenten.next android:layout_marginLeft="10.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.tenten.MusicControl>
</LinearLayout>[/COLOR]
<LinearLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="25.0dip">
<ImageView android:id="@id/zzz_hour01" android:layout_width="17.0dip" android:layout_height="25.0dip" />
<ImageView android:id="@id/zzz_hour02" android:layout_width="17.0dip" android:layout_height="25.0dip" />
<ImageView android:id="@id/zzz_colon01" android:layout_width="17.0dip" android:layout_height="25.0dip" android:src="@drawable/zzz_unlock_clock_colon" />
<ImageView android:id="@id/zzz_minute01" android:layout_width="17.0dip" android:layout_height="25.0dip" />
<ImageView android:id="@id/zzz_minute02" android:layout_width="17.0dip" android:layout_height="25.0dip" />
</LinearLayout>
<LinearLayout android:layout_gravity="bottom" android:orientation="vertical" android:layout_width="0.0dip" android:layout_height="0.0dip">
<TextView android:textSize="0.0dip" android:typeface="sans" android:textColor="#ffffffff" android:id="@id/zzz_ampm" android:layout_width="0.0dip" android:layout_height="0.0dip" android:shadowColor="@color/black" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
</LinearLayout>
<TextView android:textSize="20.0sp" android:typeface="sans" android:textColor="#ffffffff" android:id="@id/zzz_date_month" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" android:shadowColor="@color/black" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
</view>
5.) Add a png in res/drawable folder and name it: default_music_logo.
6.) Recompile framework-res.apk and decompile it again.
7.) Go to res/values/public.xml and find this line:
Code:
<public type="drawable" name="default_music_logo" id="[COLOR="Red"]ImportantID[/COLOR]" />
8.) Remember the important ID. Go back again to your android.policy.jar and open smali/com/tenten/AlbumArt.smali.
9.) Find this line:
Code:
const v2, 0x1080411
10.) Replace 0x1080411 with your ImportantID BUT remove the 0 next to x. (Example: 0x01234567 to 0x1234567)
Code:
const v2, [COLOR="red"]ImportantID[/COLOR]
11.) Recompile framework-res.apk and android.policy.jar.
12.) Decompile SystemUI.apk.
13.) Download UI_MusicInfo.zip in attachment and extract it to smali folder.
14.) Go to res/layout/status_bar.xml and below:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
add this line:
Click to expand...
Click to collapse
Code:
[COLOR="red"]<com.tenten.MusicHelper android:layout_width="0.0dip" android:layout_height="0.0dip" />[/COLOR]
It will be like this:
Click to expand...
Click to collapse
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.LenoxStatusBarView android:orientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR="red"]<com.tenten.MusicHelper android:layout_width="0.0dip" android:layout_height="0.0dip" />[/COLOR]
15.) Recompile SystemUI.apk.
16.) Finally, zip your recompiled android.policy.jar, framework-res.apk, SystemUI.apk and flash it.
17.) download and Install CustomizableParts.apk in attachment to control the informations
18.) If it works, jump. If no, tell me
Fullscreen AlbumArt in Lockscreens (KITKAT MODE ON)
Click to expand...
Click to collapse
Description: Fullscreen Album art in lockscreen like kitkat, all lockscreens are affected except circle lock. (It has no main layout :crying Sorry but no screenshot, you can imagine it by the title itself. (But actually, Im lazy. xD )
NOTE: This will work on lockscreens that has mainlayout and its main parent must be relativelayout.
1.) Open all of these layouts on framework-res/res/layout:
keyguard_screen_password_portrait.xml
keyguard_screen_tab_unlock.xml
keyguard_screen_unlock_portrait.xml
2.) then do this in the three layout that you have opened:
PUT THIS:
Click to expand...
Click to collapse
Code:
<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />
BELOW THIS:
Click to expand...
Click to collapse
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
IT WILL BE LIKE THIS:
Click to expand...
Click to collapse
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@id/patternlockscreenwallpaper_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />
NOTE: In keyguard_screen_tab_unlock.xml, it must be below xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock">
3.) Save them and close, Then open zzz_keyguard_screen_lockscreenwallpaper.xml
4.) Then again:
PUT THIS:
Click to expand...
Click to collapse
Code:
<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />
BELOW THIS:
Click to expand...
Click to collapse
Code:
<ImageView android:id="@id/lockscreenwallpaper_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="fitXY" />
IT WILL BE LIKE THIS:
Click to expand...
Click to collapse
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@id/lockscreenwallpaper_root" android:background="#80000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/lockscreenwallpaper_image" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="fitXY" />
<com.tenten.AlbumArt android:layout_width="240.0px" android:layout_height="320.0px" android:background="#ff000000" android:scaleType="centerInside" />
</RelativeLayout>
5.) Save again all then recompile your framework-res
6.) Flash to obtain kitkat mode.
PS: Need help? Go to 2nd post.
Java Source: https://github.com/tentenponce/Music_Info_on_Lockscreen
CREDITS​[email protected]
CyanogenMod
AOSP
StackOverflow.com
Lenox Devs
Potato Inc
[email protected] for inspiring me on his music lock controls ​

FAQs / Help
FAQs
EDIT: Sorry for the wrong info, please read the first Q and A again. thank you
Q: Why music controls not working?
A: There's something you need to modify on MusicUtils.smali, according to sir @PineappleOwl, for a while, use the lenox music that has been attach my sir @GSculerlor around here, just look for it
EDIT: Download MusicUtils.zip on attachment and extract it on your Music.apk/smali folder.
Q: My album art is not updating/changing/not the same with my music album art?
A: It is because the data from your old music, (maybe u use other player). Clear the data of your old music and stock music then check it again (Credits, Mark[email protected])
Q: No AlbumArt when my phone is plug into Computer?
A: Yes, to avoid force close/hotboot.
Q: F*ck! My phone reboots when I unplug it from the Computer.
A: Wait for your sd card to be scanned then unplug it. Patience is <3
Q: Some alien options on CustomizableParts, how to use it?
A: Follow my other guides.
NOTE
Changing Song will be a bit laggy because it is updating.
You can Put it on other layouts of lockscreen (Pattern lock, Pin, etc.)

awesome dude
will try

Reserve
hai i mohammad Azim

everything implemented. but still Lockscreen music control not works.
ROM - JELLYFUSION
FRIMWARE - DDMF4
DEVICE - GALAXY Y DUOS

Ten, its working on me hehe I used stock

kartik verma said:
everything implemented. but still Lockscreen music control not works.
ROM - JELLYFUSION
FRIMWARE - DDMF4
DEVICE - GALAXY Y DUOS
Click to expand...
Click to collapse
It's on default, try to run music then go to lockscreen. See if it's there.

Sir @tentenponce, What Music app work with this guide ?

GSculerlor said:
Sir @tentenponce, What Music app work with this guide ?
Click to expand...
Click to collapse
Default one will do

Report : CM Parts not work on me :crying:
SS after i press pause button :

GSculerlor said:
Sir @tentenponce, What Music app work with this guide ?
Click to expand...
Click to collapse
I only tried default music, but you can try on other and you can tell me so i can tell others credits goes to you ofcourse

GSculerlor said:
Report : CM Parts not work on me :crying:
SS after i press pause button :
View attachment 2750570
Click to expand...
Click to collapse
Ill update the thread, i saw that also, in lockscreen, Cm Style is a bug. Please avoid using that for now sir. Catching intents in lockscreen is complicated, that's why I can't also catch the trackname on lockscreen. </3 By the way, thanks for reporting :good:

Wow, awesome sir. Thanks

tentenponce said:
It's on default, try to run music then go to lockscreen. See if it's there.
Click to expand...
Click to collapse
Sir, m use it on Google play music. so i think is is the problem.

sorry to say.
but its a worst feature.
And never works on stock music player as well this feature also not working on another music play (Google play Music)
plssss.. Fix it and this feature is gud and i also want in my rom.
Device - Galaxy Y Duos
Frimware - GINGERBREAD.DDMF4

kartik verma said:
sorry to say.
but its a worst feature.
And never works on stock music player as well this feature also not working on another music play (Google play Music)
plssss.. Fix it and this feature is gud and i also want in my rom.
Device - Galaxy Y Duos
Frimware - GINGERBREAD.DDMF4
Click to expand...
Click to collapse
It complete work on default music player. Bug just on CM style
Sent from my GT-S5360 using XDA Free mobile app

GSculerlor said:
It complete work on default music player. Bug just on CM style
Sent from my GT-S5360 using XDA Free mobile app
Click to expand...
Click to collapse
can u add this mod in my framework apk and policy.jar

Sir @tentenponce, i follow your instruction very carefully and i got random reboot XD
And i position in on top, how to move it to bottom ?
What is xml like galaxy s2/glass lock ?
TIA

Mranggapo said:
Sir @tentenponce, i follow your instruction very carefully and i got random reboot XD
And i position in on top, how to move it to bottom ?
What is xml like galaxy s2/glass lock ?
TIA
Click to expand...
Click to collapse
take whole xml code of music control and **** it below.
like if i have clock and date and above music control. cut the code and paste below the clock code
done.

Mranggapo said:
Sir @tentenponce, i follow your instruction very carefully and i got random reboot XD
And i position in on top, how to move it to bottom ?
What is xml like galaxy s2/glass lock ?
TIA
Click to expand...
Click to collapse
Dont use CM Style, it's a bug. Ill try to fix it. install the apk and choose default or minimal.

Related

[MOD][GUIDE]Windows Phone style Task Switcher for Jellybean.

This mod is originally posted HERE by Evilisto and copy-pasting given code works for ICS, but NOT for JB. So, i worked out the little modifications to be done for JB, and i hope this helps​.​
REQUIRED STUFF.
-- Apktool. 1.5.0 works best for me, but if not, a previous version is fine too.
-- framework-res.apk from ROM.
-- SystemUI.apk from ROM.
-- Knowledge on decompiling, recompiling apks.
-- Notepad++ recommended.
HOW-TO.
-- Copy framework-res.apk and SystemUI.apk to your folder.
-- Install framework-res.apk. This step is important.
Code:
apktool if framework-res.apk
-- Decompile framework-res.apk
Code:
apktool d framework-res.apk
This will give you a folder called framework-res. This is your decompiled apk.
-- Decompile SystemUI.apk
Code:
apktool d SystemUI.apk
This will give you a folder named SystemUI.
-- Alternatively, you can specify the folder name to be created. For ex : i want framework for framework-res.apk folder :
Code:
apktool d framework-res.apk framework
This will name the folder framework.
OR
Code:
apktool d SystemUI.apk System
This will give you folder named System for decompiled SystemUI.apk
==================================================
IN FRAMEWORK-RES.APK
-- Open framework-res folder. Navigate to res/values, right-click on Dimens.xml and select 'edit with Notepad++' or any other you may prefer.
Find default values of the following values and change it to given values.
res/values/dimens.xml
Code:
<dimen name="thumbnail_height">270.0dip</dimen>
<dimen name="thumbnail_width">192.0dip</dimen>
===================================================
IN SYSTEMUI.APK
-- Save file, go back and open your SystemUI folder and open the res/ folder.
-- Copy paste the following code by editing specified files.
res/values/dimens.xml
Code:
<dimen name="thumbnail_height">270.0dip</dimen>
<dimen name="thumbnail_width">192.0dip</dimen>
res/values/drawables.xml
ADD THE FOLLOWING LINE :
Code:
<item type="drawable" name="status_bar_recents_background_solid">#ff33b1e1</item>
res/layout-port/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
res/layout-port/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingTop="@dimen/status_bar_recents_item_padding" android:paddingBottom="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:foreground="@drawable/recents_thumbnail_fg" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="192.0dip" android:layout_height="270.0dip" />
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="0.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
</FrameLayout>
<View android:id="@id/recents_callout_line" android:background="@drawable/recents_callout_line" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="1.0dip" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:layout_marginRight="3.0dip" android:layout_toLeftOf="@id/app_thumbnail" android:layout_below="@id/app_label" android:layout_alignParentLeft="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="95.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
res/layout-land/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background_solid" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|right|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
res/layout-land/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@*android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="125.0dip" android:layout_height="180.0dip" />
</FrameLayout>
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" />
</RelativeLayout>
</FrameLayout>
res/layout/status_bar_no_recent_apps.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="20.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
=================================================
-- Recompile SystemUI.apk
Code:
apktool b SystemUI SystemUI2.apk
-- Recompile framework-res.apk
Code:
apktool b framework-res framework-res2.apk
-- Open SystemUI.apk and SystemUI2.apk with 7-zip. Select open archive.
-- Delete resources.arsc, classes.dex and res folder from original SystemUI.apk
-- Copy resources.arsc, classes.dex and res folder from SystemUI2.apk and paste them into the SystemUI.apk archive.[/COLOR]
-- Now, here, i usually use Apk-Multitool but you can use CMD too. Now you need to zipalign SystemUI.apk. There are different methods, best is to download APkMultiTool and do it. Or if you have the SDK, you can do it directly through command prompt or terminal.
-- Connect phone to PC.
-- Copy SystemUI.apk and framework-res2.apk and rename framework-res2.apk to framework-res.apk.
--Move SystemUI.apk to system/app and set rw-r--r-- permissions. Move framework-res.apk to system/framework and set rw-r--r-- permissions.
-- Reboot and you're done.
Credits to Evilisto and others listed in his credits​​
Idk, Why...but reserved
Howdy Ho
Yall Doing a greaty Thing out there
Sent from my ST25i using xda app-developers app
SpaceCaker said:
Howdy Ho
Yall Doing a greaty Thing out there
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
Cheers,
K.A.
Awesome guide, but before i start on this unexpected journey(Hobbit reference) can I see some screenshots please? Thanks for your hard work.
TJ_Ahluwalia said:
Awesome guide, but before i start on this unexpected journey(Hobbit reference) can I see some screenshots please? Thanks for your hard work.
Click to expand...
Click to collapse
Screenshots of? Finished work? If yes see my mods thread in android development section.
Cheers,
K.A.
Great Guide!
Was just browsing by, and i saw this. Great guide mate.
Will try it. Might just work on a different device.
masterex567 said:
Was just browsing by, and i saw this. Great guide mate.
Will try it. Might just work on a different device.
Click to expand...
Click to collapse
It works but u need tochange the dip to your device specific size
Sent from my ST25i using xda app-developers app
SpaceCaker said:
It works but u need tochange the dip to your device specific size
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
Yup i know... what are the stock dips for ace?
masterex567 said:
Yup i know... what are the stock dips for ace?
Click to expand...
Click to collapse
These mentioned in guide
Sent from my ST25i using xda app-developers app
SpaceCaker said:
These mentioned in guide
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
What he said. I've mentioned the dpis for the Ace, to do it for another device, you OBVIOUSLY need it to be for jellybean, and the only thing you need to change are the dpis according to yourself..
King ACE said:
What he said. I've mentioned the dpis for the Ace, to do it for another device, you OBVIOUSLY need it to be for jellybean, and the only thing you need to change are the dpis according to yourself..
Click to expand...
Click to collapse
As in, I meant what are the default values?
I don't have the ace jb systemui, so i don't know the default values..
My idea was that for example stock dpi for height is 250 and according to your guide it needs to be changed to 270.
The change is 30.
So i'll add 30 to the stock dpi for the s3.
So, i was asking for the default values.
Thanks again for your guide.
masterex567 said:
As in, I meant what are the default values?
I don't have the ace jb systemui, so i don't know the default values..
My idea was that for example stock dpi for height is 250 and according to your guide it needs to be changed to 270.
The change is 30.
So i'll add 30 to the stock dpi for the s3.
So, i was asking for the default values.
Thanks again for your guide.
Click to expand...
Click to collapse
Default is 164width x 145height.
King ACE said:
Default is 164width x 145height.
Click to expand...
Click to collapse
Brillianto! It's working.
Not sure if that's the way it's supposed to appear, probably a prob on my side:
Screenies:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
masterex567 said:
Brillianto! It's working.
Not sure if that's the way it's supposed to appear, probably a prob on my side:
Screenies:
Click to expand...
Click to collapse
Erm...why is it vertical?
masterex567 said:
Brillianto! It's working.
Not sure if that's the way it's supposed to appear, probably a prob on my side:
Screenies:
Click to expand...
Click to collapse
You do know that XHDPI isnt just chaning 30 dpi no it can be like 110 bigger then ace
Ace stock dip do it X 60% for hdpi and that x60% for xhdpi
Its not that easy
By like well difference is 30 dpi
Well just change same amount on xhdpi to
No no
Its wayy more
-_-
Thats why it bugs for you
Sent from my ST25i using xda app-developers app
great mod dude, thanks:good:
Hey guys,
What's dip or dpi? I thought DPI defined the "visual resolution" of the screen?
For instance, if my device has a screen res of 800x480... for the respective dip changes do I just take 60% of the screen res values?
lambstone said:
Hey guys,
What's dip or dpi? I thought DPI defined the "visual resolution" of the screen?
For instance, if my device has a screen res of 800x480... for the respective dip changes do I just take 60% of the screen res values?
Click to expand...
Click to collapse
Dip is different then dpi
If i was correct DIP was
Like
Pixels
So if ur screen is 320
Then when u set 320Dip width
And height is 480
And u set 480dip height it was fullscreen
Sent from my ST25i using xda app-developers app

[GUIDE]SystemUI with 2 Layout Toggles

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.

[GUIDE]Tab SystemUI

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

[MOD][GUIDE]Three Panel Swipe animation (No conflict to swipe to remove notifs)

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?

[guide][gb]how to add brightness slider with data trafik in any deodexed rom

HOW TO ADD BRIGHTNESS BAR WITH DATA TRAFIK IN STATUS BAR​Hello Guys!
Today i am going to tell you how to add Brightness Bar(with Data trafik) in Status Bar of Any Deodexed ROM
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"
}
So, Here we start :
Things Required : (you can get all of these things on google)
1. Apktool or apk multitool (for decompiling and recompiling)
2. Notepad++
Instructions: (Do make a nandroid backup before proceeding because you might do it wrong)
1. first of all decompile SystemUI.apk (Please don't ask me how to do that).
2. Now Extract the Brightness_slider_with_data_trafik.zip (See attatchments) in your decompiled SystemUI.apk
3. Now copy and paste this code in "decompiled_systemUI\res\values\ids.xml" at bottom.
Code:
<item type="id" name="brightness">false</item>
<item type="id" name="automatic">false</item>
<item type="id" name="quickpanel_brightness_icon">false</item>
<item type="id" name="title">false</item>
4. Now copy and paste this code in "Decompiled_systemUI\res\layout\status_bar_expanded.xml" (Pasteit where you want to place the brightness bar)
Code:
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="3.0dip" android:baselineAligned="false">
<include layout="@layout/brightness_bar" />
</LinearLayout>
so it look like this now:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="35.0dip" android:baselineAligned="false">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/blank" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:src="@drawable/blank" />
<ImageView android:layout_gravity="center_vertical" android:layout_width="30.0px" android:layout_height="30.0px" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />
<Button android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="3.0dip" android:baselineAligned="false">
<include layout="@layout/qp_brightness" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/quickpanel_dualsim_layout" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="35.0px">
<com.android.systemui.statusbar.quickpanel.QuickSim1ButtonLayout android:gravity="center_horizontal" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim1ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="84.0px" android:layout_height="35.0px" android:layout_marginLeft="0.0px" android:layout_marginRight="0.0px" android:layout_weight="1.0">
<ImageView android:id="@id/QuickSim1ButtonImage" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_1" />
<TextView android:textSize="0.0px" android:textColor="@android:color/primary_text_light_dark" android:gravity="center" android:id="@id/QuickSim1ButtonText" android:paddingBottom="2.0px" android:layout_width="0.0px" android:layout_height="0.0px" android:text="@string/quickpanel_sim1_text" />
</com.android.systemui.statusbar.quickpanel.QuickSim1ButtonLayout>
<com.android.systemui.statusbar.quickpanel.QuickSim2ButtonLayout android:gravity="center_horizontal" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim2ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="84.0px" android:layout_height="35.0px" android:layout_marginLeft="0.0px" android:layout_marginRight="0.0px" android:layout_weight="1.0">
<ImageView android:id="@id/QuickSim2ButtonImage" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_2" />
<TextView android:textSize="0.0px" android:textColor="@android:color/primary_text_light_dark" android:gravity="center" android:id="@id/QuickSim2ButtonText" android:paddingBottom="2.0px" android:layout_width="0.0px" android:layout_height="0.0px" android:text="@string/quickpanel_sim2_text" />
</com.android.systemui.statusbar.quickpanel.QuickSim2ButtonLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="0.0dip" android:baselineAligned="false">
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0">
<LinearLayout android:orientation="horizontal" android:id="@id/carrierLabel1" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/carrierLabel1Image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:src="@drawable/stat_sim_gsm_1" />
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" 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" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/carrierLabel2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip">
<ImageView android:id="@id/carrierLabel2Image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:src="@drawable/stat_sim_gsm_2" />
<com.android.systemui.statusbar.CarrierLabel2 android:textSize="17.659973dip" android:textColor="#ffffffff" 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" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<FrameLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.darkjb.NotificationLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/layout_button">
<include layout="@layout/darkjbnotifications" />
</LinearLayout>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/layout_button">
<include layout="@layout/darkjbsliders" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/layout_button" android:background="#00000000" android:paddingTop="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:weightSum="1.0">
<Button android:gravity="center" android:padding="5.0dip" android:layout_width="120.0px" android:layout_height="wrap_content" android:text="Notifications" android:layout_weight="0.5" style="@style/Dcsms.Buttons" />
<Button android:gravity="center" android:padding="5.0dip" android:layout_width="120.0px" android:layout_height="wrap_content" android:text="Sliders" android:layout_weight="0.5" style="@style/Dcsms.Buttons" />
</LinearLayout>
</com.darkjb.NotificationLayout>
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
5. Now open "decompiled_SystemUI.apk\res\values\strings.xml" an add this code at its end
Code:
<string name="brightness_settings_title" />
<string name="brightness_settings_automatic" />
5. Now recompile your SystemUI. done!
if you encounter any issue, you can post it. will try my best to resolve
xc
The auto button is not working
Mrinal Roy said:
The auto button is not working
Click to expand...
Click to collapse
i am working on it. will update the post asap.
Hit Thanks if i helped you!
Can you tell me how to remove the data traffic, because I want only the brightness slider.
drakonizer said:
Can you tell me how to remove the data traffic, because I want only the brightness slider.
Click to expand...
Click to collapse
divyamg28 said:
thhnxx searching for this only!!!
Click to expand...
Click to collapse
#drakonizer : Decompile your SystemUI.apk again and open {decompiled_SystemUI/res/layout/brightness_bar.xml} and remove this line from it and recompile and push in /system/app/ and done! -->
<com.akumarraheja.DataTrafik android:textSize="14.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:singleLine="true" android:shadowColor="#00000000" android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
Click to expand...
Click to collapse
#divyamg28 : its much better to press thanks than just saying anyways, thanks for your positive response.
Regards,
Akshay Kumar Raheja
©Darkjbrom | GT-S5302
Sent from my GT-S5302 using DARK JB ROM
It has no effect in my status bar...
Himan Boro said:
It has no effect in my status bar...
Click to expand...
Click to collapse
which phone do you have?
y duos bro..i m jst getting confusd wer to put
Code:
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:l
<include layout="@layout/brightness_bar" />
</LinearLayout>
can u please mod this status bar..please... :-C
Himan Boro said:
y duos bro..i m jst getting confusd wer to put
Code:
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:l
<include layout="@layout/brightness_bar" />
</LinearLayout>
can u please mod this status bar..please... :-C
Click to expand...
Click to collapse
ok. i will do it for you.
Sent from my GT-S5302 using xda premium
Akshay Kumar Raheja said:
ok. i will do it for you.
Sent from my GT-S5302 using xda premium
Click to expand...
Click to collapse
Ok...Thanks A Lot »>_<« >_< Thanks Pressed...eagerly waiting for it..
Himan Boro said:
Ok...Thanks A Lot »>_<« >_< Thanks Pressed...eagerly waiting for it..
Click to expand...
Click to collapse
here it is bro --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
btw if you find any problem, kindly send me the logcat.
Akshay Kumar Raheja said:
here it is bro --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
btw if you find any problem, kindly send me the logcat.
Click to expand...
Click to collapse
Ok Bro..surely..n Thanx A Lot...
Dont Know Why This Mod is not showing in my Moded Status bar.. m following it vry carefully n also recompiling succesfully without any error.. bt then also..its not working..
bro if u dnt mind mod my this status bar too please
Himan Boro said:
Dont Know Why This Mod is not showing in my Moded Status bar.. m following it vry carefully n also recompiling succesfully without any error.. bt then also..its not working..
bro if u dnt mind mod my this status bar too please
Click to expand...
Click to collapse
ok. i'll do it in free time. btw the one i modded is working ? ryt?
nd one more thing, that to which phone does these systemui.apks belongs(which u uploaded)?
Akshay Kumar Raheja said:
nd one more thing, that to which phone does these systemui.apks belongs(which u uploaded)?
Click to expand...
Click to collapse
Yap the one wich u provided works with charm n i was able to remove data traffic also
this two systemui belongs to y duos same phone .... first one is Stock n and second one is stock modded with AoKP icons..
i will b waiting for it
Himan Boro said:
Yap the one wich u provided works with charm n i was able to remove data traffic also
this two systemui belongs to y duos same phone .... first one is Stock n and second one is stock modded with AoKP icons..
i will b waiting for it
Click to expand...
Click to collapse
AOKP_SystemUI.apk --> https://www.dropbox.com/s/vioux9sayuuef1l/AOKP_SystemUI.apk
Stock SystemUI.apk --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
Akshay Kumar Raheja said:
AOKP_SystemUI.apk --> https://www.dropbox.com/s/vioux9sayuuef1l/AOKP_SystemUI.apk
Stock SystemUI.apk --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
Click to expand...
Click to collapse
Thanks But Its Giving FC...Have You Signed The Apk??
Himan Boro said:
Thanks But Its Giving FC...Have You Signed The Apk??
Click to expand...
Click to collapse
no. i kept original signatures. can you send me logcat of your device?
here is the log cat of Aokp systemui

Categories

Resources