Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- list map
- android exoplayer
- Zsh
- ChatGPT
- FastAPI
- 시행착오
- llm
- AWS EC2
- 유튜브
- map
- ktor client
- android custom view
- video caching
- DiffUtil.ItemCallback
- doc2vec
- android ktor
- ExoPlayer
- exoplayer cache
- android
- kotlin collection
- ktor api call
- kotlin list
- build with ai
- ListAdapter DiffUtil
- Python
- 유튜브 요약
- 스피너
- ListAdapter
- getChangePayload
- 안드로이드
Archives
- Today
- Total
목록android webview horizontal scroll (1)
버튼 수집상

배경 ViewPager 안쪽 웹뷰에서 가로로 스크롤되는 UI가 있을 때 뷰페이저 페이지가 넘어가는 현상이 있었다. 예시 화면 포인터를 보면 웹뷰의 가로 스크롤 영역을 드래그했을 때 바깥쪽 뷰페이저가 넘어간다. 웹뷰의 가로 스크롤을 따로 읽는 함수는 없어서 onTouchEvent 안에서 터치 좌표로 처리했다. CustomWebView.kt class CustomWebView @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyle: Int = 0 ) : WebView(context, attrs, defStyle) { private var oldY = 0f private var oldX = 0f init { // 샘플..
TIL - 안드로이드
2023. 6. 21. 13:29