Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osfunapps/os_android_launcher_creator-py
This module will create an app launcher (logo) using Android Studio
https://github.com/osfunapps/os_android_launcher_creator-py
Last synced: 27 days ago
JSON representation
This module will create an app launcher (logo) using Android Studio
- Host: GitHub
- URL: https://github.com/osfunapps/os_android_launcher_creator-py
- Owner: osfunapps
- License: mit
- Created: 2020-03-29T16:22:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T12:55:47.000Z (5 months ago)
- Last Synced: 2024-11-14T18:52:42.966Z (about 1 month ago)
- Language: Python
- Size: 306 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Introduction
------------This module will create an app launcher (logo) using Android Studio in all sizes and shapes (web, round) and in all dpis (mipmap-anydpi-v26, mipmap-hdpi, mipmap-mdpi, mipmap-xhdpi, mipmap-xxhdpi, mipmap-xxxhdpi, values).
Notice: you need to use the tools of Android Studio to make it work. I recommend to create a sample project and run on it.
## Installation
Install via pip:pip install os-android-launcher-creator
## Quick Usage
From Python:
```python
import os_android_launcher_creator.launcher_creator as lclc.create_launcher_icons(custom_android_project_path='/Users/home/Programming/android/sample_project',
icon_files_list=['path/to/first/icon1.svg', 'path/to/second/icon2.svg'],
output_path='output/path/for/all/icons',
shortcut_keys_to_open_image_asset=['shift', 'b'],
launcher_resize_percent=50,
launcher_background_color_hex='#ffffff'
delete_icon_after_done=True)
```
## Functions and Signatures
```python
def create_launcher_icons(custom_android_project_path, icon_files_list, shortcut_keys_to_open_image_asset, launcher_resize_percent=50, launcher_background_color_hex='#ffffff'):
"""
Will create a launcher icon from a given icon
NOTICE: the automation need to run in an open project in Android Studio so make sure you open one to work on!Args:
custom_android_project_path: the current open Android Studio project
icon_files_list: a list of all of the icons you wish to turn on to launcher icons
shortcut_keys_to_open_image_asset: the list of buttons to hold together in order to open the Image Asset in Android Studio
launcher_resize_percent: the resize percents of the icon to fit the frame in the editor
launcher_background_color_hex: the color of the background of the icons
"""
```![output](/images/sample.png)
## Licence
MIT