You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can not set image resource programetically, if remove src from xml file and try to set src programetically using "scratchimageview.setimageresource" it displays nothing
The text was updated successfully, but these errors were encountered:
It will work if you instantiate ScratchImageView by using findViewById. Please take a look at the snippet below:
ScratchImageView scratchImageView = (ScratchImageView) findViewById(R.id.sample_image);
Resources resources = getResources();
final int resourceID = resources.getIdentifier(b.getString("promoCode"), "drawable", getPackageName());
scratchImageView.setImageDrawable(resources.getDrawable(resourceID, null));
can not set image resource programetically, if remove src from xml file and try to set src programetically using "scratchimageview.setimageresource" it displays nothing
The text was updated successfully, but these errors were encountered: