Tôi có Hoạt động với EditText và Nút. Khi người dùng nhấp vào EditText, bàn phím được hiển thị và anh ấy có thể nhập một số văn bản - tiền phạt. Nhưng khi người dùng nhấp vào nút Tôi muốn EditText không tập trung nhiều hơn, tức là bàn phím ẩn cho đến khi người dùng nhấp lại vào EditText.android edittext xóa tiêu điểm sau khi nhấp vào nút
Tôi có thể làm gì để 'ẩn tiêu điểm' của EditText, sau khi Nút được nhấp. Một số Mã tôi có thể thêm vào trong Phương pháp OnClick của Nút để làm điều đó?
EDIT:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<EditText
android:id="@+id/edt_SearchDest"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="0.8"
android:textSize="18sp"
android:hint="Enter your look-up here.." />
<Button
android:id="@+id/btn_SearchDest"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="0.2"
android:text="Search" />
</LinearLayout>
Trân trọng
xóa trọng tâm của Edittext khi nhấp vào nút bằng cách sử dụng 'm_editText.clearFocus(); ' – GrIsHu
không giải quyết được sự cố. – MojioMS