Android Question Activity name

Discussion in 'Android Questions' started by aedwall, Apr 10, 2019.

  1. aedwall

    aedwall Active Member Licensed User

    I see this (I am trying to show the soft keyboard upon my txtCity EditText control getting the focus):

    SetActivityAttribute(<activity name>, android:windowSoftInputMode, stateVisible)

    What do I use for "<activity name>"?

    Is it the name of the control? Like txtCity for my EditText control.

    My project is called Atlas and my EditText control is called txtCity.

    UPDATE: I used the word "Main" without the quotes to get it to work.

    Now, how do I get the keyboard to hide itself?

    Answer: I inserted this command - IME1.HideKeyboard
     
    Last edited: Apr 10, 2019
    MarkusR likes this.
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