Skip to content
모두의 공간
개발자 공간
사용자 공간
최근글
로그인
접속유지
회원가입
ID/PW 찾기
모두의 공간
새로운 소식
새로운 게임/앱
개발자 공간
개발자 게시판
개발자 질문/답변
개발자 정보
구인/구직/의뢰
행사/세미나/교육
(구)질문/답변
사용자 공간
앱 정보/후기
게임 정보/후기
기기 정보/후기
잡담/유머/창작
개발자 질문/답변 게시판이 새로운 공간으로 이전되었습니다.
안드로이드 개발 질문/답변 (글 수
45,052
)
전체보기
앱개발 질문
플랫폼 질문
JAVA 질문
기타 질문
자주하는 질문
gallery에서 좌우 이동할 때 이벤트 받기
wooya510
https://www.androidpub.com/android_dev_qna/49937
2009.12.10
14:50:47
3909
1
앱개발 질문
Gallery에서 좌우 이동할 때 좌 또는 우측으로 이동한다는 이벤트를 받을 수 있나요?
이 게시물을
목록
2009.12.10
15:58:34
세모군
public boolean
onScroll
(
MotionEvent
e1,
MotionEvent
e2, float distanceX, float distanceY)
을 이용해보시면 어떨까 싶은데요.
SDK상에서 제공하는 Gallery의 받을수 있는 이벤트는 아래와 같습니다. :)
boolean
onDown
(
MotionEvent
e)
Notified when a tap occurs with the down
MotionEvent
that triggered it.
boolean
onFling
(
MotionEvent
e1,
MotionEvent
e2, float velocityX, float velocityY)
Notified of a fling event when it occurs with the initial on down
MotionEvent
and the matching up
MotionEvent
.
boolean
onKeyDown
(int keyCode,
KeyEvent
event)
Handles left, right, and clicking
boolean
onKeyUp
(int keyCode,
KeyEvent
event)
Default implementation of
KeyEvent.Callback.onKeyMultiple()
: perform clicking of the view when
KEYCODE_DPAD_CENTER
or
KEYCODE_ENTER
is released.
void
onLongPress
(
MotionEvent
e)
Notified when a long press occurs with the initial on down
MotionEvent
that trigged it.
boolean
onScroll
(
MotionEvent
e1,
MotionEvent
e2, float distanceX, float distanceY)
Notified when a scroll occurs with the initial on down
MotionEvent
and the current move
MotionEvent
.
void
onShowPress
(
MotionEvent
e)
The user has performed a down
MotionEvent
and not performed a move or up yet.
boolean
onSingleTapUp
(
MotionEvent
e)
Notified when a tap occurs with the up
MotionEvent
that triggered it.
boolean
onTouchEvent
(
MotionEvent
event)
Implement this method to handle touch screen motion events.
전체보기
앱개발 질문
플랫폼 질문
JAVA 질문
기타 질문
자주하는 질문
번호
분류
제목
글쓴이
날짜
추천
조회
공지
앱개발 질문
게시글 작성시 소스코드를 보기 쉽게 처리하기
33
멍멍대왕
01-21
5
622008
공지
앱개발 질문
[필독] Q&A 게시판 글작성 안내, 질문전 검색 필수!
176
회색
01-29
7
1064744
1332
앱개발 질문
bitmap load error
2
선우도량
12-10
3738
1331
앱개발 질문
homescreen wallpaper 이동 구현하는 방법
3
JaeHwa
12-10
3234
앱개발 질문
gallery에서 좌우 이동할 때 이벤트 받기
1
wooya510
12-10
3909
1329
앱개발 질문
비활성 액티비티
4
안드로이드시카
12-10
2212
1328
앱개발 질문
커서에 관련된 질문 입니다.
2
쫑스83
12-10
4913
1327
앱개발 질문
multipart/mixed 를 받는 방법이 궁금합니다.
2
pepierce
12-10
2500
1326
앱개발 질문
마켓에.올린.apk.파일에.대한.안전장치(인증모듈, 날짜제한)
와이드오픈
12-10
2715
1325
플랫폼 질문
안드로이드 소스의 master가 항상 최신 인가요?
7
볼레로
12-10
3906
1324
앱개발 질문
서비스 관련질문입니다.
2
안드로이드시카
12-10
3569
1323
앱개발 질문
게시판 사용 방법 문의 ??? ^^
1
볼레로
12-10
2121
1322
앱개발 질문
[질문] PCM 레벨에서 음원 변경 후 출력 방법
5
Oartism
12-10
6313
1321
앱개발 질문
ADP1에 2.0 올리는 것에 대한 질문입니다.
2
conetPark
12-09
2115
1320
앱개발 질문
xml 파싱 후 URL을 출력하는 방법
1
조금 특별한 Navi-♥
12-09
2457
1319
앱개발 질문
윈도우 XP 드라이버 인식문제
4
써치뮤직
12-09
3886
1318
앱개발 질문
현재 구현 프로그램에서 안드로이드 기본 갤러리를 연동할 수 있을까요?
3
누리보듬
12-09
4900
1317
앱개발 질문
ImageView를 커스터마이징 했는데...
wooya510
12-09
7132
1316
앱개발 질문
EditText 에 password = true 설정을 java코드에선 어떻게 해야되나요?
12
안드로히터
12-09
2
24761
1315
앱개발 질문
style 과 styleable ?
2
볼레로
12-09
5424
1314
앱개발 질문
마켓에.올린.apk.파일에.대한.안전장치.만드는법.
2
와이드오픈
12-09
2630
1313
앱개발 질문
native에서 floating 연산에 관한 질문입니다.
10
1
kym127
12-09
2173
목록
쓰기
첫 페이지
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
끝 페이지
최근 인기글
개발자 질문/답변 게시판이 새로운 공간으로 이전되었습니다.
제목+내용
제목
내용
댓글
이름
닉네임
태그
검색
취소
Close Login Layer
XE Login
아이디
비밀번호
로그인 유지
OpenID Login
Open ID
회원가입
ID/PW 찾기
인증메일 재발송
OpenID
OpenID
Close Login Layer
public boolean onScroll (MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
MotionEvent
that triggered it.MotionEvent
and the matching upMotionEvent
.KeyEvent.Callback.onKeyMultiple()
: perform clicking of the view whenKEYCODE_DPAD_CENTER
orKEYCODE_ENTER
is released.MotionEvent
that trigged it.MotionEvent
and the current moveMotionEvent
.MotionEvent
and not performed a move or up yet.MotionEvent
that triggered it.