Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

What are the default color of the Actionbar and LinearLayout in Android?

What I have tried:

When I used the toolbar instead of the actionbar, the LinearLayout color turned white, but I want the default color for LinearLayout.
Posted
Updated 3-Aug-20 3:11am

1 solution

LinearLayout inherits from View so you can use the View.setBackgroundColor(int)  |  Android Developers[^] method.
 
Share this answer
 
Comments
aazam rafiee zade 3-Aug-20 11:38am    
Thank you
I want to know default background color of LinearLayout.
Richard MacCutchan 3-Aug-20 11:52am    
It inherits it from the View class.
aazam rafiee zade 4-Aug-20 5:21am    
I tried and I saw android:background="#FF323232" is similar for default background color of LinearLayout.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900