barview-android icon indicating copy to clipboard operation
barview-android copied to clipboard

Add gradient background option attribute

Open krharsh17 opened this issue 5 years ago • 12 comments

Add an attribute and a field in the BarView class to generate and put gradient backgrounds for bars

krharsh17 avatar Feb 22 '20 22:02 krharsh17

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 avatar Feb 23 '20 03:02 Sourish-Mukherjee

@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.

krharsh17 avatar Feb 23 '20 08:02 krharsh17

i want to work on this

rajkothari634 avatar Feb 24 '20 09:02 rajkothari634

@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?

Sourish-Mukherjee avatar Mar 01 '20 23:03 Sourish-Mukherjee

Can we work on this ?

Sourish-Mukherjee avatar Apr 03 '20 18:04 Sourish-Mukherjee

I also want to work on this

rasacharjee avatar Apr 06 '20 09:04 rasacharjee

@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

krharsh17 avatar Apr 18 '20 18:04 krharsh17

@Sourish-Mukherjee since you were the first claimant, are you willing to work on this?

krharsh17 avatar Apr 18 '20 18:04 krharsh17

I can work on this if he doesn't want to !!

LuGO0 avatar Apr 18 '20 19:04 LuGO0

I won't be able to due to unavailability of laptop

Sourish-Mukherjee avatar Apr 18 '20 20:04 Sourish-Mukherjee

I would love to work if @Sourish-Mukherjee is unable to work

rasacharjee avatar Apr 20 '20 11:04 rasacharjee

I'll assign this to @rasacharjee . @LuGO0 You already have an issue assigned to you

krharsh17 avatar Apr 20 '20 12:04 krharsh17