Closed tushar091 closed 6 years ago
just add setBackgroundResource to the MotionView
how to set Gallery image in MotionView as Background. Plz help me
I have done in this way to set MotionView background, but while saving image , its background doesn`t comes only selected sticker and Text are visible.
File f = new File(getRealPathFromURI(Uri.parse(PicUri))); Drawable d = Drawable.createFromPath(f.getAbsolutePath()); motionView.setBackground(d);
The image getting stretch when I set background. How can I set background image with aspectToFit?
I done with some customisation. Make normal motion entity and set non editable it is working good.
@jayarajm or you can just add another view (ex: ImageView
) behind the MotionView
and set it's params to whatever you want.
Thank you @AndriyBas
I done with some customisation. Make normal motion entity and set non editable it is working good.
hi, could you help with code, i am also tried in same process. but i am not able to figure out holyscale value. images not able to fit with in screen.
I want to set background image upon which to add stickers