스팀 앱 개발기 #148 - 개발 완료: Jetpack Compose 마이그레이션 3단계

개발 완료: Jetpack Compose 마이그레이션 3단계

No. 148
2026. 04. 28 (화) | Written by @dorian-mobileapp

저번 포스트에서 말씀드린 Jetpack Compose로 마이그레이션. 그중 3단계를 진행했습니다. 요약 내용은 다음과 같습니다.


Jetpack Compose 마이그레이션 3단계 요약

작업 개요

SplashActivity를 XML 레이아웃 방식에서 Jetpack Compose로 전환했습니다.


변경 파일

파일변경 내용
SplashActivity.ktAppCompatActivityComponentActivity 전환, Compose UI 적용
activity_splash.xmlStep 4에서 삭제 (더 이상 사용되지 않음)

주요 변경 내용

SplashActivity

항목변경 전변경 후
부모 클래스AppCompatActivityComponentActivity
UI 설정setContentView(R.layout.activity_splash)setContent { SplashScreen() }
레이아웃activity_splash.xml (흰 배경 + 중앙 이미지)SplashScreen Composable

신규 Composable 함수

함수역할
SplashScreen흰 배경 전체 화면 Box + 중앙 정렬 img_pircoin 이미지
SplashScreenPreview미리보기

유지된 로직

  • lifecycleScope.launch { delay(1300); startActivity(...); finish() } — 변경 없음

GitHub Commit

보다 자세한 코드는 아래 commit을 참고하세요.


지난 스팀 앱 개발기


Layout provided by Steemit Enhancer hommage by ayogom

Posted using SteemX

Sort:  

Upvoted! Thank you for supporting witness @jswit.

🎉 Congratulations!

Your post has been upvoted by the SteemX Team! 🚀

SteemX is a modern, user-friendly and powerful platform built for the Steem community.

🔗 Visit us: www.steemx.org

✅ Support our work — Vote for our witness: bountyking5

banner.jpg