From wiki.ginstr.com
Revision as of 14:13, 27 July 2015 by Danijel (talk | contribs) (Created page with "{|align=right |__TOC__ |} =Audit= Widget represents a hidden field which will provide phone and user specific data.<br> Back to ginstr app composer reference == Predefi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Audit

Widget represents a hidden field which will provide phone and user specific data.
Back to ginstr app composer reference

Predefined user data

To read specification and understand it better we will assume that user provided values:

  • name of the page to which widgets are added = "Page one"
  • name of the hidden widget which is being added = "Audit"

Widget references

If widget is added via app composer autogenerated ids will be created according to table below.

Control Attribute Value
GnEditText android:id @+id/pageOneAudit

Attributes configuration

GnEditText

Preset attributes:

Attribute Value
android:layout_width match_parent
android:layout_height match_parent
android:id @+id/pageOneAudit
ek:visible false

User defined attributes:

Attribute Value
android:id @+id/pageOneAudit

Code snippets

Common widget code

<source lang="xml"> <com.ginstr.widgets.GnEditText

   android:id="@+id/pageOneAudit" 
   android:layout_width="match_parent" 
   android:layout_height="wrap_content" 
   ek:visible="false"
   --variant content goes here--/>

</source>