Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gradient background option attribute #11

Open
krharsh17 opened this issue Feb 22, 2020 · 12 comments
Open

Add gradient background option attribute #11

krharsh17 opened this issue Feb 22, 2020 · 12 comments
Assignees
Labels
enhancement New feature or request gssoc20 hard
Milestone

Comments

@krharsh17
Copy link
Owner

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

@krharsh17 krharsh17 added enhancement New feature or request hard labels Feb 22, 2020
@krharsh17 krharsh17 added this to the PHASE-2 GS20 milestone Feb 22, 2020
@Sourish-Mukherjee
Copy link
Contributor

Is it going to be like a random gradient colour for the bar or like is it upon the choice of the user? #GSSOC20

@krharsh17
Copy link
Owner Author

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

@rajkothari634
Copy link
Contributor

i want to work on this

@Sourish-Mukherjee
Copy link
Contributor

@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
Copy link
Contributor

Can we work on this ?

@rasacharjee
Copy link
Contributor

I also want to work on this

@krharsh17
Copy link
Owner Author

@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
Copy link
Owner Author

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

@LuGO0
Copy link
Contributor

LuGO0 commented Apr 18, 2020

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

@Sourish-Mukherjee
Copy link
Contributor

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

@rasacharjee
Copy link
Contributor

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

@krharsh17
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc20 hard
Projects
None yet
Development

No branches or pull requests

5 participants