From wiki.ginstr.com
Jump to: navigation, search
(Created page with "<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div> <span STYLE="font-size: xx-large"><code>GnBankDetails</code></span> Category:Widget_LibraryCategor...")
 
m
Line 7: Line 7:
  
 
;Description
 
;Description
: <code>GnBankDetails</code> provides ability to enter bank information. IBAN number, BIC number and bank name. It is a composite control made of <code>[https://developer.android.com/reference/android/widget/FrameLayout.html]</code> as root node. It has custom control layout which can be modified [[widget_en_bankdetails.xml]].
+
: <code>GnBankDetails</code> provides ability to enter bank information. IBAN number, BIC number and bank name. It is a composite control made of <code>[https://developer.android.com/reference/android/widget/FrameLayout.html FrameLayout]</code> as root node. It has custom control layout which can be modified [[widget_en_bankdetails.xml]].
  
 
==XML Attributes Description==
 
==XML Attributes Description==

Revision as of 17:45, 29 May 2018

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