How to disable auto focus on Edit text ?

Hello guys,

When i launch my application, the first edit text is automatically selected and the keyboard appears:

http://www.imagup.com/data/1176975519.html

I want to disable this.
I already unchecked "Focusable" in Behavior property but when i click on my textbox, i can't edit it.

Someone can help me ?

Best Regards, Michel.
Ps: Sorry for my bad English, i'm 17 years old and i'm French.

Posts

  • MichelMichel REMember

    Thank you very much, it's working fine !
    I used the method with the xml file.

  • carleslscarlesls ESMember
    edited November 2014

    is it possible to do it programmatically instead of writing it in the axml file. is, then, any difference?
    Thank you.

  • CheesebaronCheesebaron DKInsider, University mod

    Yes.

  • N.Y.GudlanurN.Y.Gudlanur USMember

    Hi

    I get solution for disable editbox in xamarin android using following code:

    editbox edit =findbyId(resource.id.edit)
    edit.focusable =false;

    Regards,
    N.Y.

  • DevLawDevLaw Member ✭✭

    Works perfectly! Thanks Cheesebaron

Sign In or Register to comment.