Contents
gn:event_onRowCreated
- Description
- Event which should be used in a row xml file, executed after the row is created.
- Can be used on
- GnListView
- GnTableView
Event signature
gn:event_onRowCreated="action{n}"
Example
lastLoginEmployeesToday_row.xml
<FrameLayout android:layout_height="wrap_content" android:layout_width="match_parent" gn:event_onRowCreated=" [gn:act_if]|[[gn:act_widgetContent]|[empty,@+id/employee_lastParking]-- [gn:act_hideWidgets]|[@+id/parkingView] ::]"> <com.ginstr.widgets.GnTextView android:id="@+id/rowId" android:layout_width="match_parent" android:layout_height="wrap_content" android:visibility="gone"/> <LinearLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:layout_marginTop="10dp" android:layout_marginBottom="5dp" android:orientation="vertical" android:clickable="true" android:background="#FFFFFF"> <LinearLayout android:id="@+id/parkingView" android:layout_height="wrap_content" android:layout_width="match_parent" android:orientation="horizontal" android:layout_marginTop="10dp" android:clickable="true" android:background="#FFFFFF"> <com.ginstr.widgets.GnEditText android:id="@+id/employee_lastParking" android:layout_height="wrap_content" android:layout_weight="0.6" android:layout_width="0dp" android:layout_marginTop="0dp" android:layout_marginBottom="0dp" android:textColor="#393939" gn:s_sourceType="input" gn:style="@style/textReadOnly_input"/> <LinearLayout android:layout_height="wrap_content" android:layout_weight="0.4" android:layout_width="0dp" android:orientation="horizontal" android:gravity="right" android:background="#FFFFFF"> <com.ginstr.widgets.GnTextView android:id="@+id/parkingWorkBeginFormatted" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0dp" android:layout_marginLeft="20dp" gn:style="@style/textReadOnlyNormal_label"/> <com.ginstr.widgets.GnTextView android:id="@+id/parkingWorkEndFormatted" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0dp" android:layout_marginLeft="20dp" gn:style="@style/textReadOnlyNormal_label"/> </LinearLayout> </LinearLayout> </LinearLayout> </FrameLayout>