FORUMS
Remove All Ads from XDA

[TEMPLATE] Icon Packs/Themes for Apex, Nova, Holo, ADW, and more!!

4,329 posts
Thanks Meter: 3,162
 
Post Reply Email Thread


the1dynasty's
Icon Pack Template Source Code




I have had a lot of people trying to make icon packs etc and always asking me about things in mine... So I made a template that I hope everyone would appreciate and use if needed...

Compatible with most launchers including but not limited to:
  • Apex
  • Nova
  • Holo
  • ADW
  • Action
  • and many more...

Easily customizable to your own needs... Heavily commented code for easy understanding... If this helped you, please hit the thanks button

This is a great template for anyone to use and if you would like to contribute code or fixes to areas of this template... Please email me at [email protected]


SourceCode

>>> GitHub Link <<<



SampleApplication

>>> Playstore Link <<<





The Following 117 Users Say Thank You to the1dynasty For This Useful Post: [ View ] Gift the1dynasty Ad-Free
22nd May 2013, 09:14 PM |#2  
the1dynasty's Avatar
OP Senior Member
Thanks Meter: 3,162
 
Donate to Me
More
Changelog
Changelog


v2.1.2 - 07/01/2013
  • Fixed Nova & Go Launcher
  • Added working Go Launcher "Apply" button

v2.1.1
  • Added GlassActionBar to the template
  • Removed NOA dependency
  • Slightly tweaked layouts

v2.0.0 - 06/25/2013
  • Removed hardcoded strings. Now better for translations.
  • Custom fonts can now be used throughout the app
  • Cleaned up folders/files/code
  • Changed "Apply" dialog to GridView
  • Added more "Apply" buttons (for future implementation)
  • Fixed Wallpaper section of app
  • Roboto-Thin is now the default font
  • Fixed scaling on top banner across all screen sizes
v1.1.0
  • File restructuring
  • Added Tablet Support
  • Changed code from ListView to GridView
  • Holo Light/Light ActionBar is the default instead of Holo Light/Dark ActionBar
  • Misc new images
  • Added Action Launcher to the Apply dialog

v1.0.1
  • Fixed ADW and Nova intents
  • Fixed a lot of references for various layouts and colors
  • Other Misc things

v1.0.0
  • Initial release
The Following 32 Users Say Thank You to the1dynasty For This Useful Post: [ View ] Gift the1dynasty Ad-Free
22nd May 2013, 09:14 PM |#3  
the1dynasty's Avatar
OP Senior Member
Thanks Meter: 3,162
 
Donate to Me
More
Tutorial Video/Misc edits
Video and Misc Things YOU can add to this template, submitted by various people... Please be sure to thank them all for their contributions!
png2xml JAR file will create 2 xml files for your icon pack... It generates a "drawable.xml" and a "icon_pack.xml" based on the png's you have in a folder...
simple to use, just download this and place it inside the same folder as your png's... then open a command prompt and cd to that directory... then run the command java -jar png2xml.jar and your files are generated and ready to copy/paste into your theme...

Download png2xml.jar Thanks to Pkmmte for creating this file for us!
Tutorial for setting up this project and making some edits!
Please don't ask about anything that is already discussed in this videos... I will not respond to you


Please thank @bagarwa and @unseenvision for their help with this part!

Quote:
Originally Posted by bagarwa

If anyone wants to add Go Launcher support in their theme pack, here's what you gotta do -
Add this line towards the bottom of AndroidManifest.xml, before </activity> -

Code:
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="com.gau.go.launcherex.theme" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
And place a themecfg.xml in assets folder. Content of the file-
Code:
<?xml version="1.0" encoding="utf-8"?>
<theme>
<version>1</version>
<themeName>Your Theme Name</themeName>
<themeInfo>Your Theme description</themeInfo>
<preview img1="theme_preview1" img2="theme_preview2" />
</theme>
This will provide the 'preview' images to Go theme manager.

I haven't found a way to provide a one tap apply functionality, like those for Nova/Apex etc.. but I'm not bothered about that. It's like wasting time on supporting IE6.


Another thing I found out, if anyone wants to use -
If you want to place a facebook page button on the app, the easiest way is adding this in MainFragment.java -

