From wiki.ginstr.com
Jump to: navigation, search
(Events)
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Widgets]]
+
<div style="float:right; clear:both; margin-left:0.5em;">__TOC__</div>
;Inherited classes: [http://developer.android.com/reference/android/view/View.html View]
+
<span STYLE="font-size: xx-large"><code>GnImageView</code></span>
;Android class type: Android [http://developer.android.com/reference/android/widget/ImageView.html ImageView] with some additional features.
+
[[Category:Widget_Library]]
;Widget XML tag : <code><com.ginstr.widgets.GnImageView></code>
+
 
==Layout Configuration==
+
;Widget XML tag
 +
: <code><com.ginstr.widgets.GnImageView></code>
 +
 
 +
;Description
 +
: <code>[http://developer.android.com/reference/android/widget/ImageView.html ImageView]</code> with some additional features.
 +
 
 +
==XML Attributes Description==
 
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! 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>
+
Can be
| title="Value Type" | Float
+
* hardcoded, (Float) values = <code>-90.0</code> to <code>+90.0</code>
 
|-
 
|-
 
| 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 <code>[http://developer.android.com/reference/android/widget/ImageView.html ImageView]</code>. It can also be used on standard <code>[http://developer.android.com/reference/android/widget/ImageView.html ImageView]</code>
| title="Values" | <code>@drawable/nameOfImageFile</code>
+
Can be
| title="Value Type" | Drawable
+
* <code>@drawable</code>
 
|}
 
|}
 +
 +
==Events==
 +
: <code>[[gn:act_setClick]]</code>
 +
: <code>[[gn:act_setLongClick]]</code>
 +
 +
==Data types==
 +
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
! scope="col" | Input
 +
|-
 +
| title="Value" | <code>[[Datatypes#pictures|pictures]]</code>
 +
|}
 +
 +
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 +
|-
 +
! scope="col" | Output
 +
|-
 +
| title="Value" | <code>[[Datatypes#pictures|pictures]]</code>
 +
|}
 +
 +
==Example==
 +
<syntaxhighlight code="xml">
 +
<com.ginstr.widgets.GnImageView
 +
  android:id="@+id/readNfcTagImage"
 +
  android:layout_height="wrap_content"
 +
  android:layout_width="match_parent"
 +
  android:src="@drawable/read"
 +
  gn:style="@style/start_gnImageViewFooter"/>
 +
</syntaxhighlight>

Latest revision as of 10:42, 8 August 2019

GnImageView

Widget XML tag
<com.ginstr.widgets.GnImageView>
Description
ImageView with some additional features.

XML Attributes Description

Attribute Description
gn:rotation Sets rotation angle

Can be

  • hardcoded, (Float) values = -90.0 to +90.0
gn:setBackgroundPressed Sets pressed background image for ImageView. It can also be used on standard ImageView

Can be

  • @drawable

Events

gn:act_setClick
gn:act_setLongClick

Data types

Input
pictures
Output
pictures

Example

<com.ginstr.widgets.GnImageView
  android:id="@+id/readNfcTagImage"
  android:layout_height="wrap_content"
  android:layout_width="match_parent"
  android:src="@drawable/read"
  gn:style="@style/start_gnImageViewFooter"/>