[英]Why is my layout preview in Android Studio empty?
尝试将TextView元素放入一个空的FrameLayout中:
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/my_groups" />
</FrameLayout>
上面的代码应放在您的RelativeLayout中。 希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.