Answer the question
In order to leave comments, you need to log in
How to change Background (Android Studio)?
Good evening. The question is this. The application background does not change. The usual android:background in Android Studio refuses to work. More precisely, everything is fine in the studio itself, but the finished application has a regular white background. How to change the situation? Thank you very much in advance!
Answer the question
In order to leave comments, you need to log in
Remove the ListView from the markup to be sure to understand the source of the problem. If the problem persists after removing the ListView, then make sure that:
If after the ListView is removed the problem disappears, then, as IceJOKER already wrote , dig towards the background of the ListView itself and its elements. Try with an empty list and with a list with elements.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.AppCompat.TextView.SpinnerItem"
android:background="@drawable/back1">
<ListView android:id="@+id/android:list" android:layout_width="match_parent" android:layout_height="wrap_content"
style="@style/Widget.AppCompat.TextView.SpinnerItem"
/>
<TextView android:id="@+id/android:empty" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="No New Notes…Press on Menu to Add New Note"
android:password="false" />
</LinearLayout>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question