2015년 12월 10일 목요일

[android] 완료버튼,다음버튼 이벤트감지


viewHolder.count.setOnEditorActionListener(new OnEditorActionListener(){



public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
// IME_ACTION_SEARCH , IME_ACTION_GO, IME_ACTION_DONE, IME_ACTION_NEXT
                                //버튼 상수값
if(actionId == EditorInfo.IME_ACTION_DONE) {
Log.d("AutoCallService", "onEditorAction");
v.clearFocus();
return true;

}
return false;
}

});


TextEdit 객체에 setOnEditorActionListener함수를 호출 하고
파라미터로 OnEditorActionListener 인터페이스 객체를 생성하고 메소드를 오버라이드 해준다.

댓글 없음:

댓글 쓰기

[lunux]리눅스 폴더별 용량 확인

리눅스 폴더별 용량 확인 조회 하고자 하는 디렉토리 리스트가있는 경로로 이동후 du -h --max-depth=1