如何在Android Studio中切换到显示的UI并更改字体颜色?

Hel*_*oCW 6 android-studio

我使用Android Studio编写我的App,下面的代码是我的布局文件,但有时Android Studio编辑器显示A.png并且有时显示B.png,这意味着有时系统会android:text="@string/myabout"用真正的字符串"About" 替换,但我不知道知道如何切换到用户界面.

而更多的,我怎么能更改的代码颜色android:text="@string/myabout"android:text="Hard Code"?你知道File-> Settings - > Editor是巨树,我找不到我要编辑的项目.

<?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>
Run Code Online (Sandbox Code Playgroud)

A.png

在此输入图像描述

B.png 在此输入图像描述

Sil*_*ght 0

设置->编辑器->颜色和字体-> XML ->属性值。然后你可以将其设置为粗体斜体前景背景等。

但你为什么要这么做呢?有关系吗?