I'm using Android studio and I've setted a background image in this way :
android:background="@drawable/logo"
But the preview screen it's just white, on the phone app I can see the image perfectly. Same thing happens when I've added an image button like this :
<ImageButton
android:id="@+id/image_login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="parent"
app:layout_constraintEnd_toStartOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/login" />
I don't get it. What am I doing wrong? Also I've tried pressing 'R' on the preview view, but when the spinner finished, nothing happened.
Thank you.