S
S
sfilmak2015-05-07 20:39:59
Android
sfilmak, 2015-05-07 20:39:59

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!
1e78e570f99e4788acb71c70fb29eb7c.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
IceJOKER, 2015-05-07
@IceJOKER

What will your screen alone give us?
Post your code or something..

V
Vladimir Yakushev, 2015-05-08
@VYakushev

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.

S
sfilmak, 2015-05-07
@sfilmak

<?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 question

Ask a Question

731 491 924 answers to any question