Johan Schoeman Expert Licensed User Longtime User Jan 28, 2017 #1 I have thus far not made use of this feature in my wrappers. Busy playing around with it and what to know the following: 1. I have this code in my wrapper (i.e passing any array of int colors from B4A to the wrapper): Code: public void setDividerColor(int[] divcolor){ cv.setDividerColor(divcolor); cv.invalidate(); } 2. Is there a way to add an array of colors to the custom properties or can one add single values and lists only? The library will use the int[] array to draw the divider line between items as a "gradient" of the colors passed Last edited: Jan 28, 2017
I have thus far not made use of this feature in my wrappers. Busy playing around with it and what to know the following: 1. I have this code in my wrapper (i.e passing any array of int colors from B4A to the wrapper): Code: public void setDividerColor(int[] divcolor){ cv.setDividerColor(divcolor); cv.invalidate(); } 2. Is there a way to add an array of colors to the custom properties or can one add single values and lists only? The library will use the int[] array to draw the divider line between items as a "gradient" of the colors passed
Erel B4X founder Staff member Licensed User Longtime User Jan 29, 2017 #2 No. The supported types are listed here: https://www.b4x.com/android/forum/threads/b4x-custom-views-with-enhanced-designer-support.62488/ String, Int, Float, Boolean or Color.
No. The supported types are listed here: https://www.b4x.com/android/forum/threads/b4x-custom-views-with-enhanced-designer-support.62488/ String, Int, Float, Boolean or Color.