Skip to content

How to add image from drawable rather than gallery? #321

Answered by basitis
BaniHani asked this question in Q&A
Discussion options

You must be logged in to vote

@BaniHani If you have fix drawable then you can directly give to the xml and if you want to load runtime then library is expose "source"(ImageView). You can access something like this:

photoFrameEditorView.source.setImageDrawable(getResources().getDrawable(R.drawable.my_drawable));

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by burhanrashid52
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #313 on March 03, 2021 00:42.