How to switch to displayed UI and change font color in Android Studio? -


i use android studio write app, following code layout file, android studio editor display a.png , sometime display b.png, means sometime systme replace android:text="@string/myabout" real string "about", don't konw how switch ui.

and more, how can change code color of android:text="@string/myabout" , android:text="hard code"? know file-> settings -> editor huge tree, can't find items shoud edit.

<?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

enter image description here

b.png enter image description here

settings -> editor -> color & font -> xml -> attribute value. can set bold, italic, foreground, background , that.

but why that? matter?


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -