GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SimpleCheckboxPreference

SimpleCheckboxPreference

Jump to bottom
Marc Auberer edited this page Jan 17, 2021 · 4 revisions

Equivalent of the CheckboxPreference xml tag.

Usage

In your code:

SimpleSettings(this).show {
	CheckboxPref {
		title = "Title"
		summary = "Summary"
		defaultValue = true
		...
	}
}

In a seperate xml file:

<PreferenceScreen
    xmlns:app="http://schemas.android.com/apk/res-auto">
	
	<CheckboxPreference
    	app:key="key"
    	app:title="Title"
    	app:summary="Summary"
		app:defaultValue="true"
		... />

</PreferenceScreen>

© Marc Auberer 2020-2023

General information

  • Home & Table of contents
  • Activity configuration

Preference types

  • SimpleTextPreference
  • SimpleSwitchPreference
  • SimpleInputPreference
  • SimpleListPreference
  • SimpleMSListPreference
  • SimpleCheckboxPreference
  • SimpleDropDownPreference
  • SimpleSeekbarPreference
  • SimpleLibsPreference
  • SimpleColorPreference

Special preference types

  • PreferenceSection
  • PreferencePage
  • PreferenceHeader

Click listeners

  • DialogClickListener
  • LibsClickListener
  • PlayStoreClickListener
  • ToastClickListener
  • WebsiteClickListener

Clone this wiki locally

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.