daniel-stoneuk / material-about-library

Makes it easy to create beautiful about screens for your apps
Apache License 2.0
1.12k stars 140 forks source link

Add Action CheckBox and Switch items #112

Open kuba2k2 opened 3 years ago

kuba2k2 commented 3 years ago

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