From wiki.ginstr.com
Jump to: navigation, search
(XML Attributes Description)
m (formatting)
 
Line 16: Line 16:
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| title="Attribute" | gn:setBackgroundPressed
+
| title="Attribute" | <code>gn:setBackgroundPressed</code>
 
| title="Description" | Defines the color of button pressed state
 
| title="Description" | Defines the color of button pressed state
  

Latest revision as of 13:03, 12 July 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" />