From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
Line 15: Line 15:
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| title="Attribute" | gn:s_SelectedItemText
+
| title="Attribute" | <code>gn:s_SelectedItemText</code>
 
| title="Description" | Text which will be displayed in dropdown if at least 1 item is selected
 
| title="Description" | Text which will be displayed in dropdown if at least 1 item is selected
 
Can be
 
Can be

Revision as of 13:02, 12 July 2017

GnDropDownSelection

Widget XML tag
<com.ginstr.widgets.GnDropDownSelection>
Description
GnDropDownSelection extends GnDropDown widget with a possibility to select multiple values from dropdown list

XML Attributes Description

Attribute Description
gn:s_SelectedItemText Text which will be displayed in dropdown if at least 1 item is selected

Can be

  • @string

Example

<com.ginstr.widgets.GnDropDownSelection
  android:id="@+id/service_name"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:background="@drawable/dropdown"
  gn:singleItemMode="true"
  gn:s_sourceType="database"
  gn:textColor="#000000"
  gn:s_ZeroItemText="@string/screen1_serviceNameZeroItem"
  gn:s_SelectedItemText="@string/screen1_servicesSelected" />