yigitserin / CurrencyEditText

A simple EditText input designed to input decimal and currency values.
MIT License
16 stars 9 forks source link

EditText theming #8

Open zhambylgaziz opened 4 years ago

zhambylgaziz commented 4 years ago

Hello, Thanks. I want to text to be on left. None of this options does not help:

android:gravity="start"

android:textDirection="locale"
android:textAlignment="viewStart"

programmatically: binding.etAmount.gravity = Gravity.LEFT

zhambylgaziz commented 4 years ago

Also, need to change an input type of the text. It is by default set to phone, change it to numberDecimal

zhambylgaziz commented 4 years ago

Hello, Thanks. I want to text to be on left. None of this options does not help:

android:gravity="start"

android:textDirection="locale"
android:textAlignment="viewStart"

programmatically: binding.etAmount.gravity = Gravity.LEFT

Asimgiray commented 4 years ago

Hello i have the same problem but this worked for me;

[your_edittext].setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START);

GMCristiano commented 3 years ago

Hi yigitserin. I forked your project with a new implementation in kotlin and fixed some bugs including this. https://github.com/GMCristiano/CurrencyEditText