安卓點擊屏幕空白處消除軟鍵盤--edittext

項目中須要就順便研究了一下倆種方法,網絡上多爲方法二,但本人驗證存在問題,可能本身的方法不正確,歡迎留言指正。 方案一:採用事件監聽的方式 1.給activity佈局文件加入 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android
相關文章
相關標籤/搜索