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

GnPhoneAction

Widget XML tag
<com.ginstr.widgets.GnPhoneAction>
Description
GnPhoneAction inherits GnImageView widget.
It provides phone functionality (initiate phone call, text message/SMS, email, open webpage or download file)

XML Attributes Description

Attribute Description
gn:s_phone Sets action type for widget to make a phone call

If (empty) initiates phone call app with no number set.

Can be

  • hardcoded, i.e. +491761234567
gn:s_sms Sets action type for widget to text message (SMS)

If (empty) initiates a text message (SMS) app with no number set

Can be

  • hardcoded, i.e. +491761234567
gn:s_email Sets action type for widget to email

Can be

  • hardcoded, i.e. some@email.com
gn:s_webpage Sets action type for widget to open webpage

Can be

gn:s_downloadFile Sets action type for widget to download file

Can be

Events

gn:act_setClick
gn:act_setLongClick

Example

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