Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Can some one tell me how set maxLength in anko

  1. #1
    Newbie Newbie
    Join Date
    Jul 2017
    Posts
    2

    Can some one tell me how set maxLength in anko

    I have been trying to set maxLength for edittext in ANKO but I am unable to find right function.

    Code :
     editText()
            {
                id = R.id.et2
                hint = "age"
                inputType = android.text.InputType.TYPE_CLASS_NUMBER
                maxLines= 1
     
            }.lparams {
     
                below(R.id.et1)
                alignParentLeft()
                leftOf(R.id.bt1)
            }

    Can someone help me with this. Thanks
    Last edited by Dark Photon; 08-20-2017 at 12:23 PM.

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    4,124
    This question doesn't have anything to do with OpenGL, correct? (Anko link)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •