Native Mobile Animated elements

WorkWithPlus for Native Mobile allows the user to easily add several predefined animated components in any Panel, allowing the user to quickly improve the behavior and user experience of their applications.

A mobile app home screen titled 'Gx18WWTest' with a shopping cart icon shows a product grid of cards including Cookies ($12.00, was $15.00), Rice Soup ($19.99, was $25.00), Makeup ($9.99, was $15.00), and Men's clothing ($19.99, was $25.00), each with an image, name, description, and discounted price; a bottom navigation bar shows Home, Stores, and User tabs.

The Animated Elements Nodes

Animated elements are set up in a new kind of node in the hierarchical editor named "Animations".

The "Animations" node will hold all the animated elements that will be included in your Panel under it.

To add a new animated element, simply right-click on the "Animations" node, and select "Add -> AnimatedElement"

WorkWithPlus pattern tree in the GeneXus IDE for a Panel object, with "Apply this pattern on save" checked. An orange arrow points to the "Animations" node under MainTable, which is based on template NMHomeEmptyTabs and contains three "Animated element" child nodes below the Application bar and Tabs nodes.

Animated Element Properties

The "AnimatedElement" node has the following properties:

The GeneXus Properties panel for an 'animatedElement: Animated element' shows its configuration: Name 'HomeRightMenu', Type 'RightMenu', an empty Theme Class field, and 'Include Default Actions' set to True.

  • Name: The name of the animation will be used to name all generated tables, events and subroutines: e.g. Sub 'HomeRightMenu_Show'
  • Type: The type of animated element determines the initial position, and animated effect that will be applied. You can find out which types of animated elements are available below.
  • Theme Class: This property can be used to change the theme properties of the outer table of the animation. Please consider that if you override animation related properties, the animated element may not work properly.
  • Include Default Actions: This property can be used to turn off automatic behavior (such as the animation hide launched when the content table is tapped), allowing the user to fully control the animation's UI.

Animated elements types

Users can choose to animate their elements in one of the following predefined types:

Top notification An animated table will descend from the top of the screen. This kind of animation was designed to be used as a way to show customizable notifications to the user. Mobile app screen titled "Sample Animation Top" with a hamburger menu icon in the top app bar. The body shows a single gray button labeled "Show Animation" centered near the top of an otherwise empty page.
Center message An animated table will be shown at the center. Also designed as a way to show customizable messages to the user. A mobile app screen titled 'Sample Animation Action Sheet' shows a mostly blank body with a single centered gray 'Show Animation' button, demonstrating the starting state of an action-sheet animation sample.
Bottom action sheet An animated table will appear from the bottom of the screen. This animated element was designed to show additional actions. A mobile app screen titled 'Sample Animation Center' shows a mostly blank body with a single centered gray 'Show Animation' button, demonstrating the starting state of a center-positioned animation sample.
Right menu Designed as a way of showing more actions, or a secondary menu to the user. This element shows an icon that will remain "always visible", that once the user taps on it, will extend a new table from the right. A mobile app screen titled 'Sample Animation Right' shows a mostly blank body with an info icon in the top-right corner and a centered gray 'Show Animation' button, demonstrating the starting state of a right-side animation sample.

In all the cases above, a dark overlay table will be displayed, that will prevent the user from selecting anything outside the table.

As we evolve this feature, we will continue to add new kinds of animated elements and capabilities.

Animated element content

Every animated element contains a main table, where the user can customize the animation content.

This table accepts any kind of content, text blocks, images, attributes, variables and even more complex components.

The main restriction with the content of the animation, is that the content cannot "auto grow", nor "collapse its space" when hidden. This restriction also applies if you add a 'Grid' inside the animated element. In those cases, the animated element will try to add a scroll to the content.

While the content of the animated element is edited, you will see the result (including the animation effect) in the live preview.

You can hide the animated element preview simply by selection an element outside the element.

The GeneXus IDE Panel editor shows a WorkWithPlus pattern applied and based on template 'NMHomeEmptyTabs', with an orange box around an 'Animated element' node named 'HomeRightMenuMainTable' in the object tree; the live Android emulator preview on the right shows a right-side menu panel with the text 'Use this section to show general information and actions' and three icon buttons labeled New Ideas, Settings, and Inbox.