WheelView icon indicating copy to clipboard operation
WheelView copied to clipboard

Generalization of WheelView.

Open matvey-malkov opened this issue 10 years ago • 6 comments

Thinking about some changes in adapter. Now WheelView works only with 'Drawables'. It's ok in some cases, but it will be great to make it more general. First items can be some sort of 'ViewGroup' or 'View'. It can be longer (from center to edge). Or we can make it similar to the 'ListView' with getView(...). Second, we can make part of circle from center to some radius not to be a circle (e.g. menu or switches in center of view.)

Moreover, there is a possibility to make it recyclerView with custom LayoutManager, but I don't know all the power of 'LayoutManager's'

What do you think?

matvey-malkov avatar Dec 16 '14 12:12 matvey-malkov

/cc @LukeDeighton @iffa

matvey-malkov avatar Dec 17 '14 05:12 matvey-malkov

I agree that this is a good idea, working with drawables is limiting, also since there are a lot of nice custom view libraries that add circular clipping etc.

I think looking into layout manager is a good idea although I'm not too sure how it works either. I will need to look at the source code.

I'll look into it when I get a bit more time or if you want to contribute then that's great as well

LukeDeighton avatar Dec 17 '14 11:12 LukeDeighton

/cc @matvey-malkov

LukeDeighton avatar Dec 17 '14 15:12 LukeDeighton

Ok, I'll take a look. Do you want to discuss some issues here or it's up to me to make all implementation?

matvey-malkov avatar Dec 18 '14 05:12 matvey-malkov

I've created a new branch LayoutManager for attempting to generalise using RecyclerView / LayoutManager. I don't mind whether you want to discuss or implement first and then I can read over your code. I will explore LayoutManager when I have a bit more time

LukeDeighton avatar Dec 19 '14 15:12 LukeDeighton

is this implemented @LukeDeighton i need little help in this library i want to show items on wheel from my model class and want to set everywheel item color on the basis of method (isdefault) if true then set color to yellow and text = "default " how will i do this ? how will i pass values for wheel from my model class i m getting data from db

engr-erum avatar May 27 '15 10:05 engr-erum