Merge pull request #7 from Hamdy-khader/master
Force LTR to avoid blank view in RTL layout
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user