---Moved Here---
You sir, are a legend.
I love you!!!
Thanks so much
Dumb question - after you run the Android application via Eclipse and it installs the APK onto the phone, how do you view the watchface? Should it show as a new watchface clock in the customise watchface editor?
Edit: Answered my own question - yes
Are you able to explain how to add a date to the analog clock (e.g. day of the month) and also maybe the month (e.g. Jul for July)
Thanks in advance!
julz said:
Are you able to explain how to add a date to the analog clock (e.g. day of the month) and also maybe the month (e.g. Jul for July)
Thanks in advance!
Click to expand...
Click to collapse
I will :good:
naheel azawy said:
I will :good:
Click to expand...
Click to collapse
Hi Naheel,
I've tried adding the date but without any luck. Nothing is showing up on the watchface. Do I have to add some other code to include the new XML as part of the build? Will the date show above the watch background image or is there the chance that it is on the bottom layer? Also I'm guessing that the text will be white as per the sample code you posted. Any help is appreciated!
julz said:
Hi Naheel,
I've tried adding the date but without any luck. Nothing is showing up on the watchface. Do I have to add some other code to include the new XML as part of the build? Will the date show above the watch background image or is there the chance that it is on the bottom layer? Also I'm guessing that the text will be white as per the sample code you posted. Any help is appreciated!
Click to expand...
Click to collapse
Sorry, I forget one last step.
edited :good:
naheel azawy said:
Sorry, I forget one last step.
edited :good:
Click to expand...
Click to collapse
Thanks mate! I'll give it a go!
EDIT: Awesome it works!! Thanks once again! Time to update my watchfaces to include dates
I'm glad, Great work
I've been busy making new analog watchfaces and figured out how to offset the dials. Edit the code within \res\layout\clock_widget_analog.xml
How to offset dials
As an example the following code will use a square second hands PNG file, resize it to 45x45px and offset it 82px from the top and 70px from the left. It will continue to rotate around the centre of the PNG file (i.e. around pixel x=23,y=23)
Code:
<include layout="@layout/analog_clock_hand_seconds"
android:gravity="left"
android:layout_marginTop="82px"
android:layout_marginLeft="70px"
android:layout_width="45px"
android:layout_height="45px"
/>
julz said:
I've been busy making new analog watchfaces and figured out how to offset the dials. Edit the code within \res\layout\clock_widget_analog.xml
How to offset dials
As an example the following code will use a square second hands PNG file, resize it to 45x45px and offset it 82px from the top and 70px from the left. It will continue to rotate around the centre of the PNG file (i.e. around pixel x=23,y=23)
Code:
<include layout="@layout/analog_clock_hand_seconds"
android:gravity="left"
android:layout_marginTop="82px"
android:layout_marginLeft="70px"
android:layout_width="45px"
android:layout_height="45px"
/>
Click to expand...
Click to collapse
good notice :good:
also you can do that on the "analog_clock_hand_seconds.xml" it self.
Coming soon;
{
"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"
}
Hi Naheel,
I've found a slight bug in the 'date' code you've shared. It cuts off the second digit for double-digit dates for some reason. For the moment I've only found an inelegant hackers way to fix the problem so I won't share my solution. Not sure if you have a better way of fixing it?
Cheers,
Julian
julz said:
Hi Naheel,
I've found a slight bug in the 'date' code you've shared. It cuts off the second digit for double-digit dates for some reason. For the moment I've only found an inelegant hackers way to fix the problem so I won't share my solution. Not sure if you have a better way of fixing it?
Cheers,
Julian
Click to expand...
Click to collapse
this happen cuz you must add this:
Code:
widgets:template="dd"
and that cause the bug on some devices of showing "00" instead of the real date
also I have another way that I'll try:
Code:
<com.sonyericsson.extras.liveware.aef.widget.TimeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center" >
<com.sonyericsson.extras.liveware.aef.widget.TimeView
android:layout_width="25px"
android:layout_height="20px"
android:gravity="center"
android:includeFontPadding="false"
android:textColor="@android:color/black"
widgets:textSize="20px"
widgets:timeType="[COLOR="Red"]days_of_month_digit1[/COLOR]" />
<com.sonyericsson.extras.liveware.aef.widget.TimeView
android:layout_width="25px"
android:layout_height="20px"
android:gravity="center"
android:includeFontPadding="false"
android:textColor="@android:color/black"
widgets:textSize="20px"
widgets:timeType="[COLOR="Red"]days_of_month_digit2[/COLOR]" />
</com.sonyericsson.extras.liveware.aef.widget.TimeLayout>
Great tutorial .
Has anyone tried to create a watchface using a string level-list? The Sony clock tutorial implies you can create a levelist a little like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Defines the most significant minute number using a level-list of drawables
that can be referenced when creating clocks. -->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:string="@string/min_digit_0" />
...
</level-list>
However, Eclipse will throw an error with the use of "android:string". I have tried saving the above XML in the drawable-nodpi folder and had added the appropriate string entries in the strings.xml file.
Any ideas?
Again many thanks for your detailed tutorial, Naheel!
Here is my cyan watchface (2 included)
edit: updated apk to Naheels slim version, thanks :good:
ceeso said:
Again many thanks for your detailed tutorial, Naheel!
Here is my cyan watchface
Click to expand...
Click to collapse
Hello, thanks for the watch face but it comes up like the image.
zippy01 said:
Hello, thanks for the watch face but it comes up like the image.
Click to expand...
Click to collapse
Thanks for testing, could you try the updated apk?
edit: I removed the sonymobile example watchface, added a cyan variation without date
Updated apk is fine, thank you
Ally153 said:
Great tutorial .
Has anyone tried to create a watchface using a string level-list? The Sony clock tutorial implies you can create a levelist a little like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Defines the most significant minute number using a level-list of drawables
that can be referenced when creating clocks. -->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:string="@string/min_digit_0" />
...
</level-list>
However, Eclipse will throw an error with the use of "android:string". I have tried saving the above XML in the drawable-nodpi folder and had added the appropriate string entries in the strings.xml file.
Any ideas?
Click to expand...
Click to collapse
I tried to make this in drawable:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Defines the least significant hour number using a level-list of drawables
that can be referenced when creating clocks. -->
<level-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:text="one" android:textSize="20px" />
<item android:text="two" android:textSize="20px" />
<item android:text="three" android:textSize="20px" />
<item android:text="four" android:textSize="20px" />
<item android:text="five" android:textSize="20px" />
<item android:text="six" android:textSize="20px" />
<item android:text="seven" android:textSize="20px" />
<item android:text="eight" android:textSize="20px" />
<item android:text="nine" android:textSize="20px" />
<item android:text="ten" android:textSize="20px" />
<item android:text="eleven" android:textSize="20px" />
<item android:text="twelve" android:textSize="20px" />
</level-list>
that had to be the hours but it didn't worked on the watch.
however, you can write what ever you want on png files and use it as a level list
Related
Some apps seem like they're better off with black backgrounds and white text, like the stock SMS app, GMail, Voice, Talk, etc. Is this easily done or am I asking for a lot?
+1
I would love to see this happen as well!
I have no idea what I'm doing, but I figure I might as well try. Starting messing with framework-res.apk, these look like all of the images that are displayed on the bottom menu. Would totally love some pointers on turning this into a functioning morph; Wiki is down
Anyone care to help me take [REQ] to [WIP]?
Here are some screenshots of what I'm trying/want to see done. We've got AMOLED screens, and black looks good damn it. Google gussied the whole interface up with a whole bunch of black text on a white background; white text on a black background, on an AMOLED screen = contrast+++, readability +++, and it looks good.
Attached are more mockups, I have a LOT of free time, all I need are some pointers.
{
"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"
}
Some Pointers
sheik124 , A few things ive learned in the past few days with countless experiments on my roms/framework.apk is this.
1. messing with the framework while its still in the rom wont pass verification when flashing.
2. pictures can change in color (some size) but the names MUST remain the same
3. Pick and choose from roms you like FIRST then after you get the hand of overwriting and figuring out which png file does what and which drawable folder to use then play with your own ideas.
4. FONT COLOR IS A BIATCH to find and to change....thank got for CM6 with built in settings just for that hex file headache!!!!!!!
5. ANDROID COMMANDER IS A LIFE SAVER!!!!!!! JUST FIND THE FRAMEWORK OF THE ORIGINAL ROM IN SYSTEM FRAMEWORK AND PUSH YOUR MODDED (VERY OWN THEMED) VERSION AND FIGURE OUT WHETHER YOUR A FAN OR NOT.
6. You can change EVERYTHING from notification icons to focus colors of tabs or even the entire notification......if you have any questions or hints for me.... PM ME ill even take requests if you send me your rom...or just the original framework...its a new hobby!!!!!!!
Thanks for the pointers. I'm working on MCR R21, and plan on applying my changes as a morph so I don't have to worry about any issues resigning/pushing apks.
I already figured I had to keep the file names the same, I tried making a sample morph with just the menu icons I already shopped and it worked, I can't figure out how to change the background menu color + menu text...
Sent from my Nexus One using XDA App
Its menu_backround.9 and menu_backround_fill_parent_width.9 in the drawable-hdpi folder. As for the Font color....FIGURING OUT THAT is a Headache but the Menu_item.xml is the file.......There are long drawn out threads and info on editiing those....kinda tricky........hope it helps. Oh and to test it out......just change them to a bright color....and push the framework.....AFTER YOU PUT YOUR CURRENT FRAMEWORK IN A SAFE PLACE OFCOURSE
drexman8244 said:
Its menu_backround.9 and menu_backround_fill_parent_width.9 in the drawable-hdpi folder. As for the Font color....FIGURING OUT THAT is a Headache but the Menu_item.xml is the file.......There are long drawn out threads and info on editiing those....kinda tricky........hope it helps. Oh and to test it out......just change them to a bright color....and push the framework.....AFTER YOU PUT YOUR CURRENT FRAMEWORK IN A SAFE PLACE OFCOURSE
Click to expand...
Click to collapse
Code:
<?xml version="1.0" encoding="utf-8" ?>
- <!-- /* //device/apps/common/assets/res/any/layout/menu_item.xml
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
- <MenuItemView xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:focusable="true">
<TextView android:id="@+id/index" android:paddingLeft="0dip" android:paddingTop="1dip" android:paddingRight="8dip" android:paddingBottom="0dip" android:layout_width="17dip" android:layout_height="wrap_content" android:includeFontPadding="false" />
<ImageView android:id="@+id/check" android:paddingLeft="3dip" android:paddingTop="3dip" android:paddingRight="3dip" android:paddingBottom="0dip" android:src="@drawable/menuitem_checkbox" android:scaleType="fitCenter" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:id="@+id/title" android:paddingLeft="0dip" android:paddingTop="1dip" android:paddingRight="0dip" android:paddingBottom="2dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:includeFontPadding="false" />
<TextView android:id="@+id/shortcut" android:paddingLeft="8dip" android:paddingTop="0dip" android:paddingRight="0dip" android:paddingBottom="0dip" android:layout_width="20dip" android:layout_height="wrap_content" android:gravity="center_horizontal" android:includeFontPadding="true" />
</MenuItemView>
That's menu_item.xml from the 2.2 source right there, doesn't look like it codes for any text colors
this is a great idea. i would LOVE to inverse the color from white to black of gmail, messaging, gtalk, ALL apps that have white, change to black. gonna watch this thread
Well, I've been messing with files for two days now and no luck. This was the best I could do:
Got the background 9 patch files right...couldn't figure out how to change the text. Those two unchanged icons are from LauncherPro - didn't want to tear the apk apart to change those images unless everything else worked.
No luck with Mms.apk either. I tried using apktool so I could edit all the xml files I needed to, but what happens to res/values after recompiling it? I figured it became part of classes.dex, but clearly something I changed didn't take right...
Oh well. Now to figure out how to revert everything to stock...
Mind sharing your modded menu setting files?
I'd love a zip of the backgrounds and icons if you care to share
Even though text cannot be changed atm, I reckon it looks nice. Also, I'm used to where the settings are placed so I think I can live without text.
Really f ing annoying that a lot of apps bring their own setting icons to the table, but alas, nothing to do about that. I normally just mod the ones I use the most..
-e
Eddiemc said:
Mind sharing your modded menu setting files?
I'd love a zip of the backgrounds and icons if you care to share
Even though text cannot be changed atm, I reckon it looks nice. Also, I'm used to where the settings are placed so I think I can live without text.
Really f ing annoying that a lot of apps bring their own setting icons to the table, but alas, nothing to do about that. I normally just mod the ones I use the most..
-e
Click to expand...
Click to collapse
Just so I don't end up making a file of the wrong stuff, you want the icons and the black menu BG, right? The green highlight is from installing a Desire notification bar
EDIT: Also (not pictured), menu popups with text items only have black text on BG (unless highlighted), totally illegible. You sure you want a morph of this?
sheik124 said:
Just so I don't end up making a file of the wrong stuff, you want the icons and the black menu BG, right? The green highlight is from installing a Desire notification bar
EDIT: Also (not pictured), menu popups with text items only have black text on BG (unless highlighted), totally illegible. You sure you want a morph of this?
Click to expand...
Click to collapse
Yea, don't need the highlights, only the menu background 9 patch files and icons
Doing a bit of cherrypickin' from different roms/morphs to create a nice interface for my own phone, and I'd like to give this a stab
thanks mate
-E
Here you go boss, enjoy. I also included an .ava file; if you want to make any other ic_menu icons look the same in Photoshop (from Mms.apk, for example) then just go to Image->Adjustments->Variations, and load the .ava file. Don't make any changes to the selections and it'll bring it to the same shade of gray.
In other news, what I need to change seems to be in themes.xml (dug through the stock framework source for any references to "menu_background") and it's clear why my change is *not* working.
res\values\themes.xml
Code:
<!-- Panel attributes -->
<item name="panelBackground">@android:drawable/menu_background</item>
<item name="panelFullBackground">@android:drawable/menu_background_fill_parent_width</item>
<item name="panelColorBackground">#fff</item>
<item name="panelColorForeground">?android:attr/textColorPrimaryInverse</item>
<item name="panelTextAppearance">?android:attr/textAppearanceInverse</item>
See there? The panel background is still defined as white, so Android's inverse colors automatically give us black text. The only problem is I don't know what to do with a changed themes.xml; the values folder doesn't even exist in the compiled apk and I'll admit I know very little about Android's inner workings. Apktool seems to be making a mess out of things with 2.2
Wow, kewl
Thanks a lot mate, big props.
I'm stumped when it comes to the xml changes for the white text, I have looked at it but it's hard..
found a good guide though:
www.jbthemes.com/AndroidThemeingGuide/The Ultimate Android Themeing Guide.pdf
There's another guy doing the dirty/clean themes that seems to be looking at it too, so I'm counting on one of you to sort it out
Regardless, thanks again.
-E
Here, sassyness77 has this in his to do list. Perhaps you two could combine forces?
http://forum.xda-developers.com/showthread.php?t=656388
Eddiemc said:
Wow, kewl
Thanks a lot mate, big props.
I'm stumped when it comes to the xml changes for the white text, I have looked at it but it's hard..
found a good guide though:
www.jbthemes.com/AndroidThemeingGuide/The Ultimate Android Themeing Guide.pdf
There's another guy doing the dirty/clean themes that seems to be looking at it too, so I'm counting on one of you to sort it out
Regardless, thanks again.
-E
Here, sassyness77 has this in his to do list. Perhaps you two could combine forces?
http://forum.xda-developers.com/showthread.php?t=656388
Click to expand...
Click to collapse
I sent him a PM, we'll see.
I do have to say I feel incredibly stupid knowing full well that somebody knows how to do this. CM6 RC1 screenshot of Mms.apk (ignore the themed look, that's a Galaxy S theme...):
It's possible!!! If I knew how I'd definitely waste my time doing it for, well, lots of other apps.
CM5.08 had black SMS too.
Alright I hope somebody out there can help us on this one! I'm stuck at the same EXACT spot but haven't taken a good look at the menu.xml yet....
I wonder who made the changes to the mms.apk for cm 508-6? If we found them maybe they could help us on this.
http://www.engadget.com/photos/google-nexus-s-hands-on/#3644044
Google finally did it on their own (at least for the settings icons).
This is my first Mod for this ROM. I just flashed the ROM earlier this afternoon. More to come soon. Enjoy!
{
"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"
}
Sprint Lovers Icons w/Circle Percentage Battery - http://db.tt/Op9qIx8
Sprint Lovers Icons w/Stock Percentage Battery - http://db.tt/pFXdtVh
Sprint Lovers Icons w/Stock Percentage Battery: The Complete Experience (WIP) - http://db.tt/RknIWM2
Great idea! I was really living those icons and almost went and flashed the new EVIO Rom just for that. Would you mind telling me what the "complete experience" file is compared to the other. Thanks in advance.
Sent from my PC36100 using Tapatalk
... By the looks of the screenshots, the other is not complete SPRINT LOVERS icons and the "complete experience" has a more complete set but is a work in progress? Assume work in progress means either BETA or also not completely complete? Bout to flash and see what happens.
Sent from my PC36100 using Tapatalk
Looks nice. I've been trying to get back the Gmail icon (Ideally with notify count) rather than the stupid gingerbread one I get now with MikG.
Which file(s) did you have to modify to get the Gmail to show it's original Red Envelope?
where can i get the original icons???
i like the rom and all but not feeling these icons...
anyone wanna help out??
whats the difference between complete experience and non-complete?
Great Job.....
looks like between the new market and the new drop downs we need a refresh on this one...
And now new Gmail, anyone want to give this a stab, and also get animated sync icon too?
My bad y'all. I wound up breaking my EVO and I fell back on things. I just got another one last week, but it was already updated with 2.3.3.
Sent from my Epic, because my EVO arrived with the Gingerbread update.
Mikee4fun said:
And now new Gmail, anyone want to give this a stab, and also get animated sync icon too?
Click to expand...
Click to collapse
What exactly do you mean by new Gmail? You want the white Gmail icon with the red M in it or do you want the default gingerbread version? It looks like this includes the white envelope with red, but changing it is easy if you know how to use adb (though you should still make a full nandroid backup before proceeding -- just in case):
1. Grab the framework-res.apk file from your phone:
Code:
adb pull /system/framework/framework-res.apk
2. Double-click on the .apk file and navigate it with 7zip (Windows), archive manager (Linux with Gnome), etc.
3. Go into the res/drawable-hdpi directory and swap out the stat_notify_gmail.png file with whatever image you desire (i.e. rename your desired image to stat_notify_gmail.png and then copy it to this folder, overwriting the existing image).
4. Close the window and push the file back to your device:
Code:
$ adb remount
$ adb shell stop
$ adb push framework-res.apk /system/framework
$ adb shell start
If you aren't sure what any of that means or you need help just let me know.
Now the animated sync icon is going to be a little bit more work. I'm rather curious how that is done (probably just some timeouts in the XML with a series of images that are all rotated from the previous one), but now you have got me kind of curious!
Hmmm...ok well I have some rather limited knowledge of this stuff but I think I see how to animate the icon. The problem is that I would have to replace your entire framework-res.apk file so it would also change the battery icons that you may have, along with just about every other icon that appears on the notification bar there.
But if I were to do this I would try the following after unpacking the framework-res.apk file (apktool d framework-res.apk). I'm sort of putting these notes here for myself as well as everyone else. I don't have time to try this right now but I might give it a shot later tonight or tomorrow...once the kiddos go to bed.
1. Starting with the framework-res/res/drawable-hdpi/stat_notify_sync_anim0.png as a base. Create a few different versions of the sync image at different angles (i.e. create 3 more images -- this original image can serve as the first image with one of the arrows on the left at "9 o'clock", another image 45 degrees from that, a third one with one of the arrows directly on the top at "12 o'clock", and then another 45 degrees from that.
2. Copy the new image files to framework-res/res/drawable-hdpi.
3. Create a new xml file framework-res/res/drawable/stat_notify_sync.xml with the following lines in it:
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="500" android:drawable="@drawable/stat_notify_sync_anim0" />
<item android:duration="500" android:drawable="@drawable/stat_notify_sync_anim1" />
<item android:duration="500" android:drawable="@drawable/stat_notify_sync_anim2" />
<item android:duration="500" android:drawable="@drawable/stat_notify_sync_anim3" />
</animation-list>
4. Insert new lines referencing the resources inside of framework-res/res/values/public.xml:
Code:
<public type="drawable" name="stat_notify_sync_anim1" id="0x01080292" />
<public type="drawable" name="stat_notify_sync_anim2" id="0x01080292" />
<public type="drawable" name="stat_notify_sync_anim3" id="0x01080292" />
5. Now build the apk file, sign it, zipalign it (optional), create the flashable zip, and then sign the zip file.
I'm pretty sure that this would work but again it would mean that we are replacing the entire framework-res.apk file so you would lose all other customizations that you might have to the status bar icons.
I might just give this a shot for the heck of it. I have no idea if it will work but I'm willing to at least try. I have a very recent nandroid backup so I can easily push this over to see if it works before posting!
blowpot-
did you get rooted yet? We need a refresh!
Been busy since root. I had to fall back from the forums for a while. Downloading 2.5 now. Will update soon.
Sent from my Synergized EVO, Thanks to some rEVOlutionary Tactics
{
"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"
}
Theming thread
How to make icon pack for DarkSense ROM.
There are two ways of creating Icons pack. I prefer Eclipse way, because you dont need to rely on existing apk.
In VTS (Virtuous Ten Studios)
1. Download Sample.apk and create new project:
View attachment DarkSense_Icons_Sample.apk
2. Open source folder. go to - yourproject/apkname/Data/smali/com/darksense/rosie/theme/Sample
Change folder name "Sample" to whatever icon's pack name. so it should be like this :
com/darksense/rosie/theme/YourNewName/
Refresh project in vts.
3. Open Manifest and
change package name -
Code:
package="com.darksense.rosie.theme.Sample"
to -
Code:
package="com.darksense.rosie.theme.YourNewName"
4. Then change activity info
Code:
android:name="com.darksense.rosie.theme.Sample.MainActivity"
to
Code:
android:name="com.darksense.rosie.theme.YourNewName.MainActivity"
Folder, package name and activity name should be the same
Refresh project.
5. Go to string and change names to yours
6. Open drawable-hdpi and add , change icons to your new icons with keeping the icons name as in the sample.
In Eclipse
1.Create new project. name package like this com.darksense.rosie.theme.YourIconsName
2. After creating project go to MainActivity and replace class MainActivity with this:
here your package name and imports..
Code:
public class MainActivity extends Activity {
public void onCreate(Bundle bundle)
{
super.onCreate(bundle);
}
}
3. Open manifest and look for line
Code:
<action android:name="android.intent.action.MAIN" />
under this line add this
Code:
<action android:name="darksense.rosie.launcher.THEME" />
and remove this
Code:
<category android:name="android.intent.category.LAUNCHER" />
4. Open strings and replace data with this
Code:
<string name="theme_title">YourIcon name</string>
<string name="theme_description">YourName DarkSense Icon pack</string>
5. Go back to manifest and change (two times) from
Code:
app_name
to
Code:
theme_title
6. Go to values and create new xml file called arrays
paste this data into arrays resources
Code:
<string-array name="icon_pack">
<item>com_mikrosmile_store_mainactivity</item>
</string-array>
7. Add your icons in drawable-hdpi.
Refrsh project and try it. If everything is good, then export it as apk.
If you are developer of existing icons for other ROMs
Open manifest and change:
Code:
<action android:name="****.rosie.launcher.THEME" />
to
Code:
<action android:name="darksense.rosie.launcher.THEME" />
How to add more icons for more applications
In both ways you can add as many modified icons for apps as you want. Just in case of VTS you cannot remove existing icons.
To find the icon name install app Android System Info (from Google Play)
Open application and go to Apps tab.
Click on application you want to modify, open its AndroidManifest and look for
1. Package name - at the top of manifest = android: package = "com.***.***.***"
2. activity - Look for line with android.intent.action.MAIN and just few lines above it you will find <activity android:name=".***"
sometimes there will be .MainActivity sometimes can be like .xx.xx.Main and exaclty with dot before name.
if activity name here <activity android:name=".***" starts without dot, try to use this name for icon, without package name.
Example AdAway application.
Package name - org.adaway
main activity - .ui.BaseActivity
together org.adaway.ui.BaseActivity convert it to org_adaway_ui_baseactivity and name the icon exactly like that.
Example 2 in case of if.
main activity - ui.BaseActivity
your icons name - ui_baseactivity
You finish? Send me pm and i will add it to DarkSense Store.
DarkSense Store contains this :
Sense 5 Stock, Blue, Red made by 12reza12
Real Icons
Bird Icons
Cloud Icons
Real, Bird and Coud icons provided by kinghunki
Nice! Do you guys already have sense 5 icons? Otherwise I can make a quick icon pack.
Sent from my awesome fridge
MaartenXDA said:
Nice! Do you guys already have sense 5 icons? Otherwise I can make a quick icon pack.
Sent from my awesome fridge
Click to expand...
Click to collapse
Thanks, yeah we have it)
Later I will add what we already have in darksense store ..
Sent from my Galaxy Nexus using Tapatalk 2
Hope more enthusiasts join DarkSense!
I've been using DarkSense since a week but I'm pretty sure I'll not leave it until I'll sell my beloved Sensation!
Hope new skins and icons will come :good:
Keep up with the good work guys
Sense 5 Stock, Blue, Red made by 12reza12 .
--------------------------
Circuit Mékong-Randonnée à Sapa-Voyage Laos
Vegio said:
I've been using DarkSense since a week but I'm pretty sure I'll not leave it until I'll sell my beloved Sensation!
Hope new skins and icons will come :good:
Keep up with the good work guys
Click to expand...
Click to collapse
Stay tuned
{
"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"
}
Faster & Smoother Notification Panel
Features:
If you're experiencing slowness, laggy status bar, this MOD can cure that. This MOD changes some values that makes your status bar A LOT faster and fluid.
For even more customization, you can set your own values for desired result. See Post #2
Installation:
1. Download the zip file
2. Reboot to recovery
3. Flash the zip file
4. Reboot
Downloads:
Download
Customization
1. Decompile SystemUI.apk
2. Navigate to res/values/dimens.xml
Following are the values which affect the status bar:
Code:
<dimen name="self_expand_velocity">[COLOR="red"]6000.0[/COLOR]dip</dimen>
<dimen name="self_collapse_velocity">[COLOR="red"]6000.0[/COLOR]dip</dimen>
<dimen name="fling_expand_min_velocity">14000.0dip</dimen>
<dimen name="fling_collapse_min_velocity">1400.0dip</dimen>
<dimen name="fling_gesture_max_x_velocity">2000.0dip</dimen>
<dimen name="fling_gesture_max_output_velocity">9000.0dip</dimen>
<dimen name="fling_gesture_min_dist">20.0dip</dimen>
<item type="dimen" name="collapse_min_display_fraction">10.000002%</item>
<item type="dimen" name="expand_min_display_fraction">50.0%</item>
<dimen name="expand_accel">[COLOR="red"]8000.0[/COLOR]dip</dimen>
<dimen name="collapse_accel">[COLOR="red"]8000.0[/COLOR]dip</dimen>
3. Edit the ones in red
4. All of them can change the speed and fluidity of the status bar. But the ones in red affect the most
To know how each value affects the smoothness, see This Post
Applicable to any JB10.1 Custom Rom?
The flashable zip is for CM10.1. But you can use the info on Post #2 for using it on other ROM's
I mean the ported roms here are based on CM10.1. Will it work? Thanks. Gonna try though w/ or w/out ur reply. Thanks.
Yeah I know, but this is SystemUI of CM10.1 . So i would recommend doing the MOD yourself if you're on some other ROM. It will work, but other ROM's have modded SystemUI, so you may loose that.
TopDroid said:
Customization
1. Decompile SystemUI.apk
2. Navigate to res/values/dimens.xml
Following are the values which affect the status bar:
Code:
<dimen name="self_expand_velocity">[COLOR="red"]6000.0[/COLOR]dip</dimen>
<dimen name="self_collapse_velocity">[COLOR="red"]6000.0[/COLOR]dip</dimen>
<dimen name="fling_expand_min_velocity">14000.0dip</dimen>
<dimen name="fling_collapse_min_velocity">1400.0dip</dimen>
<dimen name="fling_gesture_max_x_velocity">2000.0dip</dimen>
<dimen name="fling_gesture_max_output_velocity">9000.0dip</dimen>
<dimen name="fling_gesture_min_dist">20.0dip</dimen>
<item type="dimen" name="collapse_min_display_fraction">10.000002%</item>
<item type="dimen" name="expand_min_display_fraction">50.0%</item>
<dimen name="expand_accel">[COLOR="red"]8000.0[/COLOR]dip</dimen>
<dimen name="collapse_accel">[COLOR="red"]8000.0[/COLOR]dip</dimen>
3. Edit the ones in red
4. All of them can change the speed and fluidity of the status bar. But the ones in red affect the most
Click to expand...
Click to collapse
can you tell ex values to increase or teach how to increase ?
what max values on the six first lines we can apply ?
Request...!!
Hey sorry for bumping this old thread. But I have a request related to it.
Hey Topdroid can u please mod my uploaded systemui of cm10.2??
Thanks in advance
vishal24387 said:
Hey sorry for bumping this old thread. But I have a request related to it.
Hey Topdroid can u please mod my uploaded systemui of cm10.2??
Thanks in advance
Click to expand...
Click to collapse
Here you go.
[/COLOR]
TopDroid said:
Here you go.
Click to expand...
Click to collapse
Hey really thanx I tried ur file. But I am experiencing a wiered problem. If I want to pull notification bar then I have to pull it down upto half of the screen. In the same way if I want pull it upward then then I have to slide my fingure upto half of screen. Otherwise notification bar will not come downward or upward.
In original cm10.2 build just a slight slide on screen notification bar comes down or goes upward easily.
vishal24387 said:
Hey really thanx I tried ur file. But I am experiencing a wiered problem. If I want to pull notification bar then I have to pull it down upto half of the screen. In the same way if I want pull it upward then then I have slide my fingure in upward direction upto half of screen.
In original cm10.2 build just a slight slide on screen notification bar comes down or goes upward.
---------- Post added at 06:29 PM ---------- Previous post was at 06:25 PM ----------
Hey really thanx I tried ur file. But I am experiencing a wiered problem. If I want to pull notification bar then I have to pull it down upto half of the screen. In the same way if I want pull it upward then then I have to slide my fingure upto half of screen. Otherwise notification bar will not come downward or upward.
In original cm10.2 build just a slight slide on screen notification bar comes down or goes upward easily.
Click to expand...
Click to collapse
You'll have to change some values for that. Currently I'm not using my Galaxy SL so cannot try it. Please refer to the second post and try.
TopDroid said:
You'll have to change some values for that. Currently I'm not using my Galaxy SL so cannot try it. Please refer to the second post and try.
Click to expand...
Click to collapse
Oh...ok I'll do it. But problem is that the file which I uploaded dont have this file /res/values/dimens.xml
I tried to search it. But thete is no such file exist.
Also can u tell me which values affect smoothness in what way??
TopDroid said:
You'll have to change some values for that. Currently I'm not using my Galaxy SL so cannot try it. Please refer to the second post and try.
Click to expand...
Click to collapse
I am also facing the same issue which kind of value ... I mean give us some idea I will change and try it ,... :highfive:
vishal24387 said:
Oh...ok I'll do it. But problem is that the file which I uploaded dont have this file /res/values/dimens.xml
I tried to search it. But thete is no such file exist.
Also can u tell me which values affect smoothness in what way??
Click to expand...
Click to collapse
You must have unzipped the apk or something. You will have to decompile SystemUI.apk and then edit the file.
sgatechwork said:
I am also facing the same issue which kind of value ... I mean give us some idea I will change and try it ,... :highfive:
Click to expand...
Click to collapse
Sure, I will tell you what each line does.
"self_expand_velocity" : It is the initial velocity of the shade when expanding on its own. This means the speed of the shade to expand when you flick to expand.
"self_collapse_velocity" : It is the initial velocity of the shade when collapsing on its own. This means the speed of the shade to collapse when you flick to collapse.
"fling_expand_min_velocity" : It is the minimum final velocity of gestures interpreted as expand requests.
"fling_collapse_min_velocity" : It is the minimum final velocity of gestures interpreted as collapse requests.
"fling_gesture_max_x_velocity" : It is the cap on contribution of x dimension of gesture to overall velocity.
"fling_gesture_min_dist" : It is the minimum fraction of the display a gesture must travel, at any velocity, to qualify as a collapse request.
"expand_min_display_fraction" : It is the minimum fraction of the display a gesture must travel to qualify as an expand request.
"expand_accel" : It is the initial acceleration of an expand animation after fling.
"collapse_accel" : It is the initial acceleration of an collapse animation after fling
{
"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"
}
The quicklauncher panel:
It is simply a scrollable panel of app shortcuts that you instantly launch from your drop down panel. You can launch apps from inside other app without the need to exit to home screen first. You can also edit and order the shortcuts to suit your needs.
The idea:
When I started writing this mod I wanted to make it as easy to implement as possible which means no smali changes. I also wanted to make it universal for most android devices so thats what you get.
Implementation Guide:
This guide assumes you can already decompile and recompile an .apk correctly. If you cannot do this please don`t ask me how there are already lots of guides on how to do this here at XDA.
prerequisites:
A deodexed SystemUI.apk with a api level of 16 or higher
Knowledge of decompiling and recompiling the .apk.
These files: Download. MD5:fc5e7cd2c6192461e9ebca6661c70a49
Decompile the SystemUI.apk and navigate to smali/com/android/systemui/statusbar/policy
Copy the quicklaunch folder from the downloaded files and paste it into the above location
Navigate to res/layout and open status_bar_expanded.xml look for this line:
Code:
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">
(Note this is based on TW stock files you may have to mess with the location in your file to find correct placemant)
Directly below that line add:
Code:
<HorizontalScrollView android:scrollbars="none" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.quicklaunch.QuickLaunchContainer android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</HorizontalScrollView>
Recompile and push to your device its done
Sharing policy:
You are free to bake this into your roms provided:
Proper credit and a link is given not just a mention in a random thread that will be lost in hours.
You use the mod as a whole and not take peices of my code and use elsewhere.
You leave the copyright information as it is.
You dont add you own settings to control the panel eliminating the need for donate app.
How to use:
To add a shortcut simply scroll all the way to the right and press the + symbol this will bring up a list of currently installed app to choose from click one to apply.
To change or remove a shortcut long press the icon and a menu will appear select the desired option by clicking it.
You can also get further functionality by getting the quicklauncher app from the Playstore for just $1. In this you can set colors, visibility of the panel and text etc and more.(Note I have just uploaded it so it may take a few hours to show.) This will support me and the development thanks.
Current 3Minit users will of course get this include in the current app for no charge.
XDA:DevDB Information
3Minit quicklaunch panel, a Tool/Utility for the Samsung Galaxy S 4
Contributors
gharrington, http://forum.xda-developers.com/member.php?u=4619873
Version Information
Status: Stable
Current Stable Version: 1.0
Stable Release Date: 2014-02-16
Created 2014-02-16
Last Updated 2014-02-16
Waiting for 3minit user get this wonderful mods......hope Gary release the updated app soonest......cant wait ....yeahh...
Sent from my GT-I9500 using XDA Premium 4 mobile app
gharrington said:
The quicklauncher panel:
It is simply a scrollable panel of app shortcuts that you instantly launch from your drop down panel. You can launch apps from inside other app without the need to exit to home screen first. You can also edit and order the shortcuts to suit your needs.
The idea:
When I started writing this mod I wanted to make it as easy to implement as possible which means no smali changes. I also wanted to make it universal for most android devices so thats what you get.
Implementation Guide:
This guide assumes you can already decompile and recompile an .apk correctly. If you cannot do this please don`t ask me how there are already lots of guides on how to do this here at XDA.
prerequisites:
A deodexed SystemUI.apk with a api level of 16 or higher
Knowledge of decompiling and recompiling the .apk.
These files: Download. MD5:fc5e7cd2c6192461e9ebca6661c70a49
Decompile the SystemUI.apk and navigate to smali/com/android/systemui/statusbar/policy
Copy the quicklaunch folder from the downloaded files and paste it into the above location
Navigate to res/layout and open status_bar_expanded.xml look for this line:
Code:
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">
(Note this is based on TW stock files you may have to mess with the location in your file to find correct placemant)
Directly below that line add:
Code:
<HorizontalScrollView android:scrollbars="none" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.quicklaunch.QuickLaunchContainer android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</HorizontalScrollView>
Recompile and push to your device its done
Sharing policy:
You are free to bake this into your roms provided:
Proper credit and a link is given not just a mention in a random thread that will be lost in hours.
You use the mod as a whole and not take peices of my code and use elsewhere.
You leave the copyright information as it is.
You dont add you own settings to control the panel eliminating the need for donate app.
How to use:
To add a shortcut simply scroll all the way to the right and press the + symbol this will bring up a list of currently installed app to choose from click one to apply.
To change or remove a shortcut long press the icon and a menu will appear select the desired option by clicking it.
You can also get further functionality by getting the quicklauncher app from the Playstore for just $1. In this you can set colors, visibility of the panel and text etc and more.(Note I have just uploaded it so it may take a few hours to show.) This will support me and the development thanks.
Current 3Minit users will of course get this include in the current app for no charge.
XDA:DevDB Information
3Minit quicklaunch panel, a Tool/Utility for the Samsung Galaxy S 4
Contributors
gharrington, http://forum.xda-developers.com/member.php?u=4619873
Version Information
Status: Stable
Current Stable Version: 1.0
Stable Release Date: 2014-02-16
Created 2014-02-16
Last Updated 2014-02-16
Click to expand...
Click to collapse
Hi @gharrington
great job, I have a little problem, when I restart all links go away
How can I fix?
zioriky said:
Hi @gharrington
great job, I have a little problem, when I restart all links go away
How can I fix?
Click to expand...
Click to collapse
Rule of thumb. Don't quote the OP post.