From wiki.ginstr.com
Jump to: navigation, search

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