Android studio 如何在Android Studio中切换到显示的UI并更改字体颜色?
我使用Android Studio编写我的应用程序,下面的代码是我的布局文件,但有时Android Studio编辑器显示A.png,有时显示B.png,这意味着有时系统会将Android studio 如何在Android Studio中切换到显示的UI并更改字体颜色?,android-studio,Android Studio,我使用Android Studio编写我的应用程序,下面的代码是我的布局文件,但有时Android Studio编辑器显示A.png,有时显示B.png,这意味着有时系统会将Android:text=“@string/myabout”替换为真正的字符串“About”,但我不知道如何切换到UI 还有,我如何更改android:text=“@string/myabout”和android:text=“Hard code”的代码颜色?你们知道,文件->设置->编辑器是一棵巨大的树,我找不到我应该编辑的
Android:text=“@string/myabout”
替换为真正的字符串“About”,但我不知道如何切换到UI
还有,我如何更改android:text=“@string/myabout”
和android:text=“Hard code”
的代码颜色?你们知道,文件->设置->编辑器是一棵巨大的树,我找不到我应该编辑的项目
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/border_ui"
android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/myabout"
/>
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hard Code"
/>
</RelativeLayout>
A.png
B.png
设置->编辑器->颜色和字体->XML->属性值。然后你可以设置粗体、斜体、前景、背景等等
但你为什么要这么做?这有关系吗?谢谢!我的意思是,我希望在Android studio编辑器中更改颜色。你们知道,文件->设置->编辑器是Android Studio中的一棵大树,我找不到我应该编辑的项目。谢谢!但是在设置->编辑器->颜色和字体->XML->属性值中,当文本属性值是硬代码时,我找不到如何设置属性值的颜色。还有什么想法吗?