Showing Images Is Two Possible Ways
- Show Image As Background Of Component
- Create ImageView In Component As Show it
Showing Images Is Two Possible Ways
i want this
So This Code Is For That
No, im sorry, i mean this
I Think You Are Confuse
no, i just lack of concentration
i am unable to understand why the code is not working for you. because it works fine for me.
please try again
here is my code
@SimpleFunction
public void SetupView(AndroidViewComponent layout, String image) throws Exception {
View view = layout.getView();
Bitmap bitmap = MediaUtil.getBitmapDrawable(form, image).getBitmap();
Image img = (Image) bitmap;
view.setImage(img);
}
if this code is not working for you then, you have setup appinventor sources wrongly.
why you have to use tht
first tell me you compiled this code or not ??
okay please wait
because this statement throws Exception. So, i declared the Exception.
I donât think thatâs necessary
you can try yourself
worked or not ??
please wait, because I am using the appybuilder code editor