mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
BitmapDrawable: support intrinsic sizes
This commit is contained in:
parent
e8a08f3d28
commit
ae58d29336
1 changed files with 10 additions and 0 deletions
|
@ -46,4 +46,14 @@ public class BitmapDrawable extends Drawable {
|
|||
}
|
||||
a.recycle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIntrinsicWidth() {
|
||||
return bitmap.getWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIntrinsicHeight() {
|
||||
return bitmap.getHeight();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue