Tuesday, July 10, 2012

Set Dynamic Image Resource to android Image button android.




// 1.Create button
// 2 .Assign background
ImageView button = (ImageView) bottomView.findViewById(R.id.button);
button.setId(i);
button.setBackgroundResource(getResources().getIdentifier(
"image1", "drawable", getPackageName()));

No comments:

Post a Comment

content -->