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
- ConstraintLayout
- Service
- elementAt
- Filter
- react native
- Generic
- docker-compose
- mongoose
- docker
- animation
- LiveData
- map
- Foreign Key
- class component
- AWS
- enum
- MINUS
- CLASS
- lifecycle
- collection
- 생명주기
- recyclerview
- function
- ReactNative
- list
- Swift
- Interface
- union
- vuex
- Kotlin
Archives
- Today
- Total
개발 일기
Auto animate layout updates ? 본문
Activity XML에서 'android:animateLayoutChanges' 속성을 추가하면
자동적으로 add , remove update 했을때 애니메이션 과 같이 실행이 됩니다.
<LinearLayout android:id="@+id/container"
android:animateLayoutChanges="true"
...
/>
lateinit var containerView: ViewGroup
...
private fun addItem() {
val newView: View = ...
containerView.addView(newView, 0)
}
'Client > 안드로이드' 카테고리의 다른 글
ConstraintLayout - Chains (0) | 2020.05.20 |
---|---|
Intent Flag ? (0) | 2020.05.19 |
zoom animation ? (0) | 2020.05.14 |
Move views using a fling animation ? (0) | 2020.05.12 |
RecyclerView Scroll Position 복원 ? (0) | 2020.05.11 |
Comments