Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Action CheckBox and Switch items #112

Open
wants to merge 21 commits into
base: preferences
Choose a base branch
from

Conversation

kuba2k2
Copy link

@kuba2k2 kuba2k2 commented Mar 14, 2021

This PR adds support for combined action and checkbox/switch items to the preferences branch. The combined items contain a toggleable switch and a clickable action, depending on the clicked part of the item. This is inspired by a preference found in some places in the Android settings app, for example:
obraz

The PR also enables toggling the switches by clicking anywhere on the item. It also refactors the XML layout code a bit and contains all changes up until the 3.1.2 tag.

Screenshot:

obraz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants