Get integer value from dimens.xml resource file in Android

前端 未结 6 2040
暗喜
暗喜 2020-12-20 13:01

I have an EditText which is decimal and I set its length using android:maxLength property in xml:

    

        
6条回答
  •  清酒与你
    2020-12-20 13:40

    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

提交回复
热议问题