Viren Savaliya
Blog completely focused on android question-answer.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
content -->
No comments:
Post a Comment