From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
Line 16: Line 16:
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| title="Attribute" | gn:background_checked
+
| title="Attribute" | <code>gn:background_checked</code>
 
| title="Description" | Represents a background of <code>true</code> state
 
| title="Description" | Represents a background of <code>true</code> state
 
Can be
 
Can be
 
* <code>@drawable</code>
 
* <code>@drawable</code>
 
|-
 
|-
| title="Attribute" | background_unchecked
+
| title="Attribute" | <code>background_unchecked</code>
 
| title="Description" | Represents a background of <code>false</code> state
 
| title="Description" | Represents a background of <code>false</code> state
 
Can be
 
Can be

Revision as of 13:06, 12 July 2017

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" />