From wiki.ginstr.com
Jump to: navigation, search
Line 13: Line 13:
 
</pre>
 
</pre>
  
Back to [[ginstr app composer reference]]
+
Back to [[ginstr_app_composer_reference#Widgets_table|GBAM widgets table]]
  
 
== Predefined user data ==
 
== Predefined user data ==

Revision as of 11:31, 3 November 2016

Gps address (hidden)

Widget obtains gps coordinates from gps module. After location is retrieved nominatim server is contacted to fetch the address and address is stored into the widget. Widget is hidden.

Widget id, ${widgetID}:

auditAddress

Back to GBAM widgets table

Predefined user data

PreLoaded

AutoLoaded data which is known:

  • ${pageName} - name of the page to which widgets are added

Properties panel

User will configure this data in properties panels of selected widget:

GENERAL:

  • ${widgetLabel} - name of the widget user added to the screen

Code snippets

Common widget code

<com.ginstr.widgets.GnEditText
    android:id="@+id/${pageName}$_{widgetLabel}_input" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content"
    gn:s_sourceType="gps"
    gn:dataType="text"
    gn:visible="false"
    gn:showAddress="true" />