B4A Library Change Edittext Cursor Color

Discussion in 'Additional libraries, classes and official updates' started by Blue.Sky, Sep 30, 2015.

  1. Blue.Sky

    Blue.Sky Active Member Licensed User

    Hi to all
    I make a library that you can change cursor color of edittext
    If this library is useful then like me :)
    Code:
    Dim views As ViewSetting
    views.setCursorDrawableColor(txtusername,
    Colors.Red)
    Screenshot :
    [​IMG]
     

    Attached Files:

    Last edited: Oct 1, 2015
  2. ArminKH

    ArminKH Well-Known Member

    it's better if u can attach screenshots
    i don't test it yet
    but any way thank u for sharing
     
  3. JonPM

    JonPM Well-Known Member Licensed User

    I can't test right now but thank you! I've been needing this. Any specifics we need to know about (min API level, etc)?
     
  4. Blue.Sky

    Blue.Sky Active Member Licensed User

    I attach screenshot
     
  5. Blue.Sky

    Blue.Sky Active Member Licensed User

    I attach screenshot
     
  6. ArminKH

    ArminKH Well-Known Member

    great ;)
     
  7. JonPM

    JonPM Well-Known Member Licensed User

    Working good on my HTC M9 with Android 5.1. Thanks! Do you know if there is a minimum API level required?
     
  8. DonManfred

    DonManfred Expert Licensed User

    Cool! Thank you for sharing :)
     
    victormedranop likes this.
  9. Blue.Sky

    Blue.Sky Active Member Licensed User

    Yes,It is not working in api < 11
     
  10. Blue.Sky

    Blue.Sky Active Member Licensed User

    Very very very very : for i = 0 to 100000000 small gift for my friends Next loooool
     
    DonManfred likes this.
  11. pfhrr

    pfhrr Member Licensed User

    Thank you for this library. It is a function I need today :)
     
  12. Blue.Sky

    Blue.Sky Active Member Licensed User

    Good luck
     
  13. Blue.Sky

    Blue.Sky Active Member Licensed User

    I forgoted,but i think api 9 is default
     
  14. Roger Daley

    Roger Daley Well-Known Member Licensed User

    Sorry Blue Sky,

    It doesn't work on my Note 3. Tried different colours, even Transparent, no difference.

    A fatter cursor would probably help more that a colour change. Just a thought.

    Regards Roger
     
  15. Bel

    Bel Active Member Licensed User

    What's your android version?
     
  16. Roger Daley

    Roger Daley Well-Known Member Licensed User

    Hi Blue Sky,

    Android Version 4.4.2

    Details attached

    Regards Roger

    DeviceInfo.jpg
     
  17. Bel

    Bel Active Member Licensed User

    I'm not Blue Sky,i'm Bel o_O
    I think that if you change api level,it will work
     
  18. Roger Daley

    Roger Daley Well-Known Member Licensed User

    Sorry Bel,

    I had just returned from the denist, brain not in focus.
    I will try changing the API tomoroow and get back.

    Regards Roger
     
  19. Bel

    Bel Active Member Licensed User

    Not problem my friend,my purpose is laugh :)
     
    Roger Daley likes this.
  20. Roger Daley

    Roger Daley Well-Known Member Licensed User

    Bel/Blue Sky

    API change didn't help.

    Regards Roger
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice