I have many ideas for creating custom views in libraries and they are all coming in my head at the same time.
In my app I have to use the scrollview for lists many times. I want to create a generic view that will make it easy for me to deal with this.
So I start with extending the ScrollViewWrapper class.
I need to add two methods:
CreateLayout
This method needs to create a layout with a panel and many children. My initial idea was to let the user design a panel and assign it using this method. However, I do not know how to duplicate this panel across.
AddItem
This simply creates a clone of the layout from CreateLayout and adds it to a linearlayout that is assigned to the scrollview.
So it looks simple, but how do I clone the panel that the user assigns. Is there a better way using layouts?
Any ideas.
In my app I have to use the scrollview for lists many times. I want to create a generic view that will make it easy for me to deal with this.
So I start with extending the ScrollViewWrapper class.
I need to add two methods:
CreateLayout
This method needs to create a layout with a panel and many children. My initial idea was to let the user design a panel and assign it using this method. However, I do not know how to duplicate this panel across.
AddItem
This simply creates a clone of the layout from CreateLayout and adds it to a linearlayout that is assigned to the scrollview.
So it looks simple, but how do I clone the panel that the user assigns. Is there a better way using layouts?
Any ideas.