From wiki.ginstr.com
Revision as of 15: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
TextView, Button
Widget XML tag
<com.ginstr.widgets.GnPhoneNumber>


GnPhoneNumber provides support to enter phone number data into phone number datatype. It’s used to store and retrieve data from the database. Once data is in the widget it’s possible to edit the data by clicking edit button.

On click, a new dialog window will open which has add, edit, remove and close buttons which can be used to manipulate phone numbers.

The dialog has a built in validate screen action when add or edit is executed.

By default, widget definition can be found in $defaultApp/control/widget_en_phonenumber.xml. This layout describes how the widget will look on screen.

The dialog screen that loads on clicking edit is defined by $defaultApp/control/dialog_en_phonenumber.xml

Dialog screen listview row definition can be found at $defaultApp/control/dialog_en_phonenumber_row.xml

All of the above mentioned layouts can be used to modify the look and feel of the widget.

XML Attributes Description

Attribute Description
gn:displayCallButton Displays a call button in GnPhoneNumber dialog to the right of each phone number
gn:readOnlyDialog Allows user to call existing phone number and to close the dialog

gn:displayCallButton

Displays a call button in GnPhoneNumber dialog to the right of each phone number

(Boolean) values = true, false

Default value = false

gn:readOnlyDialog

Allows user to call existing phone number and to close the dialog

(Boolean) values = true, false

Default value = false