So I am editing a go launcher template theme and i saw there were some parts i wanted to change that wasn't included in the template...for example the little icons ontop of the apps when you want to delete (kill.png kill_light.png etc...) I added this code
<AppIcon text_color="#FFFFFFFF" text_bg_color="#ff3f3f3f" delete_app="kill" delete_app_highlight="kill_light" new_app_icon="new_install_app"
update_icon="appfunc_app_update" locker_icon="promanage_lock_icon" close_app_icon="promanage_close_normal" close_app_light="promanage_close_light"/>
with png's with the right names in the drawable hdpi folder but they don't show up when i test it out...am i missing something? I was able change the media management icons in the app drawer by adding this
<SwitchButtonBean button_galleryicon="appfunc_mediamanagement_switch_button_gallery" button_gallerylighticon="appfunc_mediamanagement_switch_button_gallery_light"
button_musicicon="appfunc_mediamanagement_switch_button_music" button_musiclighticon="appfunc_mediamanagement_switch_button_music_light"
button_videoicon="appfunc_mediamanagement_switch_button_video" button_videolighticon="appfunc_mediamanagement_switch_button_video_light"
button_appicon="appfunc_mediamanagement_switch_button_app" button_appiconlight="appfunc_mediamanagement_switch_button_app_light"/>
but it didn't work for the other part (the smaller versions of those same icons in the media management menu)
what am i missing??
oh and i added the code to app_func_theme.xml if you were wondering
anyone?
okay so im inching closer to the solution....im guessing i have to edit the drawable in the r.java? Is this possible because i read somewhere everything in the gen folder is generated and not to edit it..but its the only place i can find that explains why the media management code i added work and the small icon code (kill, kill_light) didnt....i can see the icon references java file...if i do edit this java file or the public.xml (it appears to be linked to this part of the r.java file) where do i get this 10 digit code to put after the equal sign.
Related
My apologies if this is the wrong section/repost
There are no pngs in framework-res/drawable only xml files
Cant drag and drop my system pngs(battery,signal,wifi etc) of choice no more
I want my themed donut system images on my n1 simply put
Can someone recommend a xml editor/tutorial
Or Does metamorph do these edits (black status bar, battery) in eclair?...im still old school still into update zips/signing
take out the framework-res.apk/res/drawable and framework-res.apk/res/drawable-mdpi folders. There are like 3 or 4 images in the drawable folder. The rest of your images are in the drawable-mdpi folder. You will have to go through and look at certain images for the status bar and such because 2.0+ adds some new .9.png's where it used to be just a .png. statusbar_background.png becomes statusbar_background.9.png for example. just add the .9 to it and you should be good if your image isn't very "complex" looking.
some of the other ones that become .9.png's that i can recall off the top of my head are the title_bar images.
Appreciate that....
Was looking in the wrong drawables
Problem solved!
Hi, I am currently working on aHome themes and clocks. I got that down but I would like to have the ability to have more than one clock with a theme. Any ideas anybody on how to implement that?
I'm kinda reintroducing myself to Java, its been sometime since I last used it.
Adding more than one clock would require some major edits to the source code in AlarmClock.apk. What would be easier is creating a directory in the sdcard that holds multiple clock files, then incorporating a script in your ROM that will switch out the clocks (using metamorph for example).
He wants to add it to an aHome theme, so he'd have to edit the source for the theme to be able to somehow give the choice of which clock widget you would like, it would be a good amount of editing since the Home Replacements just look for a specific name in the theme and match it to the android source.
The code for adding the widget comes from aHome itself, not the theme though, the theme merely assigns image files to their location in the system. The sdcard idea is probably the easiest way to do it, instead of having it call out the image, it could call out the directory on the sdcard where they are stored.
Thank you for the responses, I figured it would be a little more complicated than just matching a file name. can you put the images in the drawable folder and call them from there?
diggidy said:
Thank you for the responses, I figured it would be a little more complicated than just matching a file name. can you put the images in the drawable folder and call them from there?
Click to expand...
Click to collapse
Not without some serious recoding of the source.
Actually the code for the single clocks isn’t that big, kinda figured I could add the extra dial.pngs and duplicate my code. Or something of that nature
This guide is to help people start creating Themes for ADW and understand what they are doing.
Instead of just replacing images by unzipping an APK I will tell you how to create your own theme from scratch.
I had a real struggle to find all this and I now I want to share what I found out
I will provide you with links with content that you should read and write some things by myself.
How to : Setup your working environment
How to : Make your own theme
Where should I put my images/xml?
The drawables (images/xml) should be putted in the drawable folder as standard. If you want to have different images for different pixel density(xhdpi/hdpi/mdpi/ldpi) make the folders: drawable-xhdpi,drawable-hdpi,drawable-mdpi and drawable-ldpi.
the text behind the hyphen (-) is a configuration qualifier. Android looks for these and if it suits the specific device it will choose the drawables from that folder instead of from the default folder. If a resource android looks for isn't found in the special folder it will instead look in the default folder for it.
If you want different images for landscape mode you would need to create a folder called drawable-land and if you want different images when the device is both mdpi and in landscape you would create a folder called drawable-land-hdpi.
Find out more about resource qualifiers
How do I add my own icons?
Find the name of the icon you want to replace at Theme Icon Name Database
Place your own drawable in the right folder.
E.g. To change the icon for the Android stock browser in a hdpi device I would ad a file called com_android_browser_browseractivity.png in drawable-hdpi. If I want the same icon for all devices that uses my theme I could add the same icon in the folder drawable.
How do I export my theme for testing?
Right click on you project in Eclipse and select export. Click the Android folder and select Export Android Application. Press next and then next again. Choose "Use existing keystore". Press browse.
In windows find C:\Users\ENTER YOUR USERNAME HERE\.android\debug.keystore
In Linux and OS X I think it is in: ~/.android/debug.keystore
The Password is android.Press next.Choose "Use existing key".
Alias: androiddebugkey
Password:android
Press next. Press browse and choose your destination of the apk. Click Finish and you are done.
Help! ADW force closes and I can't uninstall the theme!
Look here for sulution
If there is something that needs to be added send me a PM or write a comment.
I will add: program to use to create the images and eventually a complete sample theme with documentation.
If you find the tutorial good, please post to bump the thread.
hello
can you tell me how i make one of CUSTOM DOCK using the v0.3 dock_pack.xml standard in the theme ?
thanks
Nice guide damn thats a big youtube video lol
Hi there. Just wondering if you have gotten multiple wallpapers into a theme , and if they look right on screen?
I can change the wallpaper in the theme but i want to have a couple to choose from. Also i have tried a wallpaper that has a built in 'dock' graphic at the bottom. When i add it to a theme the dock is completely below the bottom. Any hints?
i hate that if after done with my theme and it says application not installed.
somebody knows how to fix it?
I've only created two icon packs, but they seem to work, so I'll take you through my process.
The first thing to research is how mask based icons work in general. There's a dearth of good information, but I did find the Icons Special Features section of the ADW Theming Guide to be useful. Alternatively, you can follow along and examine my images to gain an understanding of what I've done.
Let's proceed.
I began with mathur's Icon-Pack Template, but I've modified it to fit my needs by removing unnecessary bits and the parts relating to non-mask based icon packs. See the attached example, Crinkle.zip
Once you've downloaded Crinkle.zip and imported the code into eclipse, there are several things you'll need to alter:
First, you must rename the package. This can be done by doing one (or both) these actions:
[project (context menu)] > Android Tools > Rename Application Package
[package (context menu)] > Refactor > RenameSecond, ensure the correct scale factor. This can be found in two places:
assets / appfilter.xml
res / xml / appfilter.xmlThird, make sure your informational strings are correct. There are two locations:
res / values / strings.xml
res / values / theme_config.xmlFourth, and most important, add your own icons. These can be found in res / drawable-xhdpi, and they are:
icon.png - the application icon
iconback.png - the background image
iconmask.png - the transparency / opacity mask
iconupon.png - the overlay imageNow test it out.
My finished icon pack is live on Google Play under the title Crinkle Icon Theme.
Enjoy!
This looks great, but how would you create a mask for making all the icons black and white? Something like this:
com.seangrondin.icons.filmstripdesaturate (sorry i can't post links yet )
I want to make a sepia themed icon mask.
Thanks
error
Also, I'm getting an error as soon as I import.
Is there a way to make this target api 10 instead of api 19?
1rdc said:
This looks great, but how would you create a mask for making all the icons black and white? Something like this:
com.seangrondin.icons.filmstripdesaturate (sorry i can't post links yet )
I want to make a sepia themed icon mask.
Thanks
Click to expand...
Click to collapse
I looked into it a bit, and here's what I've discovered. If you include a res/xml/shader.xml file, you will be able to affect the color in at least Apex and Nova. I found a fairly detailed explanation that should help you get started.
I will soon update the original post to include more details about this, as well as a cleaner icon pack framework.
How do I make it compatible with Smart Launcher? The icon pack applies but the shader doesn't work and the theme doesn't show up under "Themes"
Hey everyone,
I've decided to share my personal icon pack. I've personally designed each icon using Inkscape and built the apk.
I've made it because I was annoyed by other icon packs always lacking some icons that I wanted.
Many icons (like those of google apps) look like the originals, just without the shadows.
My icon pack doesn't have many icons (about 100). The interesting thing is that I'm sharing also the source code to build the .apk (using Eclipse) and the .svg files to modify the existing icons/create new ones (using Inkscape), so that you can create your own personal icon pack.
The icons are for FHD screens, so 192x192. You can make them larger by exporting again the .svg files.
Atteched below you can file the apk file, the .zip source and some examples.
You can reuse and modify this app, just give me credit.
No requests please: I uploaded the source of the apk file and the icon svg files. If you want to add an icon just do it on your own.
Suggestion: to add a new icon you have to modify appfilter.xml, drawable.xml, iconpack.xml, add the icon in the res folder and then compile.
enryea123 said:
Hey everyone,
I've decided to share my personal icon pack. I've personally designed each icon using Inkscape and built the apk.
I've made it because I was annoyed by other icon packs always lacking some icons that I wanted.
Many icons (like those of google apps) look like the originals, just without the shadows.
My icon pack doesn't have many icons (about 100). The interesting thing is that I'm sharing also the source code to build the .apk (using Eclipse) and the .svg files to modify the existing icons/create new ones (using Inkscape), so that you can create your own personal icon pack.
The icons are for FHD screens, so 192x192. You can make them larger by exporting again the .svg files.
Atteched below you can file the apk file, the .zip source and some examples.
You can reuse and modify this app, just give me credit.
No requests please:I uploaded the source of the apk file and the icon svg files. If you want to add an icon just do it on your own.
Suggestion: to add a new icon you have to modify appfilter.xml, drawable.xml, iconpack.xml, add the icon in the res folder and then compile.
Click to expand...
Click to collapse
Thanks for this Open Source Project!
A few questions
Thanks a lot for this project. I could finally fulfill my dream of making my own icon pack.
I have a few questions, though. I don't understand what a few files are foo, in the project. It'd be great if you could explain thier function. The list of the files:
Values:
res/values/bools.xml [I see those are some booleans in there, but, when are they ever used?]
res/values/colors.xml [Those state the theme colours, but, where's the style used?]
res/values/dimens [No idea what this folder does]
res/values/styles.xml [Its stating the themes of the app, but, again, are those used anywhere?]
Assets:
assets/app_func_theme.xml [What does this file do?]
assets/desk.xml [What does this file do?]
assets/themecfg.xml [What does this file do?]
Drawable:
res/drawable/grid_selector.xml [I guess, it determines how the list of icons is presented, but, it doesn't work in all launchers, right? I mean, in Nova launcher, I didn't get any grid, I got one in ADW though.]
res/drawable/square_over.xml [It's used in the grid_selector.xml file, but, how's it affecting the app in any way?]
I don't intend to be mean or offensive, but, I am a very newbie Android developer and thus, probably didn't understand what these files are doing. It'd be great if you can clear this out for me.
Once again, thanks a lot for the source code!