Glide: How to use the glide to load the image resource in the assets by uri

Created on 25 Nov 2015  路  5Comments  路  Source: bumptech/glide

question

Most helpful comment

This doesn't work

All 5 comments

First Google result searching for this issue's title:
http://stackoverflow.com/q/29982341/253468

For resource ids, you can use:

Glide.with(fragment)
        .load(R.id.resource_id)
        .into(imageView);

For assets, you can construct an asset uri:

Glide.with(fragment)
        .load(Uri.parse("file:///android_asset/assetName"))
        .into(imageView);

--- answered by @sjudd

This doesn't work

+1 This doesn't work

Commenting on a year+ old issue is not likely to get you a useful answer. If something isn't working for you, please file a new issue and fill out the issue template.

it may not get a useful answer, but it tells other people this is not working code.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

technoir42 picture technoir42  路  3Comments

kenneth2008 picture kenneth2008  路  3Comments

sant527 picture sant527  路  3Comments

PatrickMA picture PatrickMA  路  3Comments

Morteza-Rastgoo picture Morteza-Rastgoo  路  3Comments