icon-pack-template-basic


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




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) then build your icon pack (.apk).



A longer explanation for how to use the template:



Adding your icons and personalising your new app:

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-basic-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-basic-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-basic-sample-layout-5.png

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


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-basic

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

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