Android Studio 完成XML文件设计后 无法在Design中显示问题
发布时间
阅读量:
阅读量
初次接触安卓开发时,遇到了一个非常棘手的问题。在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:textSt
全部评论 (0)
还没有任何评论哟~
