Is there a way to hit a button, and have the same layout view but flipped horizontally/mirrored ? (with all it's components) or the only way is to create the same layout and rearrange the components?
Tap the crop icon in the bottom as it has the flip options, then tap Rotate from the newly opened toolbar. You can now tap Flip Horizontal or Flip Vertical to flip your photo.
To flip an image or icon, simply: Select the object you would like to flip. Right click on that object, and select 'Flip Horizontal' or 'Flip Vertical'.
Open Google Photos on your Android phone, tap the Search bar. Tap Videos and choose the video you want to rotate or flip. Tap the Slide bar and tap Rotate to flip a video on Android.
You can flip a layout by setting the View property scaleX
to -1. So View#setScaleX(1f)
is normal, and View#setScaleX(-1f)
is flipped (visually).
To do it pre-Honeycomb, you can use scale properties in the general Animation library. Just set the animation duration to 0 for immediate look (note, the elements will still be in the normal locations).
You can use setRotationY(float)
method to flip over the Y axis. If you would call yourView.setRotationY(180f)
it would flip it horizontally. Similarly, yourView.setRotationX(180f)
would flip it vertically.
Please note that it flips on a 3D space, so if you'd flip for 90f, your view will practically be invisible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With