목록안드로이드(Android)/학습자료 (12)
Simple&Natural
자료들의 내용을 간단히 요약하면 스플래시 화면은 의도적으로 앱 실행을 지연시키고 작업을 처리하는 용도로 사용하는 것을 지양하는 것을 권한다. 앱 실행시 잠깐의 지연시간 동안 브랜드 로고 및 버전 표시, 로딩 상태 알림 등의 목적으로 사용해야 한다. 따라서 Fragment나 Activity를 이용해 따로 Splash Screen을 만드는 것은 안티패턴이고 Style을 이용하여 앱이 로드되기 전까지 특정화면을 보여주는 방법을 권장한다. 예제의 @mipmap/ic_launcher를 그대로 입력하면 아마 화면 렌더링이 제대로 이루어지지 않을 것이다. 이는 같은 mipmap폴더 내에 있는 vector타입(xml)의 ic_launcher를 인식하기 때문으로 해당 vector파일을 지우거나 다른 bitmap이미지 파..
BaseFragment에서 Visible 모드를 조정하는 게 최선으로 보임 stackoverflow.com/questions/62551658/hide-bottom-navigation-view-in-fragment Hide Bottom Navigation View in fragment I want to hide bottomNavigationView in some fragments. I have tried the below code, but it has a flicker effect. (bottomNavigationView hide before the nextFragment becomes visible. val navContr... stackoverflow.com
Serialize와 Parcelize 모두 객체의 직렬화를 위해 사용되는 기능이다. 다만, Parcelize의 경우 Android SDK에서만 지원된다. 기존의 Parcelize는 컴파일 상의 이점이 있었으나 보일러플레이트 코드가 많아 부담이 되었는데 코틀린에서는 새로이 Parcelize annotation을 도입하여 간단하게 사용할 수 있게 하였다. 참고자료 simsi6.tistory.com/69 [Android] Kotlin Parcelize 등장 - Serializable vs Parcelable 안드로이드 컴포넌트나 Fragment간에 클래스로 데이터를 주고 받을 때 Serializable, Parcelable을 구현해야 합니다. 직렬화/역직렬화, 마샬링/언마샬링 이라고도 하는 이 두 기법은 아주..
material.io/components/bottom-navigation#usage Material Design Build beautiful, usable products faster. Material Design is an adaptable system—backed by open-source code—that helps teams build high quality digital experiences. material.io