From wiki.ginstr.com
Jump to: navigation, search
Line 8: Line 8:
 
! scope="col" | Attribute
 
! scope="col" | Attribute
 
! scope="col" | Description
 
! scope="col" | Description
! scope="col" | Values
 
! scope="col" | Value Type
 
 
|-
 
|-
| title="Attribute" | <code>gn:rotation</code>
+
| title="Attribute" | <code>[[#gn:rotation]]</code>
 
| title="Description" | sets rotation angle
 
| title="Description" | sets rotation angle
| title="Values" | <code>-90.0</code> to <code>+90.0</code>
 
| title="Value Type" | Float
 
 
|-
 
|-
| title="Attribute" | <code>gn:setBackgroundPressed</code>
+
| title="Attribute" | <code>[[#gn:setBackgroundPressed]]</code>
 
| title="Description" | sets pressed background image for [http://developer.android.com/reference/android/widget/ImageView.html ImageView]. It can also be used on standard [http://developer.android.com/reference/android/widget/ImageView.html ImageView]
 
| title="Description" | sets pressed background image for [http://developer.android.com/reference/android/widget/ImageView.html ImageView]. It can also be used on standard [http://developer.android.com/reference/android/widget/ImageView.html ImageView]
| title="Values" | <code>@drawable/nameOfImageFile</code>
 
| title="Value Type" | Drawable
 
 
|}
 
|}
 +
 +
==gn:rotation==
 +
 +
Sets rotation angle
 +
 +
(Float) values = <code>-90.0</code> to <code>+90.0</code>
 +
 +
==gn:setBackgroundPressed==
 +
 +
Sets pressed background image for [http://developer.android.com/reference/android/widget/ImageView.html ImageView].
 +
It can also be used on standard [http://developer.android.com/reference/android/widget/ImageView.html ImageView]
 +
 +
(Drawable) values = <code>@drawable/nameOfImageFile</code>

Revision as of 17:34, 23 June 2016

Inherited classes
View
Android class type
Android ImageView with some additional features.
Widget XML tag 
<com.ginstr.widgets.GnImageView>

Layout Configuration

Attribute Description
#gn:rotation sets rotation angle
#gn:setBackgroundPressed sets pressed background image for ImageView. It can also be used on standard ImageView

gn:rotation

Sets rotation angle

(Float) values = -90.0 to +90.0

gn:setBackgroundPressed

Sets pressed background image for ImageView. It can also be used on standard ImageView

(Drawable) values = @drawable/nameOfImageFile