From wiki.ginstr.com
Revision as of 13:06, 12 July 2017 by Mark (talk | contribs) (formatting)
Jump to: navigation, search

GnButton

Widget XML tag
<com.ginstr.widgets.GnButton>
Description
GnButton inherits regular Android Button widget.
It can be pressed or clicked by the user to perform an action.

XML Attributes Description

Attribute Description
gn:background_checked Represents a background of true state

Can be

  • @drawable
background_unchecked Represents a background of false state

Can be

  • @drawable

Example

<com.ginstr.widgets.GnButton
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  gn:backgroundChecked="@drawable/fuelRed"
  gn:backgroundUnchecked="@drawable/fuelBlue" />