Skip to content

Instantly share code, notes, and snippets.

View MomenZaq's full-sized avatar

Momen Zaqout MomenZaq

View GitHub Profile
@MomenZaq
MomenZaq / AndroidDrawableImporter.md
Created September 13, 2021 18:52 — forked from delacrixmorgan/AndroidDrawableImporter.md
Android Drawable Importer - Change Logs

Android Drawable Importer by Marc Prengemann

This plugin consists of three main features. You can access them by a right-click anywhere, but not on a file, inside an Android module under New.

  1. AndroidIcons and Material Icons Drawable Import You are able to select the asset, specify your color, change the target resource name and select all the resolutions you want to import. All the missing folders will be created automatically. If there are already drawables with the same name, you will be warned. You can even search for your desired asset by just start typing when the first spinner has focus. Since Material Icons provide also Vector Drawables, those can be imported now as well!

  2. Batch Drawable Import Select assets (or a whole folder) and specify the source resolutions. You can change the source size of every image as well. Specify all resolutions, to which it should be resized to.

@MomenZaq
MomenZaq / ConnectivityAndInternetAccess.kt
Created January 27, 2020 19:32
Class to check the Connectivity and Internet Access of an Android device.
/*
* Copyright (c) 2020 Rodrigo Sambade
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions: