[MOD][GUIDE]Three Panel Swipe animation (No conflict to swipe to remove notifs) - Galaxy Y GT-S5360 General

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?

Related

[ROM] ICS Tentative ROM for Alcatel OT908

THIS IS AN UPDATE!!!
{
"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"
}
Hello everyone!!!
Today i want to show you a amazing ROM.
ICS Tentative ROM based on custom ROM 2.2.2 for Alcatel OT 908 made by ruscan.calin with ICS Style made by me
[ REQUIREMENTS ]
-this custom ROM is for Alcatel OT-908 phone or branded one Cosmote/Globul/T-Mobile/Orange Move
-NOW for Alcatel OT-908 F/S/A
-also must have CWM recovery installed
[ FEATURES ]
-see here:http://forum.xda-developers.com/showthread.php?t=1608705
[ HOW TO INSTALL ]
-enter "recovery mod" by pressing POWER and then press VOL UP+HOME over 10s
-wipe cache
-wipe data
-install zip from sd: Alcatel OT908/OT908F/S/S ICS Tentative.zip
-reboot system now
[ DOWNLOAD ]
Alcatel OT908 ICS Tentative
Alcatel OT908 F/S/A ICS Tentative
Hit the 'Thanks' button for ruscan.calin and for me of course !
Enjoy!!!
View attachment 1044853
Its beautiful!
Great job on the themed ROM and many thank you's for sharing this with us.
marksie said:
Its beautiful!
Great job on the themed ROM and many thank you's for sharing this with us.
Click to expand...
Click to collapse
No problem, really i want to use this ROM how much you can!
marinalin85 said:
Hello everyone!!!
I am Alin, and i want to show you something awesome
This is the first ICE CREAM SANDWICH ROM for ALCATEL OT908 based on 2.2.2 FroYo.
Click to expand...
Click to collapse
Alineee bafta mare !!!
I say thanks to be the first to understand my purpose with this custom ROM
I mean everybody is free to change/customize with his prefered theme and a lot more..
but to accomplish this one has to do some work here...
Wow, this looks quite nice. Well done. Unfortunately I have a 908S, but good work nonetheless!
ot-908 f/s/a correct key mapping
FormerSlacker said:
Wow, this looks quite nice. Well done. Unfortunately I have a 908S, but good work nonetheless!
Click to expand...
Click to collapse
use this post to correct keys problem
this custom ROM for ot-908 f/s/a
to make this ROM to work on ot-908 s/f/a then only thing to change is regarding keys/sensor buttons so I changed these to correspond and result is this isdm_KeypadLayout.kl file you have to replace in your ROM before flashing
do like this
take that update.zip- custom ROM and unpack files use 7.zip or whatever you want
copy and overwrite isdm_KeypadLayout.kl in \custpack\usr\keylayout\
this file contains correct key mapping for ot-908 f/s/a phones
now it's time to pack/sign again your ROM so
1.delete these files
META-INF\CERT.SF
META-INF\MANIFEST.MF
META-INF\CERT.RSA
(this is old signature /md5 hashes )
2. pack again make that update.zip (not signed yet)
3 copy testsign.jar from attach to folder where update.zip resides
now enter from command line this command -to sign update.zip
java -classpath testsign.jar testsign update.zip update-signed.zip
as a result you get update-signed.zip (this is signed)
now you can flash your signed ROM by CWM
another ROM and its looks grate, but we still need a way to unlock this phone for free, cuz paying for every IMEI you send the unlock websites is not that great.
warrain said:
another ROM and its looks grate, but we still need a way to unlock this phone for free, cuz paying for every IMEI you send the unlock websites is not that great.
Click to expand...
Click to collapse
just nice
maybe you talk about SIM-unlock here yes this can be done by online services even if you pay for it but I suppose you was thinking to flash another ROM and this is something different -this means to unlock bootloader/ take S-off and I can assure you there is no online service to do that for you at this time...or if you know something share here I want to pay for it
yes one has to pay for it... it's not like this site where one can say thanks or don't care about or if you think somebody will buy a tool/box/dongle/ or brick a few phones to get unlocked bootloader for you free of charge ... this looks pretty bad...
another question here...
what to do with an unlocked bootloader ? you need a firmware for it...
yes I know ..for free..
I recommend someone to read a few books before thinking to make/ port a ROM to a phone is as easy as copy/paste files from somewhere...
I do not intend to upset anyone but...
also consider to READ THIS
what is it?
marinalin85hi,what is in your status bar expanded on this image http://forum.xda-developers.com/attachment.php?attachmentid=1044839&d=1336327433 ??? It's quick widget on rom 2.2.2 or third-party app? thnx
gulyuk.s said:
marinalin85hi,what is in your status bar expanded on this image http://forum.xda-developers.com/attachment.php?attachmentid=1044839&d=1336327433 ??? It's quick widget on rom 2.2.2 or third-party app? thnx
Click to expand...
Click to collapse
GoLauncher EX has an option to copy icons from other launcher.
[ DOWNLOAD ]
Alcatel OT908 ICS Tentative
Alcatel OT908 F/S/A ICS Tentative
Click to expand...
Click to collapse
Your link is down ???
marinalin85 said:
GoLauncher EX has an option to copy icons from other launcher.
Click to expand...
Click to collapse
sorry, but I had in mind the icons in the line carrier
or this screen made on gingerbread status bar?
Nice!
Great job looks great!
gulyuk.s said:
sorry, but I had in mind the icons in the line carrier
View attachment 1046970
or this screen made on gingerbread status bar?
Click to expand...
Click to collapse
I make my own icons.
Here is my status_bar_tracking, see yourself how its look
marinalin85 said:
I make my own icons.
Here is my status_bar_tracking, see yourself how its look
Click to expand...
Click to collapse
hmm...but it is not in status_bar_tracking,I find it in status_bar_expanded.xml
Code:
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/switchers" android:background="@drawable/status_bar_header_background" android:layout_width="fill_parent" android:layout_height="51.0px">
<TableLayout android:gravity="center" android:background="@drawable/switcher_plate" android:layout_width="230.0px" android:layout_height="45.0px" android:layout_marginTop="2.0px" android:stretchColumns="0,1,2,3,4">
<TableRow android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/gps" android:focusable="true" android:clickable="true" android:layout_width="46.0px" android:layout_height="45.0px">
<ImageView android:layout_gravity="center" android:id="@id/gps_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_switch_apps_gps_on" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/bluetooth" android:focusable="true" android:clickable="true" android:layout_width="46.0px" android:layout_height="45.0px">
<ImageView android:id="@id/bluetooth_image" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_switch_apps_bluetooth_on" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/wifi" android:focusable="true" android:clickable="true" android:layout_width="46.0px" android:layout_height="45.0px">
<ImageView android:id="@id/wifi_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_switch_apps_wifi_on" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/airplane" android:focusable="true" android:clickable="true" android:layout_width="46.0px" android:layout_height="45.0px">
<ImageView android:id="@id/airplane_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_switch_apps_plane_on" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/silent" android:focusable="true" android:clickable="true" android:layout_width="46.0px" android:layout_height="45.0px">
<ImageView android:id="@id/silent_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_switch_apps_volume_normal" />
</LinearLayout>
</TableRow>
</TableLayout>
</LinearLayout>
This block of code sets only display icons and does not make them working, that is not activated by pressing either which the procedure, whether it's BT or GPS
Is this true?
gulyuk.s said:
hmm...but it is not in status_bar_tracking,I find it in status_bar_expanded.xml
Code:
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/switchers" android:background="@drawable/status_bar_header_background" android:layout_width="fill_parent" android:layout_height="51.0px">
<TableLayout android:gravity="center" android:background="@drawable/switcher_plate" android:layout_width="230.0px" android:layout_height="45.0px" android:layout_marginTop="2.0px" android:stretchColumns="0,1,2,3,4">
<TableRow android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/gps" android:focusable="true" android:clickable="true" android:layout_width="46.0px" android:layout_height="45.0px">
<ImageView android:layout_gravity="center" android:id="@id/gps_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_switch_apps_gps_on" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/bluetooth" android:focusable="true" android:clickable="true" android:layout_width="46.0px" android:layout_height="45.0px">
<ImageView android:id="@id/bluetooth_image" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_switch_apps_bluetooth_on" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/wifi" android:focusable="true" android:clickable="true" android:layout_width="46.0px" android:layout_height="45.0px">
<ImageView android:id="@id/wifi_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_switch_apps_wifi_on" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/airplane" android:focusable="true" android:clickable="true" android:layout_width="46.0px" android:layout_height="45.0px">
<ImageView android:id="@id/airplane_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_switch_apps_plane_on" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/silent" android:focusable="true" android:clickable="true" android:layout_width="46.0px" android:layout_height="45.0px">
<ImageView android:id="@id/silent_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/status_bar_switch_apps_volume_normal" />
</LinearLayout>
</TableRow>
</TableLayout>
</LinearLayout>
This block of code sets only display icons and does not make them working, that is not activated by pressing either which the procedure, whether it's BT or GPS
Is this true?
Click to expand...
Click to collapse
Yes, it is true!
Look update
A new look update:-
[ THEMED ]:
-musicwidget.apk
-phone.apk
-contacts.apk
-mms.apk
-power widget
-youtube.apk
[ CHANGES ]:
-answer mode
-status bar (not transparent yet )
-more icons and visual changed
Alcatel OT908 ICS Tentative v1.1
GoLauncher EX v3.00 beta 3.apk
TouchWiz 4 GoLauncher EX Theme.apk
MiLocker.apk
MiLocker SGS2 Theme.mtz (put "theme".mtz to /sdcard/MIUI/Theme)
View attachment Holo_Launcher_Beta3.apk
Wow, it keeps getting better. Good stuff!
Nice job!
Sent from my ALLDRO2SPEED using XDA

[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

[GUIDE] Adding Lidroid statusbar toggles [EASIER THAN EVER]

CREDITS
LIDROID
THIS THREAD and THIS THREAD
POTATOINC​
You must know how to decompile an APK
SCREENSHOTS
Without modifying StatusbarService.smali
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After modifying StatusbarService.smali
First go to this thread by @dcsms
[GUIDE]How to add lidroid 14 statusbar toggle buttons for Galaxy Y
Skip step 3. (You don't need to edit StatusBarService.smali for now)
Then go to my thread (Now its usefull)
[GUIDE] Remove STOCK TW toggles on expandedView or just move it to anywhere
Because we need to remove stock toggles in our expandedView
Download this smali files from POTATOINC
http://forum.xda-developers.com/attachment.php?attachmentid=2506685&stc=1&d=1389366819
Copy it to your SystemUI/smali
Then go to your SystemUI/res/layout/status_bar_expanded.xml
add or you can put it anywhere you like
Code:
[FONT=Century Gothic]<com.potato.powerwidget.PowerRangers android:layout_width="match_parent" android:layout_height="wrap_content android:orientation="vertical"/>[/FONT]
So it will looks like this
Code:
[FONT=Century Gothic]<?xml version="1.0" encoding="utf-8"?>[/FONT]
[FONT=Century Gothic] <com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"[/FONT]
[FONT=Century Gothic] xmlns:android="http://schemas.android.com/apk/res/android">[/FONT]
[FONT=Century Gothic] <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">[/FONT]
[FONT=Century Gothic] <ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">[/FONT]
[FONT=Century Gothic] <com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">[/FONT]
[FONT=Century Gothic] [COLOR=Magenta]<com.potato.powerwidget.PowerRangers android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"/>[/COLOR][/FONT]
[FONT=Century Gothic] <LinearLayout android:orientation="horizontal" android:background="@drawable/quickpanel_plmn_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">[/FONT]
[FONT=Century Gothic] <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" />[/FONT]
[FONT=Century Gothic] <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" />[/FONT]
[FONT=Century Gothic] </LinearLayout>[/FONT]
[FONT=Century Gothic] <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" />[/FONT]
[FONT=Century Gothic] <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" />[/FONT]
[FONT=Century Gothic] <LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />[/FONT]
[FONT=Century Gothic] <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" />[/FONT]
[FONT=Century Gothic] <LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />[/FONT]
[FONT=Century Gothic] </com.android.systemui.statusbar.NotificationLinearLayout>[/FONT]
[FONT=Century Gothic] </ScrollView>[/FONT]
[FONT=Century Gothic] <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />[/FONT]
[FONT=Century Gothic] </FrameLayout>[/FONT]
[FONT=Century Gothic] </com.android.systemui.statusbar.ExpandedView>[/FONT]
Decompile SystemUI.apk
If you have some FC issues its better to attach LOGCAT.
Also test it on other devices then report back here. THANKS​
Awesome. Now its easy to port.
Sent from my Nexus 7 using Tapatalk
actually there is an even easier way
use this tool - does it all for you - you just have to add the code it give to the smali and the rest it does itself
http://forum.xda-developers.com/showthread.php?t=2181597
marcussmith2626 said:
actually there is an even easier way
use this tool - does it all for you - you just have to add the code it give to the smali and the rest it does itself
http://forum.xda-developers.com/showthread.php?t=2181597
Click to expand...
Click to collapse
no this is better coz the edit in statusbar service is different for all fones. and many have problem compiling it. now there will be no problem..
samsoul16 said:
no this is better coz the edit in statusbar service is different for all fones. and many have problem compiling it. now there will be no problem..
Click to expand...
Click to collapse
I have used that tool and it works perfect on galaxy y - the only thing you have to do is edit the service smali with the codes it gives you for different phones
so all you have to do is a simple copy and paste - everything else is done by the tool
The only thing it doesnt do is edit the manifest to enable flash light
Not work on my zte blade ROM: GSF B27 (2.3.4)
I don't know why.
In turn try lot of the make guide but the SystemUI always force close.
If anyone can help or described in more detail in the guide to ask you to do it.
LOTs OF THANKS.
sisxgame said:
Not work on my zte blade ROM: GSF B27 (2.3.4)
I don't know why.
In turn try lot of the make guide but the SystemUI always force close.
If anyone can help or described in more detail in the guide to ask you to do it.
LOTs OF THANKS.
Click to expand...
Click to collapse
layout or const value fail
logcat to know.
Sent from my S500 using xda app-developers app
SpaceCaker said:
layout or const value fail
logcat to know.
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
here is the apk link.
http://www63.zippyshare.com/v/82568762/file.html
i do not logcat this becuse all steps opservs and not problem in the recompile.
(no stock toggles my system ui and I not to do remove this)
please make my apk
maybe my rom is the problem, because force close when maked this guide
http://forum.xda-developers.com/showthread.php?t=2644229
Thanx your kindness
Sorry my bad english
sisxgame said:
here is the apk link.
http://www63.zippyshare.com/v/82568762/file.html
i do not logcat this becuse all steps opservs and not problem in the recompile.
(no stock toggles my system ui and I not to do remove this)
please make my apk
maybe my rom is the problem, because force close when maked this guide
http://forum.xda-developers.com/showthread.php?t=2644229
Thanx your kindness
Sorry my bad english
Click to expand...
Click to collapse
No.
u need to make yourself.
guides are there
it takes Trial and error to succed
Take logs to see whats wrong
without no one will be able to help
Sent from my S500 using xda app-developers app
SpaceCaker said:
No.
u need to make yourself.
guides are there
it takes Trial and error to succed
Take logs to see whats wrong
without no one will be able to help
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
thanks for the help, I'll try:fingers-crossed:
NON-Samsung ?
Will this work on non-samsung mediatek mt6575 device ?????/ reply plz
yes if u know how to mod properly.
Sent from my S500 using xda app-developers app
This is awesome! This is a mod that I've been searching for ways to add to my ancient GB tablet for the past two years! Big thanks to @mariozawa! :laugh:
Just two quick questions..
Is there an easy way to get the flashlight working? And is the quickpanelsettings.apk supposed to be visible from the app drawer? I can't see it anywhere..
Ticklefish said:
This is awesome! This is a mod that I've been searching for ways to add to my ancient GB tablet for the past two years! Big thanks to @mariozawa! :laugh:
Just two quick questions..
Is there an easy way to get the flashlight working? And is the quickpanelsettings.apk supposed to be visible from the app drawer? I can't see it anywhere..
Click to expand...
Click to collapse
for flashlight all u can do is add
permission of hardware camera or
modify the ledcontroller smali ( dunno how but on some fevices it made it work)
for the settings app it momight be DEFAULT in manifest change it to LAUNCHER and it should appearin appdrawer
Sent from my Acer S500 CloudMobile
SpaceCaker said:
for flashlight all u can do is add
permission of hardware camera or
modify the ledcontroller smali ( dunno how but on some fevices it made it work)
for the settings app it momight be DEFAULT in manifest change it to LAUNCHER and it should appearin appdrawer
Sent from my Acer S500 CloudMobile
Click to expand...
Click to collapse
Many thanks (I've used up my 8 today but I'll press thanks once I'm on TapaTalk later..).
I've added:
Code:
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
to my SystemUI.apk. This will be the first time I've done anything with modifying the Manifest. Am I correct that I can't use the same signature once the Manifest's changed?
Ticklefish said:
Many thanks (I've used up my 8 today but I'll press thanks once I'm on TapaTalk later..).
I've added:
Code:
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
to my SystemUI.apk. This will be the first time I've done anything with modifying the Manifest. Am I correct that I can't use the same signature once the Manifest's changed?
Click to expand...
Click to collapse
for modding manifest xml of system apps u need to sign them afterwards
but
u also need to disable signature check in services.jar
because u will sign it with tool like one_click_signer or apksigner etc
and they give different credentials then system sign so it will not show or appear if the signature check is on
its tricky but once it works u can do a lot
Sent from my Acer S500 CloudMobile
Okay, this is odd. I had to flash a nandroid backup as I made a mistake modding something..and I can now no longer use this mod. Everytime I install lidroid-res.apk, I get a bootloop.
And I've no idea why.
Anybody have a suggestion?
Maybe what happen is that u have 2 lidroid-res apks in framework.
but on different names.
tgen it tires to load them but fails.
also what can be the issue is the permissions although it shouldnt affect whole rom.
Sent from my Acer S500 CloudMobile
sir, will it work with non-samsung device like optimus L3 (GB)?
try it and you will see
if u have enough knowledge it will work ofcourse
Sent from my Acer S500 CloudMobile

[MOD][GUIDE][APR 17] Potato Clock Mods FINAL VERSION

WHAT IS THIS?
Just a Potato clock
FEATURES
(COLOR HINTS)
NEW FEATURE
REMOVED
ORIGINAL FEATURE
VERSION
FINAL VERSION
Time-changed animation
Potato Clock v2.2
Custom Clock format - Make your own clock format
Potato Clock v2.1
Word Clock - Just time in words
All caps Word Clock
Minor bug fixes
New settings style - This one is cool
Potato Clock v2
***** Clock - Potato Edition of Fuzzy Clock (Show exact minutes in words)
All caps *****
Ninja Time removed
All features from v1.1
PREVIOUS CHANGE LOGS
Potato Clock v1.3
Ninja Moves - Ninja Time(Will change the current time to "NOW")
Potato Clock v1.2
Font - Bold|Condensed|Light|Light Italic|Normal|Custom (ttf & otf supported)
Potato Clock v1.1
AM/PM style - Normal|Small|Gone|Custom
Date style - Normal|Small|Gone|Custom
Potato Clock v1 - Initial release
Clock color - Color picker
Clock position - Left|Center|Right|Hide
Font - Bold|Condensed|Light|Light Italic|Normal
AM/PM style - Normal|Small|Gone
Date style - Normal|Small|Gone
Date format - 14 styles too many to mentions|Custom JAVA format
BUGS?
404 NOT FOUND
PM me if you found any bugs
SCREENIES
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
INSTRUCTIONS
Download needed files here.
Also please test this fix for seconds not showing bug for custom format.
You can now use HH:MM SS or anything custom format with seconds
SECONDS FIX
Download & install Potato Clock settings here.
Extract the needed files.
Decompile your SystemUI.apk
Go to SystemUI.apk/smali then paste the smali in that folder
the smali directory will be
smali/com/potato/systemui/clocks/.SMALI FILES HERE
and the assets folder
SystemUI.apk/assets/.ttf files should be here
Go to res/layout/statusbar.xml
PHP:
<com.potato.systemui.clocks.ClockLeft android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:paddingLeft="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
- This is for Left Clock
PHP:
<com.potato.systemui.clocks.ClockRight android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
- This is for Right Clock
PHP:
<com.potato.systemui.clocks.ClockCenter android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
- This is for Center clock
Put the codes in their right position
(Don't copy my whole statusbar.xml)
PHP:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#00000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.potato.systemui.clocks.ClockCenter android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.potato.systemui.clocks.ClockLeft android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:paddingLeft="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="1.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.potato.systemui.clocks.ClockRight android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#000" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/Theme.Holo.Wallpaper" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="0.0px" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
For those who have Potato Statusbar Gesture mod you can use this for center clock
PHP:
<com.potato.touchbar.TouchMe android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.potato.systemui.clocks.ClockCenter android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textStyle="normal" android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.potato.touchbar.TouchMe>
IF YOU ALREADY HAVE POTATO CLOCK JUST PASTE THE SMALI FILES (.smali) in
PHP:
SystemUI.apk\smali\com\potato\systemui\clocks
ISSUES
404 ISSUES NOT FOUND
CREDITS
PotatoInc
Our STARMAGIC Family
pollube31 - 24/7 tester
@Jay_SEAN - 12/2 tester
CYANOGENMOD
IF YOU LIKE OUR WORK YOU KNOW WHAT TO DO
IF YOU WANT TO USE THIS IN YOUR AWESOME WORK PLEASE SEND ME A PM
AND AT LEAST PRESS THANKS BUTTON
I SUFFER FROM SUPER HEADACHE VERSION 4 WHEN DOING THIS​
another great tutorial from potato master
Nice guide bro :3
mariozawa said:
WHAT IS THIS?[/SIZE
nicely :thumbup:​
Click to expand...
Click to collapse
im wait it looong time! Biggest thanks to PotatoInc
Also wait circle battery ^^
hi sir can i apply this mod in aosp?
Galaxy Pop Plus'ımdan Tapatalk 2 ile gönderildi.
give it a try!!
good
@mariozawa what will happen if you use RelativeLayout for the parent of all the statusbar elements since RelativeLayout can change it's childs rule. so far i know we can change relativelayout's child position directly from code. just a small question.
AuliaYF said:
@mariozawa what will happen if you use RelativeLayout for the parent of all the statusbar elements since RelativeLayout can change it's childs rule. so far i know we can change relativelayout's child position directly from code. just a small question.
Click to expand...
Click to collapse
I don't have any experience in RelativeLayout (Java part) hehe
But I think its a better idea than using multiple views:laugh:
mariozawa said:
I don't have any experience in RelativeLayout (Java part) hehe
But I think its a better idea than using multiple views:laugh:
Click to expand...
Click to collapse
yeah, but difficult to do for me lol
Sir Ozawa how about this one on your update with this cool mod thanks aloooooot sir
paul222008 said:
Sir Ozawa how about this one on your update with this cool mod thanks aloooooot sir
Click to expand...
Click to collapse
That is the first Potato Clock but the bug is it has memory leaks at that time.
But I'm building it again as I found that it is cool:laugh::laugh::laugh:
nice work
hi sir @mariozawa i just want to ask if there is a way to fix notifications overlap when using center clock of potato clock? thanks a lot..
markmellarpes said:
hi sir @mariozawa i just want to ask if there is a way to fix notifications overlap when using center clock of potato clock? thanks a lot..
Click to expand...
Click to collapse
Try putting them in different LinearLayouts.
_________________________________________
Thread is updated I wish anyone like it :fingers-crossed:
mariozawa said:
Try putting them in different LinearLayouts.
_________________________________________
Thread is updated I wish anyone like it :fingers-crossed:
Click to expand...
Click to collapse
How to update it if i am using it already???
Sent from my GT-S5360 using Tapatalk 2
vishal1404 said:
How to update it if i am using it already???
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
Just follow the steps on the first page for better result. :good:
mariozawa said:
Just follow the steps on the first page for better result. :good:
Click to expand...
Click to collapse
So do i need to do all things again??
sent from mobile
mariozawa said:
Try putting them in different LinearLayouts.
_________________________________________
Thread is updated I wish anyone like it :fingers-crossed:
Click to expand...
Click to collapse
How can i do that? any guide sir/maam? sorry noob here

[GUIDE][GB] Music Lock Controls

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.

Categories

Resources