Skip to content

Instantly share code, notes, and snippets.

@fishmacs
Created August 23, 2012 04:52
Show Gist options
  • Save fishmacs/3432574 to your computer and use it in GitHub Desktop.
Save fishmacs/3432574 to your computer and use it in GitHub Desktop.
android/bitmap/drawable/button
Bitmap bitmap = BitmapFactory.decodeFile("...");
BitmapDrawable drawable = new BitmapDrawable(bitmap);
Button button = (Button)findViewById(...);
button.setCompoundDrawablesWithIntrinsicBounds(null, drawable, null, null);
@fishmacs
Copy link
Author

Button android:drawableTop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment