i want get the bound of drawable but then i use getBounds or copyBounds method .they all return Rect(0, 0 - 0, 0). the code like this
Drawable marker =
Drawables don't have dimensions unless they've been drawn. If you want to get the size of the image you're passing in, you can create your own rect with drawable.getIntrinsicWidth() and drawable.getIntrinsicHeight()
drawable.getIntrinsicWidth()
drawable.getIntrinsicHeight()