Accessing integer resources in xml

前端 未结 6 1460
醉酒成梦
醉酒成梦 2021-02-02 08:23

I have read this where found that how to access integer resources in java class but no docs for another resource.

Here is Resources at res/values/integers.xml

         


        
6条回答
  •  感情败类
    2021-02-02 09:00

    The correct way to access an integer field is using @integer/input_field_padding

    In XML

      
    

    In JAVA

    R.integer.integer_name
    

    Refer this http://developer.android.com/guide/topics/resources/more-resources.html#Integer .

提交回复
热议问题