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 인터페이스 객체를 생성하고 메소드를 오버라이드 해준다.
피드 구독하기:
댓글 (Atom)
[lunux]리눅스 폴더별 용량 확인
리눅스 폴더별 용량 확인 조회 하고자 하는 디렉토리 리스트가있는 경로로 이동후 du -h --max-depth=1
-
pom.xml <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId&g...
-
수십대의 서버에 특정 쉘을 실행한다거나 파일을 수정해야할경우 호스트 입력 아이디 입력 패스워드 입력은 여간 짜증나는일이 아닐수 없다. 이를 한방에 해주는 방법 teraterm 를 설치한다( putty 는 버리자 ) 예를 들면 19...
-
자바에서 redis 를 사용할때는 jedis 라는 wrapping api 를 사용 하는데 기본 사용법은 메이븐에 아래 의존 라이브러리를 추가하고 <dependency> <groupId>redis.clients</g...
댓글 없음:
댓글 쓰기