Code:
Intent facebook = new Intent(Intent.ACTION_VIEW).setData(Uri.parse	
("https://www.facebook.com/YOUR-PAGE-NAME"));
startActivity(facebook);
break;
But problem with this is, tapping on the button then opens the link in browser and not the facebook app. If you want it open in the facebook app, use this instead -
Code:
if(isPackageExists("com.facebook.katana")){
Intent facebook = new Intent(Intent.ACTION_VIEW).setData(Uri.parse
("fb://profile/YOUR-FB-PAGE-ID-NUMBER"));
startActivity(facebook);
}
else{
Intent facebook = new Intent(Intent.ACTION_VIEW).setData(Uri.parse
("https://www.facebook.com/YOUR-PAGE-NAME"));
startActivity(facebook);
}
break;
To get YOUR-FB-PAGE-ID-NUMBER, go to this page - https://graph.facebook.com/<YOUR-PAGE-NAME>

Hope this helps.

And also this part below

(some wording was changed to make sense)
Quote:
Originally Posted by unseenvision

//Solution for full Go Launcher EX Support - Including the ability to apply the theme.


[B]
You still need to do the steps in the above part submitted by @bagarwa (Add Intent to Manifest and themecfg.xml to /assests)

but also add the Intent:

Code:
            <intent-filter>
                <category android:name="android.intent.category.INFO" />
            </intent-filter>
So, the full Intent added to your Manifest should be:

Code:
 <!-- Go -->
            <intent-filter>
                <action android:name="com.gau.go.launcherex.theme" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <category android:name="android.intent.category.INFO" />
            </intent-filter>
In addition to this:

1. Add these two XMLs to /assets

  • app_func_theme.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Theme version="1">

<Home bg_color="#FF0F0A00" 
	bg_frame_way_of_drawing="" 
	bg_v_image="dock" 
	bg_h_image="none" 
	bg_way_of_drawing="1" 
	unselected="appfunchome" 
	selected="appfunchome_selected" 
	home_deliver_line_v="appfunc_home_deliver_line_v" 
	home_deliver_line_h="none"/>

<Folder bg_frame_image="folderopenback" 
	bg_frame_way_of_drawing="1" 
	editbox="appfunc_rename" 
	up_button="folder_add" 
	up_button_selected="folder_add_light" 
	line_enabled="1" 
	folder_open_bg_color="#7F000000" 
	bg_frame_image_bottom_heigth="36" 
	edittext_color="#FFFFFF" 
	sort_button="folder_short_btn" 
	sort_button_light="folder_short_btn_light" 
	add_buton="folder_add" 
	add_button_light="folder_add_light"/>
	
<Wallpaper image="funbg" bg_color="#00000000"/>

<Indicator indicator_h_current="screennow" indicator_h="screenother"/>

<Foldericon bottom="appfunc_folderback" top_open="appfunc_folder_open" top_closed="appfunc_folder_close_up"/>

<AllTabs bg_v_image="tabbg" bg_h_image="none" bg_way_of_drawing="1"/>

<Tab bg_frame_way_of_drawing="" 
	bg_v_image="none" 
	bg_h_image="none" 
	bg_way_of_drawing="2" 
	selected_v_image="appfunc_tab_current_v" 
	selected_h_image="none" 
	selected_way_of_drawing="2" 
	focused_v_image="appfunc_tab_focused_v" 
	focused_h_image="none" 
	focused_way_of_drawing="2" 
	cutLine_enabled="0" 
	orientation_enabled="1"/>
	
<TabTitle unselected="#ffcccccc" selected="#ffffffff" gap_v="19" gap_h="40"/>
	
<RuningDock home_memory_bg="appfunc_memory_bg" 
	home_memory_process_low="appfunc_memory_low" 
	home_memory_process_middle="appfunc_memory_middle" 
	home_memory_process_high="appfunc_memory_high" 
	home_clean_normal="appfunc_home_runing_clear" 
	home_clean_light="appfunc_home_runing_clear_ligh" 
	home_lock_list_normal="appfunc_home_runing_lock_list" 
	home_lock_list_light="appfunc_home_runing_lock_list_light" 
	home_line_img_v="appfunc_home_deliver_line_v" 
	home_line_img_h="appfunc_home_deliver_line_h" 
	home_running_text_color="#FFFFFFFF"/>

