Part of my application requires it to be compatible if somebody was looking at the screen via mirror. Does anybody know a way where I can mirror all of the text on screen? I have tried mirrorText.setLayoutDirection(View.LAYOUT_DIRECTION_RTL);
but it hasn't worked. Thank you
This is very simple to accomplish. The code I used was:
Text.setScaleX(-1);
Text.setScaleY(1);
Text.setTranslationX(1); //To place everything back where it was originally.
Hope this helps!
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