Contents
- 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>