Android Question Loading array (30) of own custom view

stevenindon

Active Member
Licensed User
Hello all,

I have attached a very small project sample just to prove the concept of loading 30 arrays of Customview

Questions:

1) Look at the codes - is this even the correct way of loading custom view by code / Is it an elegant way of loading a custom view
2) I cant raise event when customview button are clicked - What are the conflicts/limitations here?
3) Not too sure if customview is IOS compatible - Just curious

Thanks
 

Attachments

  • B4A_CustomView2.zip
    312 KB · Views: 190

Mahares

Expert
Licensed User
Longtime User
I have attached a very small project sample just to prove the concept of loading 30 arrays of Customview
Your thread looks like it is crying for xCustomListView 's help. If you want to add customviews programmatically, below is the link, that will help you do it.
You need to stay away from scrollview. Your project is nice and demonstrates a great effort on your part, but, it does not add to what is available. You are trying to reinvent the wheel, but the wheel is already available and greased. If you need help, many of us in the forum can help you do what you are trying to do with an array of customviews like Swift Buttons on an xCLV.
 
Upvote 1

stevenindon

Active Member
Licensed User
Thank you for the link Mahares. I will study the sample to see if it suits what i need.

Thanks again for your great effort.
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Thanks again
I have applied your class customview to an xCustomListView. Please see attached project for the comparison between using a scrollview (your case) and an xClv (mahares}. Please note that the advantage of an xClv is your do not run out of scrolling space. I used 50 items. With the scrollview, you have to adjust it height every time, but not with xClv. The point I am making is that your class works with xClv. It can use more tweaking. Keep up the good work.
 

Attachments

  • ScrollViewvsxCustomListViewStevenindonClass.zip
    17.4 KB · Views: 165
  • StevenClassUsingSvvsxClv.png
    75.5 KB · Views: 148
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…