<AllAppDock search_unselected="appfunc_home_search" 
	search_selected="appfunc_home_search_light" 
	menu_unselected="appfunc_home_menu" 
	menu_selected="appfunc_home_menu_light" 
	home_myapp="appfunc_home_my_apps" 
	home_myapp_light="appfunc_home_my_apps_light" 
	home_media_unselected="appfunc_mediamanagement_switch_button_app" 
	home_media_selected="appfunc_mediamanagement_switch_button_app_light"/>

<RecentDock home_recent_clear="appfunc_home_clear" 
	home_recent_clear_selected="appfunc_home_clear_light" 
	home_recent_nodata_Bg="appfunc_recent_nodata_bg" 
	home_recent_nodata_text_color="#ffcccccc"/>

<AllAppMenu menu_bg_v="appfunc_menu_bg_v" 
	menu_bg_h="none" 
	menu_divider_v="appfunc_menu_line" 
	menu_divider_h="none" 
	menu_text_color="#000000" 
	menu_item_selected="appfunc_menu_item_selector"/>

<AppIcon text_color="#ffffffff" 
	text_bg_color="#FFAC00" 
	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"/>

<AppSetting grid_format="1"/>

<TabIcon name="AllApps" current="allapp_current_focuse" unselected="allapp" selected="allapp_selected"/>

<TabIcon name="Process" current="run_current_focuse" unselected="run" selected="run_selected"/>

<TabIcon name="RecentApps" current="history_current_focuse" unselected="history" selected="history_selected"/>

<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"/>

<SwitchMenuBean media_menu_bg_v="appfunc_mediamanagement_switch_menu_bg" 
	media_menu_bg_h="none" 
	media_menu_divider_v="appfunc_menu_line" 
	media_menu_divider_h="none" 
	media_menu_item_gallery_selector="switch_menu_image_selector" 
	item_gallery_normal="appfunc_mediamanagement_switch_menu_gallery" 
	item_gallery_focus="appfunc_mediamanagement_switch_menu_gallery_light" 
	media_menu_item_music_selector="switch_menu_audio_selector" 
	item_music_normal="appfunc_mediamanagement_switch_menu_music" 
	media_menu_item_video_selector="switch_menu_video_selector" 
	item_video_normal="appfunc_mediamanagement_switch_menu_video" 
	item_video_focus="appfunc_mediamanagement_switch_menu_video_light" 
	media_menu_item_app_selector="switch_menu_app_selector" 
	item_app_normal="appfunc_mediamanagement_switch_menu_app" 
	item_music_focus="appfunc_mediamanagement_switch_menu_music_light" 
	item_app_focus="appfunc_mediamanagement_switch_menu_app_light" 
	media_menu_text_color="#ffffffff"/>

</Theme>
  • desk.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Desk Version="1.0" VersionCode="1" Wallpaper="default_wallpaper" ScollWallpaper="false" WallpaperFill="0">

<CommonStyles>
	<IconStyle>
		<Layer Height="" Width="" Valign="" Halign="" Margins="{1,1,0,0}"/>
		<ShowItemLayer Height="" Width="" Valign="" Halign="" Margins="{1,1,0,0}">
			<Wallpaper Image="" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			<Wallpaper Image="" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
		</ShowItemLayer>
		<ShowItemLayer Height="" Width="" Valign="" Halign="" Margins="{1,1,0,0}">
			<Wallpaper Image="" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			<Wallpaper Image="" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
		</ShowItemLayer>
	</IconStyle>
</CommonStyles>

<Screen Source="screen.xml">
	<ScreenStyles>
		<ScreenIconStyle Height="" Width="" Valign="" Halign="" Margins="{1,1,0,0}" ShowLightMode="1" TextValign="" TextHalign="">
			<Wallpaper Image="application_background" Identity="Text_bg" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
		</ScreenIconStyle>
		<FolderStyle>
			<Wallpaper Image="appfunc_folderback" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			<Wallpaper Image="appfunc_folder_open" Identity="OpenFolder" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			<Wallpaper Image="appfunc_folder_close_up" Identity="ColseFolder" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
		</FolderStyle>
		<Light Size="" Image="" Color=""/>
		<TrashStyle Color="">
			<Trashing Image="d_del" Valign="" Halign="" Margins="{1,1,0,0}">
				<Wallpaper Image="trash_bg_normal" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			</Trashing>
			<Trashed Image="del" Valign="" Halign="" Margins="{1,1,0,0}">
				<Wallpaper Image="trash_bg_hover" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			</Trashed>
		</TrashStyle>
		<Font Size="" Color=""/>
	</ScreenStyles>
