Android Question CustomListView Designer properties border width and radius problem

davemorris

Active Member
Licensed User
Longtime User
Hi Guy
I have used Xui.CustomerListView (CLV) for some time, always placing the view within a panel view and adjusting the panel properties to give me the desired border.

I am now working on a simpler App and using the CLV directly. Question: Am I doing something wrong but when I set the CLV properties in the designer for Drawable section Corner radius and border width they don't appear to have any affect on the view when I run the application.

Scanning the forum suggests placing the CLV on a panel (as I have done in the past) - so why do some of it's designer properties not work or should they?

Thanks in advance for any input

Dave
 

LucaMs

Expert
Licensed User
Longtime User
There is a limitation here where custom views always show all properties in the designer. So it doesn't mean that all properties are actually used by the custom view.
I (and many others) know; what can be done to make this clear in the Designer?
The Designer can already detect that the selected View is a custom view. Ideally, unusable properties would be disabled (or hidden), but I think this would be very complicated to implement.
A simple message would be helpful (although I don't know if it should be written)

 
Upvote 0

davemorris

Active Member
Licensed User
Longtime User
Hi
Thanks for your input - I often come across this problem and ask on the forum, sometimes an expected property is available but deeper down into the class (i.e. visible property CustomListView1.AsView.Visible = False) or not there at all.

I know nothing of the work behind the Designer but I do suggest that there is some more formal documentation for custom views be generated with a breakdown of the properties and methods available. Most of the posts on the formal regarding custom views are informative in regards to usage but can take a lot of searching to find any detail.

Perhaps this information can be extracted from the source code for the class, I am no B4X expert but I have been programming (In various languages) since about 1980 so I can usually find my way around most. I always try to contribute to the forum but unable to help as the questions are either outside my realm of B4X experience or an B4X expert/experience member has beat me to it!

That said - I volunteer to contribute to such a document it would be my way of contributing to B4X - what do you suggest to get started.

Kind regard
Dave
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…