我希望EditText
不会在专注于Android Wear时扩展IME。 我的阅读和实施方法与以下主题相同: Prevent EditText from automatically focusing如何在EditText专注时隐藏IME
但是,IME出现。 Android Wear上的EditText
无法隐藏IME吗?
我试图3种方法:
添加在OnCreate以下代码()方法:
{getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);}
添加了在活动标签下面的代码在AndroidManifest.xml
android:windowSoftInputMode="stateAlwaysHidden"
在rect_activity_main.xml中添加了以下代码
<LinearLayout android:layout_width="0dp" android:layout_height="0dp" android:background="@android:color/transparent" android:focusable="true" android:focusableInTouchMode="true"/>
他们没有工作。
最好的问候,gellpro
检查这一个.. https://stackoverflow.com/questions/2429595/how-to-stop-the-android-soft-keyboard-from-ever-coming-up-in-my-entire-applicati –