刚开始玩安卓,有个贼坑的问题,就是我在XML文件里写了个Text,发现Design看不到啊。然后拖了个按钮过去也是看不到。可是传到虚拟机里是可以看到的。
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:text="Frame Demo"
android:textSize="30px"
android:textStyle="bold"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center"
android:background="#FF0000"
android:layout_gravity="left|bo