2015年11月26日 星期四

[Android] EditText close the default pop-out keyboard 關閉鍵盤自動跳出

Method: 
在AndroidMainfest.xml中把windowSoftInputMode把屬性設成
adjustUnspecified|stateHidden

Go to Mainfest.xml choose your activity and type android:windowSoftInputMode="adjustUnspecified|stateHidden"

< activity android:name=" .Main " 
android:label="@string/app_name" 
android:windowSoftInputMode="adjustUnspecified|stateHidden" > 
< intent-filter> 
< action android:name="android.intent.action.MAIN" /> 
< category android:name="android.intent.category.LAUNCHER" /> 
< /intent-filter> 
< /activity>  

沒有留言:

張貼留言