android studio文字变紫
时间: 2023-10-22 08:07:31 浏览: 133
要将Android Studio中的文字变为紫色,你可以在res/values/themes.xml文件中进行修改。在文件的第一行后添加.Bridge,然后将style name改为“Theme.JianboApplication”,parent改为“Theme.MaterialComponents.DayNight.DarkActionBar.Bridge”。修改后的代码如下所示:
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.JianboApplication" parent="Theme.MaterialComponents.DayNight.DarkActionBar.Bridge">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>
现在,重新编译你的应用程序,你会看到文字变为紫色。
阅读全文