[Solved] Change ImageButton Drawable automatically

[ad_1]

try this:

   int resID = getResources().getIdentifier(pDrawableName , "drawable", getPackageName());    
    imageview.setBackgroundResource(resID);

where String pDrawableName = file_xyz is your image name

5

[ad_2]

solved Change ImageButton Drawable automatically