A reusable button control that implements the different visual states.
There are several different types of buttons that can be used. Changing the type changes the button's appearance, elevation, text color, background etc.
The client can also specify a Drawable if a button needs an additional drawable element.
Showing the badge on the top of the button's drawable is also possible. A typical use case could be: e.g. inform the user multiple events have happened.
All theme attributes used by this control are declared in
com.tomtom.tools.android.core.theme. To use this control, it is mandatory to define these attribute values.
The display context.
The attribute set provided in the layout XML file.