Open PavloBohdanSonerim opened 1 year ago
Hi @PavloBohdanSonerim thanks for using our library. Is there a video you can provide reproducing the issue? A video will help us get more visibility on the issue internally for prioritization.
@sshropshire . The issue is in the gravitation of the text for the apps in RTL mode.
This is the behavior in your latest release:
Our project needs the Credit Card fields to look like this in RTL:
I fixed it by removing this code in your sources:
private void setupRTL() {
if (VERSION.SDK_INT >= 17 && this.getResources().getConfiguration().getLayoutDirection() == 1) {
this.setTextDirection(3);
this.setGravity(8388613);
}
@sshropshire
General information
When layout is set to RTL, the text field behaviour becomes incorrect.
One of the visible issues is that for fields like Credit Card, the TextInputLayout gives opposite gravitations to its hint and text.