6
Hello, I need help changing an image dynamically
Follows my code:
st = (ImageView) findViewById(R.id.imageView4);
int RID = this.getApplicationContext().getResources().getIdentifier(Bundle_img, "drawable", getPackageName());
st.setImageResource(RID );
the above code is not overwriting the previous image.
How is String coming
Bundle_img
?– rsicarelli
Bundle_img = "red"
– Kleber Souza
Friend Thanks, I already found the problem. I committed an operational failure. : D My image is with ic_situacao_+(Bundle_img) Thanks
– Kleber Souza
Put the solution here to help others in the future. obg
– vhbsouza