skip to Main Content

I’m trying to set background image for my activity like this:

<LinearLayout
            android:id="@+id/container"
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="center"
            android:background="@drawable/login_background"
            android:orientation="vertical">

which looks great in the preview in intellij

enter image description here

but in genymotion it looks black:

enter image description here

after trying to change the name of the file, the size of the file and trying various export methods from photoshop, I’m clueless.

Any ideas?

2

Answers


  1. Chosen as BEST ANSWER

    After playing with the issue more I truly don't know what was the problem. After trying the same image in different activity it started to show even without modified the genymotion settings.


  2. Have you tried another genymotion config yet?
    Or have you tried it on a real Device?

    I would suggest to use some other Configuration first, according to this post it could help.

    https://github.com/facebook/fresco/issues/298

    PS: I know not a real answer, got not enough reputation yet, thought i could help anyway.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search