1

dynamically load imageView

view story
linux-howto

http://stackoverflow.com – I have a layout where one imageView want dynamically load an image from drawable files. I want this I have a certain size imageView whatever drawable image, so you need to assign a size to upload. I searched the android developers but I've only seen functions to set the maximum height and width, but ir doesn't works. I put the code: image = getIntent().getExtras().getString("image"); ImageView paper = (ImageView)findViewById(R.id.imageView1); Resources res = getResources(); int id = getResources().getIdentifier(image, "drawable", getPackageName()); Drawable drawable = res.getDrawable(id); p (HowTos)