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
b.png
settings -> editor -> color & font -> xml -> attribute value. can set bold, italic, foreground, background , that.
but why that? matter?
Comments
Post a Comment