Hi !
First I own an Xperia V, ICS 4.0.4 with 9.0.1.D.0.10 Firmware
So , I use Nemus Launcher (It's the smoothest launcher for me) which has a notification function and can display notification bubbles in the top left hand corner of an APP in the homescreen.
My question is : How can I mod the APK of Nemus launcher in order to display the bubbles at the top right hand corner of an APP and IF POSSIBLE make it like iOS , I mean not completly on the application's icon but that is half in half out..
(Please look at the attached pic to see how it is..)
I know how to decompile an APK but to do what I described is beyond me :/
Please try to help me, Thanks !
THE PIC :
its possible and too hard
try to use other launcher's , its better than modding launcher :fingers-crossed:
sgt.reza said:
its possible and too hard
try to use other launcher's , its better than modding launcher :fingers-crossed:
Click to expand...
Click to collapse
But I want to stay on Nemus, since I try it I can change !
But if the dev succeed to put it at left , why can I make the contrary ?
Yozil13 said:
But I want to stay on Nemus, since I try it I can change !
But if the dev succeed to put it at left , why can I make the contrary ?
Click to expand...
Click to collapse
Because the dev has the source files, you don't; you'd have to decompile and hope it's something as simple as modifying one of the layout .xml files, or else do it in smali... which is a lot harder.
Antiga Prime said:
Because the dev has the source files, you don't; you'd have to decompile and hope it's something as simple as modifying one of the layout .xml files, or else do it in smali... which is a lot harder.
Click to expand...
Click to collapse
There is only 1 xml file (I think by the name) that can match to the notification bubbles -> launcher_noti_layout.xml :
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/launcher_noti_container" android:background="#cc000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="35.339996dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center" android:id="@id/launcher_noti_textview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" android:drawablePadding="10.0dip" />
</FrameLayout>
I tried to edit it and replace "center" by top etc.. but NOTHING changes..
As for .smali files there's some files named BadgeInfo BadgeService etc.. but it is JAVA language and I DO NOT UNDERSTAND ANYTHING
I have attached a .rar file with NEMUS decompiled, if you can check it and solve my problem it would be nice :angel:
Yozil13 said:
There is only 1 xml file (I think by the name) that can match to the notification bubbles -> launcher_noti_layout.xml :
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/launcher_noti_container" android:background="#cc000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="35.339996dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center" android:id="@id/launcher_noti_textview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" android:drawablePadding="10.0dip" />
</FrameLayout>
I tried to edit it and replace "center" by top etc.. but NOTHING changes..
As for .smali files there's some files named BadgeInfo BadgeService etc.. but it is JAVA language and I DO NOT UNDERSTAND ANYTHING
I have attached a .rar file with NEMUS decompiled, if you can check it and solve my problem it would be nice :angel:
Click to expand...
Click to collapse
If nothing changes, then that is either not the file you're looking for, you don't know what you should be expecting with changing the gravity, or it's done in java. For the record, smali is not java.
Secondly, you did not attach anything, and I don't think I'm interested in figuring out how to do that, I don't use Nemus Launcher, and don't plan on doing so, no offense.
Antiga Prime said:
If nothing changes, then that is either not the file you're looking for, you don't know what you should be expecting with changing the gravity, or it's done in java. For the record, smali is not java.
Secondly, you did not attach anything, and I don't think I'm interested in figuring out how to do that, I don't use Nemus Launcher, and don't plan on doing so, no offense.
Click to expand...
Click to collapse
Ok no problem
I upload it for others , i've still hope lol
Related
STEP 1:
Decompile systemui.apk
STEP 2:
go to res\layout\status_bar_tracking.xml
replace this
Code:
<com.android.systemui.statusbar.phone.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
(this can vary )
with this
Code:
<com.android.systemui.statusbar.CloseDragHandle android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:orientation="vertical" android:background="#ff000000" android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.CloseDragHandle>
STEP 3 :
Download attachment
+ put drawable file to res/drawable/
+ and drawable-mdpi to res/drawable-mdpi/
STEP 4 :
Compile and enjoy :good:
Thanks me for my work :good:
SCREENSHOTS :
View attachment 2044390
View attachment 2044391
incredible job m8
the question is:
wheres the clock?
noobster140 said:
incredible job m8
the question is:
wheres the clock?
Click to expand...
Click to collapse
I do not understand your question .-.
dadroid98 said:
I do not understand your question .-.
Click to expand...
Click to collapse
i think he means the jb style clock and date, in statusbar expanded
mjz2cool said:
i think he means the jb style clock and date, in statusbar expanded
Click to expand...
Click to collapse
but this guide is not really related to what I asked :/
dadroid98 said:
but this guide is not really related to what I asked :/
Click to expand...
Click to collapse
link
search for the '8. Jelly bean style Date, Time and Day on Status Bar' part
will this work for any GB rom ?
it just looks like a JB notification bar or the whole bar is replaced to GB?
sorry to ask without trying cz m currently on MiniCM10
i'll surely try it if it rworks on any GB rom cz i already have a back of another GB rom..
i edited and recompiled it properly..
BUt now i lost my status bar
what mistake i must have done?
---------- Post added at 06:32 AM ---------- Previous post was at 06:30 AM ----------
i edited and recompiled it properly..
BUt now i lost my status bar
what mistake i must have done?
I have followed all your steps but when recompiling I get a lot of public.xml errors with every png. Can you help me?
EDIT: I did it...thanks for the guide
Hello guys.
To re-theme stock UXP Lockscreen's clock/dateview on Xperia I created this topic. But codes can be used on other if you are interested.
-PREFACE-
Lots of Xperia users use UXPNXTLockscreen but if you bored on seeing same clock/dateview, this is for you.
While I was searching 'Lockscreen Themes', I saw some iPhone themes and it fired this thought so you will be able to create your own design.
-Example Snapshots-
Can be found on attachment. Searched / I modded.
-FILES-
Day, DayNumber, Month & Year .smali files.
(I seperated this from framework-res)
Added 2 packs.
Stock Pack- includes 4 smali files which uses system font!
FontPossibility Pack- includes 4 smali files which uses your selected font(s)!
-MODDING-
Decompile UxpNxtLockscreen.apk and copy one of pack inside com/erhany/ folder..
Mod w_clock.xml , other *.xml s or create a new .xml file.
PHP:
<com.erhany.Day android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.erhany.DayNo android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.erhany.Month android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.erhany.Year android:layout_width="wrap_content" android:layout_height="wrap_content" />
Here are the codes. You may need to add other lines like padding, style, textappearance etc. It's up to you and your creativity!
*If you use FontPossibility Pack, open .smali files and find 'LockscreenFont.ttf' and change its names to your selected fonts.
For 4 smali files you can use one font or four different fonts. It's up to you too.
Then copy your selected font(s) inside to assets/fonts/ folder in apk.
* And also you can change styles in smali files. Like August/Aug 09/9 Tue/Tuesday etc. Check EEEE dd M etc. on const-string v2 line to change style.
So I think you understood the method.
I hope it helps someone/ some people.
-NOTES-
I'm cutting thread here. Example clock I used systemUI's clock. Eclipse, droiddraw can help you to create your mods if you'r not so good at XML Modding.
These are so basic codes for programmers and I'm so new on android thing. Im just trying to develop myself on modding how i like and help noobs like me.
Happy mods.
in second screenshot , what rom are u used ? is that miui rom ??
wawan20 said:
in second screenshot , what rom are u used ? is that miui rom ??
Click to expand...
Click to collapse
You're talking to Erhany here, it could be any rom. He's great a modding stuff, remember. I think he is using Atomic GB.
Yo, great to see you're working on the lockscreen too now, Erhany. I think I once brought it up but you still don't think it's possible replacing sound toggle with camera shortcut? Here in this rom (or rom addon) for a GB rom in the Xperia Play section, someone has a lockscreen that looks like ours but with camera shortcut.
Can you learn anything from it, maybe?
http://forum.xda-developers.com/showthread.php?t=1860343
thank you for your work, but can you disable the widget screen to go straightly to the pattern lock screen like on ics
im saying that because when i use an external lock screen app its show me its screen then the widget lock screen(default device's lock screen) then the pattern lock screen, so i cant bypass the widget lock screen
thank you for your help :fingers-crossed:
Any idea how to exchange walkman for some other apps?
I'm trying to add more workspace screens to the default launcher homescreen.apk. I've used the apktool to extract the apk so that I can edit the xml files and it appears that how many pages that are available is located in /res/layout-land and layout-port in launcher.xml
these are the only lines i have yet found that look like anything to do with how many workspaces are available
Code:
<com.motorola.blur.home.Workspace android:id="@id/workspace" android:paddingLeft="@dimen/qsb_bar_height" android:paddingRight="@dimen/button_bar_height" android:layout_width="fill_parent" android:layout_height="fill_parent" launcher:defaultScreen="2" launcher:cellCountX="4" launcher:cellCountY="4" launcher:pageSpacing="@dimen/workspace_page_spacing" launcher:scrollIndicatorPaddingLeft="@dimen/qsb_bar_height" launcher:scrollIndicatorPaddingRight="@dimen/button_bar_height">
<include android:id="@id/cell1" layout="@layout/workspace_screen" />
<include android:id="@id/cell2" layout="@layout/workspace_screen" />
<include android:id="@id/cell3" layout="@layout/workspace_screen" />
<include android:id="@id/cell4" layout="@layout/workspace_screen" />
<include android:id="@id/cell5" layout="@layout/workspace_screen" />
so I figured adding extra include android:id="@id/cell#="@layout/workspace_screen" to both launcher files would add extra workspace screens but when I try to repack the apk it kicks an error, Error: No resource found that matches the given name (at 'id' with value '@id/cell#') for each time and whatever extra number of screens I add.
can anyone point me in the right direction and let me know what I'm doing wrong?
Thanks
95 views and no replies? Am I asking this question in the wrong forum?
Wannab007 said:
95 views and no replies? Am I asking this question in the wrong forum?
Click to expand...
Click to collapse
More likely people are reading but don't know how to help. Like me. LOL I'm curious though why you are attempting this rather than just installing a third party launcher?
Droid 4 - CM10.2
/res/layout-port/launcher.xml:
Code:
<include android:id="@id/#" layout="@layout/workspace_screen" />
/res/values/ids.xml:
Code:
<item type="id" name="#">false</item>
kwyrt said:
More likely people are reading but don't know how to help. Like me. LOL I'm curious though why you are attempting this rather than just installing a third party launcher?
Droid 4 - CM10.2
Click to expand...
Click to collapse
i notice some things dont work with the nova launcher or the others ive tried, for example, swiping the favorites on the default launcher opens up a larger list of favorites, this doesnt work on the 3rd party launchers that ive tried
also its good to learn new ****
Mentor.37 said:
/res/layout-port/launcher.xml:
Code:
<include android:id="@id/#" layout="@layout/workspace_screen" />
/res/values/ids.xml:
Code:
<item type="id" name="#">false</item>
Click to expand...
Click to collapse
i totally missed those in values in ids, il try adding the extra cell# and see if that work
thanks
well i still must be doing something wrong in the process of repacking the apk or with signing or something, not sure what, it seems the apk does build properly but when i upload it to the phone and reboot, the default homescreen is no longer an option only the 3rd party launchers, guess i need to google and read more on how to properly decompile edit recompile apks
yup was doing it wrong, after repacking the apk with apkmultitool, extract the unsigned apk with 7zip, then open as archive the original or copy of with 7zip and replace the res directory, working now with all 7 cells
[Using Android 4.3.1 (CM10.2) on a Galaxy Nexus]
I'm attempting to replace the stock gradient background of the settings menu. I was able to get it to show all black instead of the gradient but I can't seem to get it to show a PNG image.
This is what is found in the /res/drawable/background_holo_dark.xml file
Original gradient:
Code:
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:startColor="#ff000000"
android:endColor="#ff272d33" android:angle="270.0" />
</shape>
Black background:
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/black" />
</shape>
Attempt at using a PNG image (image placed in /drawable-nodpi/background_holo_dark.png) courtesy of this thread
Code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/background_holo_dark" />
Using the above code to use an image as the background causes settings to force close. When I open Root Browser (which uses background_holo_dark.xml) it says something along the lines of "size of image too large".
Anyone know why the code fails? 4.2.x only required you to delete the .xml file and add the .png file to nodpi which doesn't work for 4.3.x. Prior to 4.2.x all you had to do was replace the .png file.
I've looked everywhere and it seems every time someone asks something similar the thread ends without any solution.. looks like this isn't any different. Tried countless different things with no luck
Bump... still having no luck.
DonDizzurp said:
Bump... still having no luck.
Click to expand...
Click to collapse
Im pretty sure it resides in framework-res.apk/res/drawable-nodpi/ the current background is in there so editing/replacing it should work!(note- the file might be in systemUI.apk/res/drawable-nodpi) im not too sure
ricky310711 said:
Im pretty sure it resides in framework-res.apk/res/drawable-nodpi/ the current background is in there so editing/replacing it should work!(note- the file might be in systemUI.apk/res/drawable-nodpi) im not too sure
Click to expand...
Click to collapse
Thanks but ever since android 4.2.x the PNG in /nodpi was removed and an XML file in /drawable is used for the gradient. My question is what code is required in this XML file in order to use a PNG instead of the gradient
Sent from my Galaxy Nexus using Tapatalk
DonDizzurp said:
Thanks but ever since android 4.2.x the PNG in /nodpi was removed and an XML file in /drawable is used for the gradient. My question is what code is required in this XML file in order to use a PNG instead of the gradient
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
really? im using 4.3 tw rom(My rom(smartdroid)) and i can still see the png file?
send your files and ill see what i can do!
FINALLY!!
If anyone else is stuck, follow the steps here: http://forum.xda-developers.com/showthread.php?p=49811369
Read my post in that thread as well if you get stuck.
Here's a short refresher course on apktool http://forum.xda-developers.com/showthread.php?t=1752201
hello guys..!!
M back with another cool guide...
Do u want to add ur name on statusbar to impress some one....!!
So, Here is the guide to do so.
Requirements:-
#apktool or similar
#SystemUi.apk
#Notepad ++
Click to expand...
Click to collapse
$teps:-
1.) Decompile your SystemUI.apk.
2.) Go to res/layout in decompiled SystemUI.apk
3.) Edit status_bar.xml using Notepad++
4.) Find this code:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/icons"
5. Add this code below:
Code:
<TextView
android:textColor="#ffffff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PUT UR NAME HERE" />
In place of "PUT UR NAME HERE", ofcourse u have to put ur name or whatever u want to see.
6. Compile your apk and push it to system/app.
Click to expand...
Click to collapse
Credits:-
#abhinav
#and ofcourse me..
Click to expand...
Click to collapse