From 08928516c0c9f1514c61f6c795c3931922d805ed Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Thu, 23 Dec 2010 14:14:53 -0800 Subject: Initial import diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 0000000..d82288f --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..5a8e332 --- /dev/null +++ b/COPYING @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/README b/README new file mode 100644 index 0000000..e57b2e5 --- /dev/null +++ b/README @@ -0,0 +1,138 @@ +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_