From wiki.ginstr.com
Revision as of 18:34, 29 June 2016 by Mark (talk | contribs) (Created page with "<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> Category:Widget_Library ;Inherited classes: <code>[http://developer.android.com/reference/android/vi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Inherited classes
View
Android class type
LinearLayout
Child elements
EditText, Button
Widget XML tag
<com.ginstr.widgets.GnQrEmulator>


GnQrEmulator is used to simulate QR scans and consists of one text input field and a button.

In the text field, user should enter QR code in alphanumeric representation. By pressing the button, a QR-like event will be dispatched within the application.

Enabling emulation widgets

To enable loading of emulation widgets on development, integration and staging server, open ginstr launcher preferences screen and tick checkbox "emulation widgets" and then relaunch the application.

On production apk of ginstr launcher, loading of emulation widgets requires "common.xml" to be saved within "settings" folder, containing the following entry: <source lang="xml"><string name="emulatorWidgetsEnable">true</string></source>

Additionally, the following lines must be added to layout to show GnQrEmulator: <source lang="xml"> <com.ginstr.widgets.GnQrEmulator android:layout_width=”wrap_content” android:layout_height=”wrap_content” /></source>