enter image description here

Style

<style name="MainAppTheme.FullScreen" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:windowFullscreen">true</item> <item name="android:windowActionBar">false</item> <item name="colorPrimary">@color/colorPrimaryDarkMainApp</item> <item name="colorPrimaryDark">@color/colorPrimaryDarkMainApp</item> <item name="colorAccent">@color/white</item> <item name="android:textColor">@color/colorMainTextBlack</item> <item name="android:textSize">@dimen/main_text_size</item> <item name="popupTheme">@style/ThemeOverlay.AppCompat.Light</item> <item name="radioButtonStyle">@style/RadioButtonDialog</item> </style> 

Layout.xml

 <android.support.constraint.ConstraintLayout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:background="@drawable/login_faggot"> <TextView android:gravity="center_horizontal" android:text="Welcome." android:textSize="18sp" android:textColor="@color/white" android:layout_width="0dp" android:layout_height="wrap_content" android:id="@+id/textView10" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" android:layout_marginTop="152dp" app:layout_constraintEnd_toEndOf="parent"/> <TextView android:textSize="16sp" android:textColor="@color/grayBg" android:gravity="center_horizontal" android:id="@+id/plsLogin" android:text="Please Login." android:layout_width="0dp" android:layout_height="wrap_content" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/textView10" app:layout_constraintEnd_toEndOf="parent"/> <TextView android:background="@color/white" android:layout_width="1dp" android:layout_height="wrap_content" android:id="@+id/textView11" app:layout_constraintStart_toStartOf="@+id/editLogin" android:layout_marginStart="50dp" android:layout_marginBottom="8dp" app:layout_constraintBottom_toTopOf="@+id/editPass" app:layout_constraintTop_toTopOf="@+id/editLogin" android:layout_marginTop="8dp"/> <TextView android:background="@color/white" android:layout_width="1dp" android:layout_height="wrap_content" android:id="@+id/textView12" app:layout_constraintStart_toStartOf="@+id/editPass" android:layout_marginStart="50dp" app:layout_constraintBottom_toBottomOf="@+id/editPass" android:layout_marginBottom="8dp" app:layout_constraintTop_toTopOf="@+id/editPass" android:layout_marginTop="8dp"/> <EditText android:paddingStart="20dp" android:drawableStart="@drawable/ic_mail_white_24dp" android:drawablePadding="15dp" android:hint="@string/user_name" android:id="@+id/editLogin" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="24dp" app:layout_constraintTop_toBottomOf="@+id/plsLogin" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="30dp" android:layout_marginEnd="30dp"/> <EditText android:drawableStart="@drawable/ic_lock_white_24dp" android:paddingStart="20dp" android:drawablePadding="15dp" android:hint="@string/password" android:id="@+id/editPass" android:layout_width="0dp" android:layout_height="wrap_content" app:layout_constraintTop_toBottomOf="@+id/editLogin" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="30dp" android:layout_marginEnd="30dp"/> <CheckBox android:id="@+id/radioButton" style="@style/Widget.AppCompat.CompoundButton.RadioButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="15dp" android:text="Remember Me" android:textColor="@color/white" app:layout_constraintStart_toStartOf="@+id/editPass" android:layout_marginTop="24dp" app:layout_constraintTop_toBottomOf="@+id/editPass"/> <Button android:id="@+id/buttonLogin" android:layout_width="0dp" android:layout_height="wrap_content" android:background="@drawable/button_round_corner" android:backgroundTint="@color/colorOrangeUsSite" android:layout_marginEnd="0dp" android:stateListAnimator="@null" android:layout_marginStart="0dp" android:layout_marginTop="8dp" android:text="@string/login" android:textColor="@color/white" app:layout_constraintEnd_toEndOf="@+id/editPass" app:layout_constraintStart_toStartOf="@+id/radioButton" app:layout_constraintTop_toBottomOf="@+id/radioButton"/> <FrameLayout android:id="@+id/layoutProgressBar" android:layout_width="match_parent" android:layout_height="match_parent" android:alpha="0.8" android:background="@color/black" android:visibility="gone" app:layout_constraintBottom_toTopOf="parent" app:layout_constraintEnd_toStartOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> <ProgressBar android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:theme="@style/ProgressBar"/> </FrameLayout> </android.support.constraint.ConstraintLayout> 

I have already tried everything, but I don’t know why such a thing happens. There is nothing like this on the Internet. It is strange even that the background is white, but that there is no picture. Background for some reason white.

This bug appears on Android 5.0.1. Checked on the Samsung S4. I did not check on others - there are no other phones.

On a real phone, 6.0 and 7.0 tested - everything is fine (there is no white screen)


  • show res folder structure expanded? - Lex Hobbit
  • Added res expanded - user239760
  • I mean, do you have different drawables for different dpi? and what is the original resolution of the image that you want to put on the background? - Lex Hobbit
  • @LexHobbit, here is added. login_faggot He without dpi. I added it to drawable in the original video. - user239760
  • one

1 answer 1

Lex Hobbit and I solved the problem. The whole problem was that because of the large Android file did not compress the picture. Thank you all for your help.

  • I tried everything, I thought that the situation was hopeless. Then I read a comment that could be due to a large file, inserted a smaller picture and voila. God bless you, kind man - Wladek Ignatenko