</Screen>

<Indicator Source="indicator.xml">
	<IndicatorStyles ShowMode="1" WhenScreenCount="">
		<IndicatorItem Height="24" Width="24" Identity="Dots" Margins="{1,1,0,0}">
			<Wallpaper Image="screennow" Identity="Selected" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			<Wallpaper Image="screenother" Identity="UnSelected" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
		</IndicatorItem>
		<IndicatorItem Height="" Width="" Identity="Slide" Margins="{1,1,0,0}">
			<Wallpaper Image="screennow" Identity="Selected" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
		</IndicatorItem>
	</IndicatorStyles>
</Indicator>

<Preview Source="preview.xml">
	<PreviewStyles LineItemCount="3">
		<Wallpaper Image="preview_home_btn_focus" Identity="Home" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
		<Wallpaper Image="preview_home_btn" Identity="NotHome" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
		<Wallpaper Image="preview_del_btn_focus" Identity="Colseing" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
		<Wallpaper Image="preview_del_btn" Identity="Colsed" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
		<Card Identity="CurrentScreen">
			<Item Id="" Text="">
				<Wallpaper Image="preview_border_current" Identity="Background" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
			</Item>
		</Card>
		<Card Identity="NomalScreen">
			<Item Id="" Text="">
				<Wallpaper Image="preview_border" Identity="Background" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
			</Item>
		</Card>
		<Card Identity="AddScreen">
			<Item Id="" Text="">
				<Wallpaper Image="preview_addscreen" Identity="Background" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
			</Item>
		</Card>
		<Card Identity="FocusScreen">
			<Item Id="" Text="">
				<Wallpaper Image="preview_border_focus" Identity="Background" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
			</Item>
		</Card>
		<Card Identity="FocusAddScreen">
			<Item Id="" Text="">
				<Wallpaper Image="preview_addscreen_focus" Identity="Background" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
			</Item>
		</Card>
		<Card Identity="DeleteScreen">
			<Item Id="" Text="">
				<Wallpaper Image="preview_deletescreen" Identity="Background" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
			</Item>
		</Card>
	</PreviewStyles>
</Preview>

<Dock Source="dock.xml">
	<DockSetting RowCount="2" IsBackground="true" Background="dock" BackgroundFill="1"/>
	<Notifys>
		<NotifyItem Value="true" Key="SMS" KeyWord=".SMS"/>
		<NotifyItem Value="true" Key="CALL" KeyWord=".CALL"/>
		<NotifyItem Value="true" Key="GMAIL" KeyWord=".GMAIL"/>
	</Notifys>
	<DockStyles Height="" Width="" Color="#FFFF9710" LineItemCount="5">
		<DockIconStyle Height="" Width="" Valign="" Halign="" Margins="{0,1,0,0}"/>
		<SymtemDefualt>
			<SymtemDockItem Index="0" GestureIntent="">
				<Wallpaper Image="phone" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			</SymtemDockItem>
			<SymtemDockItem Index="1" GestureIntent="">
				<Wallpaper Image="contacts" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			</SymtemDockItem>
			<SymtemDockItem Index="2" GestureIntent="">
				<Wallpaper Image="d_home" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			</SymtemDockItem>
			<SymtemDockItem Index="3" GestureIntent="">
				<Wallpaper Image="messaging" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			</SymtemDockItem>
			<SymtemDockItem Index="4" GestureIntent="">
				<Wallpaper Image="browser" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
			</SymtemDockItem>
		</SymtemDefualt>
		<NoApplicationIcon GestureIntent="">
			<Wallpaper Image="d_add" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
		</NoApplicationIcon>
		<NullIcon GestureIntent="">
			<Wallpaper Image="" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
		</NullIcon>
		<NotifyStyle Valign="" Halign="" Margins="{1,1,0,0}" TextValign="" TextHalign="">
			<Wallpaper Image="" Identity="" Margins="" Color="" Fill="1" Border="1" BorderColor="" BorderLine=""/>
		</NotifyStyle>
	</DockStyles>
