N
N
Neonoviiwolf2016-11-27 10:17:16
Java
Neonoviiwolf, 2016-11-27 10:17:16

Why doesn't the color change in main activity?

Good!
I can not understand why the background color in the activity does not change? This activity is the main one, in other activities it changes without problems.
2c1571af2801458d84001efc5a28cfd3.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-11-27
@Neonoviiwolf

make the layout_hieght and layout_width attributes equal to math_parent . Because you have the wrap_content attributes set, your RelativeLayout does not take up all the available space. Or insert some child element into the RelativeLayout, in which these parameters will be equal to math_parent

<RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question