COMPANY
COMMUNITY
BLOG
HELP
MY ACCOUNT
EN PT ES

User Controls 21.10.08 90x90

User Controls for Smart Devices

The SD imageGallery control by Marcos Crispino.
The first assignment I was given at my new job in Artech was to develop a User Control for the iOS generator in order to show a list in the form of an image gallery.

The control, which was already available for Android, is called "SD ImageGallery". Here is
the documentation available in the wiki.


The version for iOS will be available with the upcoming version of the KB Navigator. It is based on the
KTPhotoBrowser control (with some changes included) with an MIT license.

It is very easy to use: the View corresponding to the list (the pattern defines views for the Master, which is a list, and for the Detail which shows a specific item) is selected in the Work With Smart Devices pattern, and the "ControlType" property is changed to "SD ImageGallery".

If nothing else is configured, then it takes the first image available in the record (it is not deterministic if there is more than one). However, it is also possible to inform in the properties the attribute contained in the image to be shown, and which one has the title and which one has the description.


The interesting fact here is that it is a User Control. This implies the possibility of defining controls implemented by third parties in the generators for Smart Devices.

For the time being, the mechanism to do it is still to be greatly improved (or even inexistent), and this specific control was developed within the same project as the rest of the KB Navigator, though the idea is to do it separately and find the way to include it somehow.


It is obvious that developing User Controls is not a task for everyone, since it calls for background knowledge of platform development (Objective-C and API for iPhone in this case), but this will bring possibilities for those willing to publish controls, as it occurs now on the web, through the
Marketplace.


This is how it appears on the iPhone:
 
Originally published in Marcos Crispino’s blog.
Related
Making ideas happen, together :: Important announcements for the Community regarding technology for smart devices
XXGX Videos can be viewed on Smart Devices and PCs, and are available for download
My first Android application or, rather, getting started with GeneXus Evolution 2
Smart Devices Generator for Android, BlackBerry, iOS :: By Gastón Milano, GeneXus Architect
Smart Devices at the XXGX
“I was amazed by GeneXus X Evolution 2” :: Post by Gabriel Medina about Beta 1
Android, iOS and BlackBerry are already supported by GeneXus X Evolution 2 Beta 1
BlackBerry, another key element of the GeneXus Smart Devices generator
GeneXus Smart Devices eXpress is in Beta!
WorkWithPlus for GeneXus X Evolution 2 is in Beta!
Welcome 2011! The beginning of a new decade brings with it GeneXus X Evolution 2
Trending Topic Smart Devices: February 2010
GeneXus X Evolution 2 Beta 2 released!
How To Article:: Smart Devices
Special Edition #GeneXusTheBestOf2014 :: Cloud Computing, the Internet of Things, GeneXus X Evolution 3, Success Stories, Smart Devices and ... Much More!