barview-android
barview-android copied to clipboard
Add gradient background option attribute
Add an attribute and a field in the BarView class to generate and put gradient backgrounds for bars
Is it going to be like a random gradient colour for the bar or like is it upon the choice of the user? #GSSOC20
@Sourish-Mukherjee Currently a solid random colour is being generated and applied to the bar, you need to put a flag attribute first, which determines whether a solid or a gradient background will be applied. In the gradient option, you need to alter the code in such a way that two very close yet distinct random colours are generated and a gradient drawable made out of them is set as the background of the bars.
i want to work on this
@krharsh17 this flag attribute, few clarifications required :
1 - Will the flag attribute be set through any button, like for suppose seekbar? If enabled, then bar will change from solid color to gradient. 2 -If yes then where will the option be provided? 3 -Graident clarification 3.1 - I suppose you are saying the two colours for gradient, start color and end color has to be nearly similar yet different enough right? 3.2 - This should be generated randomly for all the bars right? 3.3 - We should generate the color in such a way that no bar should have nearly the same color right?
Can we work on this ?
I also want to work on this
@Sourish-Mukherjee
1 - Will the flag attribute be set through any button, like for suppose seekbar? If enabled, then bar will change from solid color to gradient. 2 -If yes then where will the option be provided?
Yes there has to be an xml attribute as well as a java setter for it
3 -Graident clarification 3.1 - I suppose you are saying the two colours for gradient, start color and end color has to be nearly similar yet different enough right? 3.2 - This should be generated randomly for all the bars right?
Yes
3.3 - We should generate the color in such a way that no bar should have nearly the same color right?
no two bars should have nearly the same color
@Sourish-Mukherjee since you were the first claimant, are you willing to work on this?
I can work on this if he doesn't want to !!
I won't be able to due to unavailability of laptop
I would love to work if @Sourish-Mukherjee is unable to work
I'll assign this to @rasacharjee . @LuGO0 You already have an issue assigned to you