Edit: library updated to version 0.30 (see post #10 for its specific notes)
Edit: library updated to version 0.20 (see post #9 for its specific notes)
Hi all,
while developing a new app, I felt the need for a unified way to manage different pickers. So last weekend I wrote the dgPickers library.
Although yet in its alpha stage, it seems to work as expected.
Please find attached both the library itself (dgPickers_009.zip) and a demo program (dgPickersEx_009.zip).
Version 0.09 sports a Color Picker and a Thickness Picker.
The library approach is very simple.
The programmer should be on full command, so almost anything is parameterized.
As of current version, you prepare an integer array whose values represent the data to be displayed through a specialized picker.
Then you set desidered properties for both the inner tiles showing your data and the picker containing those tiles.
Finally, you attach the picker to a view in your current activity. The picker can show on any side of the view, provided there's a minimum of available space.
Last step, call the ShowPicker method.
Once the desidered picker is showed, the user can select one of its values by tapping on it, scroll the list (swipe along the length of the picker) or just swipe out of it (swipe orthogonal to the picker).
I didn't test yet the lib against those nice and useful ActionBars available for B4A, but it should work.
Any suggestion about how to improve it and any error report is welcomed.
Umberto
Files attached:
Edit: library updated to version 0.20 (see post #9 for its specific notes)
Hi all,
while developing a new app, I felt the need for a unified way to manage different pickers. So last weekend I wrote the dgPickers library.
Although yet in its alpha stage, it seems to work as expected.
Please find attached both the library itself (dgPickers_009.zip) and a demo program (dgPickersEx_009.zip).
Version 0.09 sports a Color Picker and a Thickness Picker.
The library approach is very simple.
The programmer should be on full command, so almost anything is parameterized.
As of current version, you prepare an integer array whose values represent the data to be displayed through a specialized picker.
Then you set desidered properties for both the inner tiles showing your data and the picker containing those tiles.
Finally, you attach the picker to a view in your current activity. The picker can show on any side of the view, provided there's a minimum of available space.
Last step, call the ShowPicker method.
Once the desidered picker is showed, the user can select one of its values by tapping on it, scroll the list (swipe along the length of the picker) or just swipe out of it (swipe orthogonal to the picker).
I didn't test yet the lib against those nice and useful ActionBars available for B4A, but it should work.
Any suggestion about how to improve it and any error report is welcomed.
Umberto
Files attached:
- dgPickers_030.zip - latest version (see post #10 for its notes)
- dgPickersEx_030.zip - example on how to use the lib
- dgPickers_020.zip - latest version (see post #9 for its notes)
- dgPickersEx_020.zip - example on how to use the lib
- dgPickers_014.zip - version 0.14
- dgPickers_100.zip - version 0.10, misspelled name
- dgPickers_009.ip - version 0.09
- dgPickersEx_009 - example on how to use the lib
Attachments
-
dgPickers_009.zip6.9 KB · Views: 359
-
dgPickersEx_009.zip6.7 KB · Views: 390
-
dgPickers_100.zip7 KB · Views: 486
-
dgPickers_014.zip7.1 KB · Views: 315
-
dgPickers_020.zip7.6 KB · Views: 451
-
dgPickersEx_020.zip40 KB · Views: 454
-
dgPickers_030.zip7.6 KB · Views: 375
-
dgPickersEx_030.zip45 KB · Views: 356
Last edited: