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
- 알림
- sqlite
- Algorithm
- HTTP
- LiveData
- room
- DataBinding
- Behavior
- recyclerview
- notification
- CustomView
- 백준
- hilt
- 안드로이드
- activity
- onLayout
- View
- CollapsingToolbarLayout
- lifecycle
- kotlin
- ViewModel
- onMeasure
- 코틀린
- BOJ
- Navigation
- Coroutine
- CoordinatorLayout
- 알고리즘
- Android
- AppBarLayout
Archives
- Today
- Total
목록AT_MOST (1)
개발일지
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/zcQIC/btq3Odhciqq/17WKenB6s5mQkA0hPchkm1/img.png)
MeasureSpec MeasureSpec은 View의 크기를 정할 때 중요하게 쓰인다. MeasureSpec은 ParentView에서 ChildView로 전달되며 크기에 대한 정보와 MeasureSpec Mode에 대한 정보로 구성되어 있다. MeasureSpec Mode UNSPECIFIED : Mode가 설정되지 않은 경우며 원하는 크기를 가질 수 있다. EXACTLY : 정확한 사이즈가 정해진 상태며 정해진 사이즈 안에서 원하는 크기를 가질 수 있다. (match_parent, fill_parent, 500dp 등 정확한 사이즈가 정해진 경우에 할당된다.) AT_MOST : 주어진 사이즈에서 원하는 크기를 가질 수 있다. (wrap_content로 주어진 경우 할당된다.) MeasureSpec 사..
Android (안드로이드)/View
2021. 4. 29. 17:27