SoftKeys Theme Template v1.0 ################################################# License: ------------------------------------------------- /* This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Hocevar. See * http://sam.zoy.org/wtfpl/COPYING for more details. */ Usage instructions: ------------------------------------------------- 1.-Load the template into eclipse: 1.a-On eclipse, select new android project 1.b-On the new project screen, select "Project from existing source" and select the theme template dir. 1.c-Click finish. 2.-Modify the app packagename and path (you should change if from x.x.x to your.package.name) 2.a-On eclipse, look into your project explorer, rightclick the x.x.x package and select "Refactor->Rename..." and follow the instructions. 3.-Editing the AndroidManifest.xml: 3.a-EDIT ONLY the packagename AND versioncode/versionname to suit your needs. 3.b-If you remove/change the installLocation param, your theme could not be loaded on boot on froyo phones. 3.c-If you remove/change the "net.hoopajoo.android.SoftKeys.THEMES" intent filter and/or the "android.intent.category.DEFAULT" category, your theme won't be visible to SoftKeys users. 3.d-This template is preconfigured to NOT show on the application drawer so users don't get bloated with theme icons on their app drawers. 4.-Edit the res/values/theme_config.xml to your needs. 5.-Edit the different drawables in there. 6.-For advanced theming you can also create custom layouts 7.-Export the apk from eclipse as every other android app. Quick start: ------------------------------------------------- For simple themes you just need to create the new icons you want and name them: res/drawable/button_back.png res/drawable/button_home.png res/drawable/button_menu.png res/drawable/button_search.png res/drawable/button_settings.png res/drawable/button_exit.png for the button background: res/drawable/button_background.png How themes are applied: ------------------------------------------------- The interface is built up at runtime from chunks, using the most specific resource when available. The main interface bound to the home button is composed of the button container and the soft key buttons. For basic theming like just changing the button backgrounds and icons you can just create some drawables. Drawables for buttons are built up using the most specific resource of: Foreground icon: main_button_