All Projects → ar-android → Androidsvgloader

ar-android / Androidsvgloader

Android library for load svg from internet to imageview

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Androidsvgloader

Itext7
iText 7 for Java represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText 7 can be a boon to nearly every workflow.
Stars: ✭ 913 (+1655.77%)
Mutual labels:  library, svg
Svg To Ts
Build performant SVG icon libraries by converting raw SVG files to TypeScript that is optimized for modern tree shaking mechanisms.
Stars: ✭ 131 (+151.92%)
Mutual labels:  library, svg
Jtop
SVG virtual desktop library that lets you build beautiful desktop like user interfaces.
Stars: ✭ 108 (+107.69%)
Mutual labels:  library, svg
Php Svg
Vector graphics (SVG) library for PHP
Stars: ✭ 256 (+392.31%)
Mutual labels:  library, svg
Deepsvg
[NeurIPS 2020] Official code for the paper "DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation". Includes a PyTorch library for deep learning with SVG data.
Stars: ✭ 403 (+675%)
Mutual labels:  library, svg
Mojs
The motion graphics toolbelt for the web
Stars: ✭ 17,189 (+32955.77%)
Mutual labels:  library, svg
Vivid
a JavaScript library which is built to easily customize and use the SVG Icons with a blaze.
Stars: ✭ 1,797 (+3355.77%)
Mutual labels:  library, svg
Itext7 Dotnet
iText 7 for .NET is the .NET version of the iText 7 library, formerly known as iTextSharp, which it replaces. iText 7 represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText 7 can be a boon to nearly every workflow.
Stars: ✭ 698 (+1242.31%)
Mutual labels:  library, svg
Ikonograph
⚠️ This project is no longer mantained
Stars: ✭ 13 (-75%)
Mutual labels:  library, svg
Thirtyinch
a MVP library for Android favoring a stateful Presenter
Stars: ✭ 1,052 (+1923.08%)
Mutual labels:  library
Long Shadows
Long Shadows for android!
Stars: ✭ 1,059 (+1936.54%)
Mutual labels:  library
Squircle
Make all the squircles you need, in the browser. https://squircley.app/
Stars: ✭ 50 (-3.85%)
Mutual labels:  svg
Libgit2
A cross-platform, linkable library implementation of Git that you can use in your application.
Stars: ✭ 8,208 (+15684.62%)
Mutual labels:  library
Faboptions
A multi-functional FAB component with customizable options
Stars: ✭ 1,060 (+1938.46%)
Mutual labels:  library
Pure Vue Chart
Simple and lightweight vue chart component without using chart library dependencies
Stars: ✭ 50 (-3.85%)
Mutual labels:  svg
Plog
Portable, simple and extensible C++ logging library
Stars: ✭ 1,061 (+1940.38%)
Mutual labels:  library
Cordova App Harness
[DEPRECATED] Apache Cordova app harness
Stars: ✭ 49 (-5.77%)
Mutual labels:  library
Go Tox
Go wrapper for the toxcore library - contributions welcome!
Stars: ✭ 49 (-5.77%)
Mutual labels:  library
Hadotnet
🏡 A .NET Standard library for Home Assistant.
Stars: ✭ 52 (+0%)
Mutual labels:  library
Thmap
Concurrent trie-hash map library
Stars: ✭ 51 (-1.92%)
Mutual labels:  library

AndroidSvgLoader

Android library for load svg from internet to imageview

Installation

build.gradle

allprojects {
  repositories {
   maven { url 'https://jitpack.io' }
  }
 }

app/build.grdle

implementation 'com.github.ar-android:AndroidSvgLoader:1.0.2'

or

compile 'com.github.ar-android:AndroidSvgLoader:1.0.2'

Usage

public class MainActivity extends AppCompatActivity {

    private ImageView image;
    private String url;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        url = "http://www.clker.com/cliparts/u/Z/2/b/a/6/android-toy-h.svg";

        image = (ImageView) findViewById(R.id.image);

        SvgLoader.pluck()
                .with(this)
                .setPlaceHolder(R.mipmap.ic_launcher, R.mipmap.ic_launcher)
                .load(url, image);
    }

    /**
     * Use this if you need to load svg from a specific directory
     */
    private void loadFromUri(){
        Uri uri = Uri.parse("android.resource://com.ahmadrosid.androidsvgloader/" + R.raw.sample);
        SvgLoader.pluck()
                .with(this)
                .setPlaceHolder(R.mipmap.ic_launcher, R.mipmap.ic_launcher)
                .load(uri, image);
    }

    @Override protected void onDestroy() {
        super.onDestroy();
        SvgLoader.pluck().close();
    }
}

License

Licensed under the Apache license 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].