Skip to content

Latest commit

 

History

History
34 lines (34 loc) · 1.14 KB

preferences.xml.md

File metadata and controls

34 lines (34 loc) · 1.14 KB

preferences.xml

  • File example
  • Structure inspired by Android Preferences.
  • key attribute will be used as key in preferences object for scrape function
    • startDate will be fromDate for the first run
  • startDate field is required:
    <EditTextPreference
        key="startDate"
        obligatory="true"
        inputType="date"
        title="From what date to load transactions"
        defaultValue="2018-01-01T00:00:00.000Z"
        dialogTitle="From what date to load transactions"
        positiveButtonText="OK"
        negativeButtonText="Cancel"
        summary="|startDate|{@s}"
    />
  • Supported EditTextPreference, ListPreference, CheckBoxPreference.
  • Use inputType="textPassword" for passwords for example
    <EditTextPreference
        key="password"
        obligatory="true"
        inputType="textPassword"
        title="Password"
        dialogTitle="Password"
        dialogMessage="Some detauls"
        positiveButtonText="OK"
        negativeButtonText="Cancel"
        summary="||***********"
    />