How to get a Drawable that's a mirrored version of a different Drawable?
问题 Background I know it's possible to create a rotated version of a Drawable (or Bitmap), as such (written about it here) : @JvmStatic fun getRotateDrawable(d: Drawable, angle: Int): Drawable { if (angle % 360 == 0) return d return object : LayerDrawable(arrayOf(d)) { override fun draw(canvas: Canvas) { canvas.save() canvas.rotate(angle.toFloat(), (d.bounds.width() / 2).toFloat(), (d.bounds.height() / 2).toFloat()) super.draw(canvas) canvas.restore() } } } The problem I wanted to have