Advertisement
Guest User

Untitled

a guest
Feb 9th, 2011
725
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.58 KB | None | 0 0
  1. Here's a quick tut I put together fom making CM/Tmobile Themes...
  2.  
  3. Start by getting the source, you may want to go to the CM wiki to get setup. May want to build CM/AOSP before trying this since it's more documented.  
  4.  
  5. Open your terminal...
  6.  
  7. $ mkdir themes
  8. $ cd themes
  9. $ repo init -u git://github.com/tmobile/themes-platform-manifest.git -b master
  10. $ repo sync
  11. $ source build/envsetup.sh
  12. $ lunch themes_generic-eng hdpi
  13.  
  14. We can make now to make sure it compiles before moving on
  15.  
  16. $ make
  17.  
  18. After you see it works lets start our theme
  19.  
  20. $ cd tree_root
  21. $ cd vendor/tmobile/themes
  22. $ git clone git://github.com/haxzamatic/Templatebread-.git
  23.  
  24.  
  25. The themes are all going to be located in...
  26.  
  27. /home/<USER-DIR>/android-themes/vendor/tmobile/themes/
  28.  
  29. In that directory we see the source for Templatebread, open it.
  30.  
  31. Now this is the source we edit.
  32.  
  33.  
  34. package="com.gfxandroid.theme.Templatebread" to com.yourname.theme.themename
  35.  
  36. Then edit...
  37.  
  38. <theme
  39.        pluto:themeId="Cyanbread" to pluto:themeId="Themename"
  40.        pluto:styleId="@style/Cyanbread" to pluto:styleId="@style/Themename"
  41.  
  42. Save the AndroidManifest.xml
  43.  
  44. Now open /res/values folder
  45.  
  46. Open the Strings.xml and edit the following...
  47.  
  48. <resources>
  49. <string name="app_name">Templatebread Theme</string> to <string name="app_name">YouPickIt</string>
  50. <string name="theme_name">Templatebread</string> to <string name="theme_name">YouPickIt</string>
  51. <string name="style_appearance_name">Templatebread</string> to <string name="style_appearance_name">YouPickIt</string>
  52. <string name="author">Haxzamatic</string> to <string name="author">YouPickIt</string>
  53. <string name="copyright">Haxzamatic</string> to <string name="copyright">YouPickIt</string>
  54. </resources>
  55.  
  56. Save the strings.xml
  57.  
  58. Open themes.xml and edit
  59.  
  60. <resources>
  61.     <style name="Purpbread" parent="@android:style/Theme" > to <style name="YouPickIt" parent="@android:style/Theme" >
  62.  
  63. Save themes.xml
  64.  
  65. Now open the /src/com/gfxandroid and rename gfxandroid to yourthemename
  66.  
  67. So it should be /src/com/yourthemename/theme/foo.java (So you know this is what the apk will com name will be... ex: com.gfxandroid.theme.purpbread)
  68.  
  69. Before "make" we need to edit one more thing, navigate to
  70.  
  71. /home/<USER-DIR>/android-themes/vendor/tmobile/products/themes
  72.  
  73. Now open themes-base.mk and add your theme name in this case we added Purpbread
  74.  
  75. PRODUCT_PACKAGES += \
  76.     ThemeManager \
  77.     ThemeChooser \
  78.     com.tmobile.themes \
  79.     Templatebread \
  80.     Cyanbread
  81.  
  82. Now your ready to make :)
  83.  
  84. After steps above are done once you can cd to themes dir and just make for testing new addtions or changes...
  85.  
  86. $ cd themes
  87. $ source build/envsetup.sh
  88. $ lunch themes_generic-eng
  89. $ make
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement