Live2D

AndroidStudio在Relativelayout中设置imageview图片没有在Desion上显示出来,只显示了出了ImageView,(在运行时图片正常显示)

1.png图片没有显示出来,如下  png图片被我放在res/drawable-xxxhdpi目录中

 

2.可以Design 旁的Layout Validation进行代替

3.希望有人能告诉我  png图片没有在 design显示的原因,下面是我的代码。

<RelativeLayout 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:id="@+id/activity_splash"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
    <ImageView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:src="@drawable/splash"
        android:scaleType="fitXY"/>
    <TextView
        android:id="@+id/time_text_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="20sp"
        android:text="3秒,点击跳过"
        android:textColor="#ffffff"
        android:layout_alignParentRight="true"
        />
</RelativeLayout>

4.已解决

我不小心点击蓝图了(都忘了),如下图

posted @ 2021-02-22 09:44  幽香飞狐  阅读(301)  评论(0)    收藏  举报
Live2D