From wiki.ginstr.com
Jump to: navigation, search
(XML Attributes Description)
(XML Attributes Description)
Line 18: Line 18:
 
| title="Attribute" | gn:setBackgroundPressed
 
| title="Attribute" | gn:setBackgroundPressed
 
| title="Description" | Defines the color of button pressed state
 
| title="Description" | Defines the color of button pressed state
: Can be
+
 
 +
Can be
 
* <code>@drawable</code>
 
* <code>@drawable</code>
 
|}
 
|}

Revision as of 11:44, 27 March 2017

GnPreferencesButton

Widget XML tag
<com.ginstr.widgets.GnPreferencesButton>
Description
GnPreferencesButton is represented by a button.
When clicked it launches Preferences activity of ginstr launcher.

XML Attributes Description

Attribute Description
gn:setBackgroundPressed Defines the color of button pressed state

Can be

  • @drawable

Example

<com.ginstr.widgets.GnPreferencesButton
  android:id="@+id/imageSettings" 
  android:layout_width="wrap_content" 
  android:layout_height="wrap_content"  
  android:layout_toLeftOf="@+id/logoutIcon"
  android:background="@drawable/settings"
  gn:setBackgroundPressed="@drawable/settingsPressed" />