I have a preference screen that, when a setting is enabled, has several strings that must be a particular length (# of characters). Also all of the strings are required. Ideally when the user has enabled this setting they should not be able to apply the changes until all strings are filed in with the appropriate length. Note that I'm not talking about a max length, but an exact character count.
How can I enforce those rules on the user? Is there a way to do this through the built-in preference controls or do I have to build a custom fragment?