... | ... | @@ -14,34 +14,7 @@ The icon layer is the most interesting one. This is the layer you should draw yo |
|
|
### Add Activities to appfilter.xml
|
|
|
|
|
|
|
|
|
All the information needed is in AndroidManifest on the source code of the app.
|
|
|
|
|
|
Fist we need the android package name, in the example: ```com.germainz.identiconizer```
|
|
|
|
|
|
![packagename](https://gitlab.com/xphnx/twelf_cm12_theme/uploads/873e1f099bdadaf9481b20cec746a555/packagename.JPG)
|
|
|
|
|
|
|
|
|
Then we need the AndroidActity used for the launcher. Search for "LAUNCHER" (uppercase). Then center your attention on the tags <activity> where "LAUNCHER" is located. Discard the content inside the ```<intent-filter>``` tags.
|
|
|
|
|
|
|
|
|
The information we need is ```<activity android:name="**THISNAME**"...</activity>```
|
|
|
In this example the activity name is ```com.germainz.identiconizer.IdenticonsSettings``` but usually the activityname will appear only as ```.IdenticonsSettings``` on other apps.
|
|
|
|
|
|
![activity](https://gitlab.com/xphnx/twelf_cm12_theme/uploads/64a135ba04fb0024b7ab77f537cff42d/activity.JPG)
|
|
|
|
|
|
So for this example we need to add into Appfilter.xml something like the lines below:
|
|
|
|
|
|
``` <item component="ComponentInfo{package_id/package_id.activity_name}" drawable="iconname" />```
|
|
|
```<item component="ComponentInfo{package_id/.activity_name}" drawable="iconname" />```
|
|
|
```### in the example```
|
|
|
```<item component="ComponentInfo{com.germainz.identiconizer/com.germainz.identiconizer.IdenticonsSettings}" drawable="identiconizer" />```
|
|
|
```# or```
|
|
|
```<item component="ComponentInfo{com.germainz.identiconizer/.IdenticonsSettings}" drawable="identiconizer" />```
|
|
|
|
|
|
where
|
|
|
* **com.germainz.identiconizer** is the package name
|
|
|
* **.IdenticonsSettings** is the AndroidActity for the launcher
|
|
|
* **identiconizer** is the name of the file .png (icon file) hosted on assets/icons/res for this app
|
|
|
You can use [Turtle](https://f-droid.org/repository/browse/?fdid=org.xphnx.iconsubmit) to obtain the code. Note Turtl sets the iconname to a string (related to the activityname). You have to change the string inside: < drawable="xxxxxxxxxx" /> and make sure it is identical to the .svg you put into the svgs/wip folder.
|
|
|
|
|
|
### Proportions
|
|
|
|
... | ... | |