我正在使用java在androidstudio中创建一个应用程序,我想创建一个主题外观设置,如YouTube,其中用户有3个选项来选择其中之一…1)使用设备主题2)暗主题3)轻主题。但是我不知道如何在java活动和xml活动中实现它,有谁能帮助我吗? 在这里我附上了我想要的截图。enter image description here
我浏览了documentation on the splash screen for Android 12和migrating existing splash screen,但它没有清楚地提到如何根据条件选择开始屏幕当我保持这种状态时,Androidstudio会给出一个警告- The application should not provide its own launch screen。我根据指南对其进行了修改,并从活动中删除了setConten