I want EditText not to extend IME when it is focused on Android Wear.
I read and implemented in the same way as the following thread:
Prevent EditText from automatically focusing
However, IME appears.
Is it impossible to hide IME for an EditText on Android Wear?
I tried 3 methods:
- Added the following code in the onCreate() method: - {getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);}
- Added the following code in the activity tag in AndroidManifest.xml - android:windowSoftInputMode="stateAlwaysHidden"
- Added the following code in rect_activity_main.xml - <LinearLayout android:layout_width="0dp" android:layout_height="0dp" android:background="@android:color/transparent" android:focusable="true" android:focusableInTouchMode="true"/>
None of them worked.
Best regards, gellpro
 
     
    