I have an EditText which is decimal and I set its length using android:maxLength property in xml:
I tested with Android Studio 3.3.1 with SDK lollipop
Keep an eye on the paths...
Clean and build... I had a pretty hard time, thinking it's not working, but after deleting the file and Re-add, and few clean and build, I got it working strange...
1. This works ( note the tick and its path)
2. Here is proof