icon-pack-template-full


A free full icon pack template for android - use it with Andoid Studio to create or edit an icon pack (an icon pack is stored inside an .apk wrapper (a basic app)).




Files available to download:







To use:

Open the template in Android Studio, add your new icons in the drawable folder, update the details of the new icons to the drawable.xml and icon_pack.xml files, (optionally also edit the appfilter.xml)

Add your new wallpapers details to the array lists at the top of SecondFragment.kt, then add the wallpapers images along with their associated thumbnails (use _thumb suffix for these) to the drawable folder, update the resources list in app > res > xml > theme_wallpapers.xml, then in the app > assets folder add html files for the app to display previews (copy the examples) and also add the wallpaper jpg's again here to download them directly from assets - also add any substitute alternative files here for download such as .zip or .pdf files - see example for downloading a .zip instead of the image in the SecondFragment.kt onClickDownloadAssets code).

For the download other apps page, add details of your links to download apps to the array lists at the top of ThirdFragment.kt and also add the icons for those new apps to the drawable folder.

For the installed launcher page it should automatically detect any installed launchers from the list included but if your launcher is not included on the list or the link has changed you can ammend the array lists at the top of FourthFragment.kt and also add any icons for the new links to the drawable folder.

Rebuild and test your icon pack.



A longer explanation for how to use the template:



Adding your icons and personalising your new app:

Icons Page:

You can now personalise the template by adding your icons and editing other elements until you are satisfied with the results and then you can build your .apk again - Here's how:

  1. When using this template all your icons should be stored in the folder: app > res > drawable, look in this folder and you will see where the sample demo icons are stored and put your new icons here in the same place using the same format, you can delete the sample icons but take care to only delete icons that are actually part of the icon pack and not system icons which are also stored in that folder.
  2. Ammend the resources list in the file: app > res > xml > drawable.xml to include all the names of the new icons that you are adding. This list is used by Nova Launcher and other Launchers to find and install the icons.

  3. icon-pack-template-full-sample-layout-3.png

  4. In the file: app > res > values > icon_pack.xml (which is used to list the names and group the icons) update these lists to reflect the names and groups of icons you want your pack to contain. Make sure to include both the two basic groups "all" and "icon_pack" which will usually be identical and should both contain all of the icons in your pack. Note: Both the main "all" and "icon_pack" groups should contain an identical number and listing order of icons that the app > res > xml > drawable.xml file does because they need to correlate with each other to work! (however the icon_pack.xml and drawable.xml items can have different names but must always be in the same order of equally sized lists to match up).

    The string-array "icon_filters" at the top of the icon_pack.xml file contains the references to the different groups, each of which has their own string-array below containing the icons in each group - update these using the names of your own icons in the same format as the examples.

  5. You can also add your own extra groups such as 'Games' or 'System' etc. - just add a new string-array for each new group containing just the names of the icons from your pack that you want in those groups - and then add the names of these new groups to the "icon_filters" string-array to reference the groups.


    icon-pack-template-full-sample-layout-4.png

  6. In the file: app > res > values > appfilter.xml (it’s in here that you tell the launcher which images (icons) from your drawable folder belong to which apps) for simplicity you are probably best advised to leave this file completely as it is and only look through it if you want to see the default names to use when naming your icons or checking to see if your added icons have the same names as those already used for other activities, but if you need to and understand how to do it you can add any special information regarding your new icons here.

  7. icon-pack-template-full-sample-layout-5.png

  8. Build your app again by selecting: Build > BuildBundle(s)/APK(s) > Build APK(s)

Wallpapers Page:


Apps Page:


Launchers Page:



Some general notes on editing your new app in Android Studio:



A few things to note about the code:


Press:


To load the whole icon pack:


To edit the icons individually:


Click the link below to visit the github repository that is used to generate this site:

https://github.com/boxbot6/icon-pack-template-full


Click the link below to visit the github repository for a basic single-page version of this icon pack template:

https://github.com/boxbot6/icon-pack-template-basic