If it is Android app then to Android Project >> Resources >> Values >> styles
change the color in below code and try
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette -->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">#770754</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">#770754</item>
If it is Android app then to Android Project >> Resources >> Values >> styles
change the color in below code and try
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette -->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">#770754</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">#770754</item>
That is Xamarin.Forms, To do your styling in your Xamarin.Forms Android app you would use the styles.xml theme. But that doesn't answer the question because he asked for a gradient.
There's no real drawing API currently in Xamarin.Forms that would let you render a gradient in a platform-independent way. A couple of options might be:
an image of the gradient set to fill the entire screen. you could supply multiple resolution images on each platform to avoid too much pixellation
a custom renderer on each platform that uses native APIs to draw the gradient on each platform
Is there a way to change the tab bar colors in iOS without using a custom renderer?
I was using a custom renderer to change the colors in both android and iOS but that conflicts with the Tabs Badge plugin...so i have to find a solution without using custom renderers.
Answers
If it is Android app then to Android Project >> Resources >> Values >> styles
change the color in below code and try
will this work in forms with custom renderer ?
That is Xamarin.Forms, To do your styling in your Xamarin.Forms Android app you would use the styles.xml theme. But that doesn't answer the question because he asked for a gradient.
I didn't tried in customer render
As @CraigDunn said
There's no real drawing API currently in Xamarin.Forms that would let you render a gradient in a platform-independent way. A couple of options might be:
an image of the gradient set to fill the entire screen. you could supply multiple resolution images on each platform to avoid too much pixellation
a custom renderer on each platform that uses native APIs to draw the gradient on each platform
Checkout the below for how to add gradients to the style.xml
https://stackoverflow.com/questions/18439924/custom-gradient-background-of-actionbar-compat
Is there a way to change the tab bar colors in iOS without using a custom renderer?
I was using a custom renderer to change the colors in both android and iOS but that conflicts with the Tabs Badge plugin...so i have to find a solution without using custom renderers.