반응형
Notice
Recent Posts
Recent Comments
Link
목록좌표값 (1)
투케이2K
390. (android/java) setOnTouchListener MotionEvent 사용해 디스플레이 터치 화면 X , Y 좌표 값 확인 실시
[개발 환경 설정] 개발 툴 : AndroidStudio [Java : 소스 코드] // ========================================== // [로직 처리 실시] try { // [컴포넌트 매핑 실시] LinearLayout parent = (LinearLayout)findViewById(R.id.parent); // [터치 이벤트 리스너 정의] parent.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { switch(event.getAction()) { // [누름] case MotionEvent.ACTION_DOWN : break; ..
Android
2022. 11. 4. 18:21