</Dock>

<GlMenu Column="" Row="" Identity="desk" TextColor="#ff404040" SelectTextColor="#ff51b801" UnselectTextColor="#ff919192">
	<Wallpaper Image="glmenu_bg" Identity="Background" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	<Wallpaper Image="menu_selected" Identity="ItemBackground" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	<Wallpaper Image="glmenu_select_topline" Identity="SelectTabLine" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	<Wallpaper Image="glmenu_unselect_topline" Identity="UnSelectTabLine" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	<Wallpaper Image="glmenu_item_line" Identity="Itemline" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	<Item Id="100" Text="">
		<Wallpaper Image="menuitem_add" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="101" Text="">
		<Wallpaper Image="menuitem_wallpaper" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="102" Text="">
		<Wallpaper Image="menuitem_theme" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="103" Text="">
		<Wallpaper Image="menuitem_gostore" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="104" Text="">
		<Wallpaper Image="menuitem_screenedit" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="105" Text="">
		<Wallpaper Image="menuitem_preference" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="106" Text="">
		<Wallpaper Image="menuitem_syssetting" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="107" Text="">
		<Wallpaper Image="menuitem_effect" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="108" Text="">
		<Wallpaper Image="menuitem_golocker" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="109" Text="">
		<Wallpaper Image="menuitem_gowidget" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="110" Text="">
		<Wallpaper Image="menuitem_notification" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="111" Text="">
		<Wallpaper Image="menuitem_language" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="112" Text="">
		<Wallpaper Image="menuitem_update" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="113" Text="">
		<Wallpaper Image="menuitem_share" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="114" Text="">
		<Wallpaper Image="menuitem_grade" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="115" Text="">
		<Wallpaper Image="menuitem_fb" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="116" Text="">
		<Wallpaper Image="menuitem_restart" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="117" Text="">
		<Wallpaper Image="menuitem_notificationbar" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="118" Text="">
		<Wallpaper Image="menuitem_desklock" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="119" Text="">
		<Wallpaper Image="menuitem_deskunlock" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="120" Text="">
		<Wallpaper Image="menuitem_message" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="121" Text="">
		<Wallpaper Image="menuitem_gobackup" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="124" Text="">
		<Wallpaper Image="menuitem_gohandbook" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="130" Text="">
		<Wallpaper Image="menuitem_appcenter" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
	<Item Id="131" Text="">
		<Wallpaper Image="menuitem_gamezone" Identity="" Margins="" Color="" Fill="" Border="" BorderColor="" BorderLine=""/>
	</Item>
</GlMenu>

</Desk>


2. Add the following to your strings.xml

Code:
<bool name="config_iconpack">true</bool>
<bool name="enableIconPack">true</bool>
<bool name="enableDockPack">false</bool>
and

Code:
<string name="theme_title">THEME_NAME_HERE</string>


That's it. Everything should work now.


Want your app to show fullscreen by removing the StatusBar? follow these steps below and be sure to thank @brainscollector for his help on this!
Quote:
Originally Posted by brainscollector

Hello there

Well, if someone like me - don't like notification bar in (these ugly status bar on top of application) follow me !


So, first, just in case backup your "src" folder from main folder. Now open your notepad++ (don't use normal notepad, it will make you look more geeky now) and open those files:

src/gridview/Main.java
src/your/icon/pack/name/Icons.java
src/your/icon/pack/name/Wallaper.java
src/your/icon/pack/name/AboutThemeActivity.java

and add to each:

Code:
import android.view.WindowManager;
import android.view.Window;
under package gridview;

so it would look like (example from Main.java):

Code:
package gridview;

/** 
 ** Some lines may be off a few numbers
 ** Just be sure you're in the general area
 **/

import com.xynapse.origami.theme.R;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.view.WindowManager;
import android.view.Window;

import com.actionbarsherlock.app.SherlockFragmentActivity;

import fragments.MainFragment;
Now add:

Code:
            requestWindowFeature(Window.FEATURE_NO_TITLE);
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
            WindowManager.LayoutParams.FLAG_FULLSCREEN);
