摘要:1.使用系统调用,直接结束pid: android.os.Process.killProcess(android.os.Process.myPid()) 缺点:退出应用程序时,没有过渡动画,很不优雅。 2.返回桌面: @Composable fun HomeButton() { val contex
阅读全文
posted @ 2023-05-28 22:05
posted @ 2023-05-28 22:05
posted @ 2023-05-28 16:33
posted @ 2023-05-21 11:00
posted @ 2023-05-20 12:46