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 |
Tags
- Android
- BOJ
- Navigation
- CoordinatorLayout
- 알림
- activity
- AppBarLayout
- notification
- LiveData
- CustomView
- lifecycle
- recyclerview
- hilt
- onLayout
- 백준
- HTTP
- sqlite
- View
- Coroutine
- DataBinding
- 코틀린
- Behavior
- CollapsingToolbarLayout
- ViewModel
- 알고리즘
- kotlin
- 안드로이드
- room
- onMeasure
- Algorithm
Archives
- Today
- Total
목록hide (2)
개발일지
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bLXbQK/btqUSq4woPW/FW9dZYkqPHNjgNIyiooLx1/img.gif)
CollapsingToolbarLayout이 CollapseMode인지 아닌지 Handling하기 binding.nestedScrollView.setOnScrollChangeListener { v, scrollX, scrollY, oldScrollX, oldScrollY -> if (scrollY >= binding.toolbar.height && oldScrollY = binding.toolbar.height){ Log.d("COORDINATOR", "EXPANDED") } } Floati..
Android (안드로이드)/CoordinatorLayout
2021. 1. 27. 01:52
삽질 - Android CoordinatorLayout Floating Action Button
CoordinatorLayout은 View의 Visible상태가 GONE인 것은 생략하기 때문에 FloatingActionButton을 그냥 hide로 숨기면 그 다음부터 상태전달을 생략한다. (hide는 View의 Visible을 GONE으로 만들기 때문) => hide에 재정의한 리스너를 달아주자!! override fun onNestedScroll(coordinatorLayout: CoordinatorLayout, child: FloatingActionButton, target: View, dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, type: Int, consumed: IntArray) { super.onNeste..
삽질
2020. 12. 10. 02:32