From wiki.ginstr.com
Jump to: navigation, search

GnBankDetails

Widget XML tag
<com.ginstr.widgets.GnBankDetails>
Description
GnBankDetails provides ability to enter bank information. IBAN number, BIC number and bank name. It is a composite control made of FrameLayout as root node. It has custom control layout which can be modified widget_en_bankdetails.xml.

XML Attributes Description

Note: An attribute marked with asterisk (*) is a mandatory parameter when creating widget.

Attribute Description
gn:controlLayout* Defines custom layout to parse for widget, by default is used: widget_en_bankdetails.xml

Example

<com.ginstr.widgets.GnBankDetails
    android:id="@+id/coffeeMachinesMaintenance_bankDetails" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content"/>

Internal control layout

Internal control layout can be set into control folder. It must be named "widget_en_bankdetails.xml" and it must have valid XML structure.
Default control layout structure can be found here: widget_en_bankdetails.xml
Widget Name Description
GnEditText @+id/internalIbanInputField this text field is used for entering IBAN information and if not empty needs to be valid
GnEditText @+id/internalBicInputField this text field is used to enter BIC information and if not empty needs to be valid
GnEditText @+id/internalBankNameField this text field is used to enter bank name and it's optional