How to change background color

0

I wanted to change the background color of an activity, I have already seen some topics here but without success. Selecting in the spinner will change the activity color to black or white. How do I change the colors?

    
asked by anonymous 18.09.2014 / 05:23

2 answers

0

You can do it this way

Addanidinyourviewandthengettheviewonyouractivityandsetthecolor

    
18.09.2014 / 17:43
0

or using rgb colors in LinearLayout

<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
**android:background="#ffffff"**>
    
24.08.2016 / 20:10