{"id":4218,"date":"2020-06-25T22:49:19","date_gmt":"2020-06-25T12:49:19","guid":{"rendered":"https:\/\/learntodroid.com\/?p=4218"},"modified":"2020-08-14T16:17:40","modified_gmt":"2020-08-14T06:17:40","slug":"how-to-create-a-button-group-with-materialbuttontogglegroup","status":"publish","type":"post","link":"http:\/\/10.0.0.14:32769\/how-to-create-a-button-group-with-materialbuttontogglegroup\/","title":{"rendered":"How to Create a Button Group with MaterialButtonToggleGroup"},"content":{"rendered":"\n
The material design library for Android offers two components MaterialButtonToggleGroup and MaterialButton that can be used to create a group of buttons can toggled on or off while having only a single button being selected at any time.<\/p>\n\n\n\n
See an example of the MaterialButtonToggleGroup and MaterialButton widgets used below to select the period of data for stock prices to display in a chart in an Android app.<\/p>\n\n\n\n