Merge pull request #7 from Hamdy-khader/master

Force LTR to avoid blank view in RTL layout
This commit is contained in:
JingYeoh
2018-05-22 10:19:59 +08:00
committed by GitHub

View File

@@ -90,6 +90,9 @@ public class VerificationCodeEditText extends android.support.v7.widget.AppCompa
mSelectedBackgroundColor = ta.getColor(R.styleable.VerCodeEditText_selectedBackgroundColor, mSelectedBackgroundColor = ta.getColor(R.styleable.VerCodeEditText_selectedBackgroundColor,
getColor(android.R.color.darker_gray)); getColor(android.R.color.darker_gray));
ta.recycle(); ta.recycle();
// force LTR because of bug: https://github.com/JustKiddingBaby/VercodeEditText/issues/4
setLayoutDirection(LAYOUT_DIRECTION_LTR);
} }