From wiki.ginstr.com
Revision as of 13:03, 12 July 2017 by Mark (talk | contribs) (formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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