Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Bug in CustomEditText Touch Listener #5

Open
pazhamalai opened this issue Dec 16, 2018 · 1 comment
Open

Bug in CustomEditText Touch Listener #5

pazhamalai opened this issue Dec 16, 2018 · 1 comment

Comments

@pazhamalai
Copy link

if (getLayoutDirection() == LAYOUT_DIRECTION_RTL) {
// If RTL, get the end of the button on the left side.
clearButtonEnd = mClearButtonImage
.getIntrinsicWidth() + getPaddingStart();

This line comes from the implementation of touch listener in EditTextWithClear file. If the layout direction is RTL, the getPaddingEnd() should be used instead of getPaddingStart(). In RTL, getPaddingStart will give padding on the right side and getPaddingEnd will give padding on the left side.

@MonikaJethani
Copy link

@aleksinthecloud Can I work on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants