[英]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.