under:

in Main.java - protected void onCreate(Bundle savedInstanceState) {
in Icons.java - public void onCreate(Bundle savedInstanceState) {
in Wallpaper.java - public void onCreate(Bundle icicle) {
in AboutThemeActivity.java - public void onCreate(Bundle savedInstanceState) {

so it would be between listed above and super.onCreate
example from Main.java:

Code:
  @override
	protected void onCreate(Bundle savedInstanceState) {
	 requestWindowFeature(Window.FEATURE_NO_TITLE);
	 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
	 WindowManager.LayoutParams.FLAG_FULLSCREEN); 
		super.onCreate(savedInstanceState);
		setContentView(R.layout.gridview_main);
		
		getSupportFragmentManager().beginTransaction()
		.replace(R.id.container, new MainFragment())
		.commit();
	}
and that's it

now you can enjoy full screen feel

The Following 34 Users Say Thank You to the1dynasty For This Useful Post: [ View ] Gift the1dynasty Ad-Free
23rd May 2013, 12:32 AM |#4  
Senior Member
Thanks Meter: 1,392
 
More
What a time saver! Shall try this soon, thanks for sharing!
The Following User Says Thank You to ock For This Useful Post: [ View ] Gift ock Ad-Free
23rd May 2013, 06:15 AM |#5  
cartmenicus's Avatar
Senior Member
Flag British columbia
Thanks Meter: 1,976
 
Donate to Me
More
Awesome this will be a huge help to many people I bet!!

Sent from my LT30p
The Following User Says Thank You to cartmenicus For This Useful Post: [ View ] Gift cartmenicus Ad-Free
23rd May 2013, 08:45 AM |#6  
_Sofos_'s Avatar
Senior Member
Flag Thessaloniki
Thanks Meter: 1,245
 
Donate to Me
More
Very handy, thank you for sharing.

Στάλθηκε από το GT-I9100 μου χρησιμοποιώντας Tapatalk 2
23rd May 2013, 10:34 AM |#7  
Senior Member
Thanks Meter: 257
 
Donate to Me
More
My god. Thank you very much! I shall be updating all of the icon packs with this.
The Following User Says Thank You to manic_nimrod For This Useful Post: [ View ] Gift manic_nimrod Ad-Free
23rd May 2013, 11:38 AM |#8  
inazr's Avatar
Member
Flag Bonn
Thanks Meter: 108
 
Donate to Me
More
I got an error when using

Code:
<activity 
            android:name="activities.AboutDev"
            android:theme="@style/Theme.Sherlock.Dialog" >
        </activity>
in the manifest, but

Code:
<activity 
            android:name="activities.AboutDev"
            android:theme="@style/Theme.Dialog" >
        </activity>
is working.

Is it because of

http://stackoverflow.com/questions/1...herlock-dialog

https://github.com/JakeWharton/Actio...d5af0b531b6135

or did I made something wrong?
The Following User Says Thank You to inazr For This Useful Post: [ View ] Gift inazr Ad-Free
23rd May 2013, 11:52 AM |#9  
rinjani88's Avatar
Member
Flag Mataram
Thanks Meter: 2
 
More
Thanks for sharing this and I hope I can understand yr instruction completely cos I'm newbie:thumbup::thumbup::thumbup:

Sent from my ST21i
23rd May 2013, 02:31 PM |#10  
Senior Member
Thanks Meter: 257
 
Donate to Me
More
Edit 6:

Giving up on getting this to work. Once I fix something, more errors appear, and now when I try to run it on my device it crashes.

I think it's something todo with my mac, so I don't know.
The Following User Says Thank You to manic_nimrod For This Useful Post: [ View ] Gift manic_nimrod Ad-Free
23rd May 2013, 05:02 PM |#11  
gonza28's Avatar
Senior Member
Flag Buenos Aires
Thanks Meter: 217
 
Donate to Me
More
Thanks for the project friend.
appreciate one estructivo, yet I see that the post is still under construction. I would like to show the multiple errors that occur when opening the project. is excellent work. thanks for helping those who do not fully understand. a hug.
sorry. my English is not good.

Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes