format_align_left format_align_center format_align_right format_align_justify

Buttons communicate the action that will occur when the user touches them.

Toggle buttons may be used to group related options. Arrange layout and spacing to convey that certain toggle buttons are part of a group.

Focus and pressed states may reinforce that toggles are part of a group. For example, when one button segment is focused, focus may be displayed simultaneously on the rest of the segment.

Button Toggle Example

In the next example we will show you how to create a toggle and get it's value.