Created
February 26, 2023 08:28
-
-
Save ZZANZU/b99bdcc949350e78b72d36073c9142f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SplashActivity : AppCompatActivity() { | |
private lateinit var viewModel: SplashViewModel | |
private lateinit var binding: ActivitySplashBinding | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
binding = DataBindingUtil.setContentView(this, R.layout.activity_splash) | |
viewModel = ViewModelProvider(this).get(SplashViewModel::class.java) | |
viewModel.checkAppVersion() | |
viewModel.moveToPreviewActivity.observe(this) { | |
// 로고가 서서히 표시되는 애니메이션 실행 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment