Skip to content

Instantly share code, notes, and snippets.

@ricknout
Last active October 2, 2024 04:11
Show Gist options
  • Save ricknout/f924ad4aa2f485dd0d0af57e9febb647 to your computer and use it in GitHub Desktop.
Save ricknout/f924ad4aa2f485dd0d0af57e9febb647 to your computer and use it in GitHub Desktop.
AppCompat to MDC widget mapping table
AppCompat widget AppCompat default style AppCompat default style attr MDC-Android widget MDC-Android default style MDC-Android default style attr
AlertDialog.Builder AlertDialog.AppCompat
ThemeOverlay.AppCompat.Dialog.Alert
alertDialogStyle
alertDialogTheme
MaterialAlertDialogBuilder MaterialAlertDialog.MaterialComponents
ThemeOverlay.MaterialComponents.MaterialAlertDialog
alertDialogStyle
materialAlertDialogTheme
AppCompatAutoCompleteTextView Widget.AppCompat.AutoCompleteTextView autoCompleteTextViewStyle MaterialAutoCompleteTextView Widget.MaterialComponents.AutoCompleteTextView.*
ThemeOverlay.MaterialComponents.AutoCompleteTextView.*
autoCompleteTextViewStyle
AppCompatButton Widget.AppCompat.Button buttonStyle MaterialButton Widget.MaterialComponents.Button materialButtonStyle
AppCompatCheckBox Widget.AppCompat.CompoundButton.CheckBox checkboxStyle MaterialCheckbox Widget.MaterialComponents.CompoundButton.CheckBox checkboxStyle
AppCompatImageView N/A N/A ShapeableImageView Widget.MaterialComponents.ShapeableImageView N/A
AppCompatRadioButton Widget.AppCompat.CompoundButton.RadioButton radioButtonStyle MaterialRadioButton Widget.MaterialComponents.CompoundButton.RadioButton radioButtonStyle
AppCompatTextView Widget.AppCompat.TextView N/A MaterialTextView Widget.MaterialComponents.TextView N/A
CardView CardView cardViewStyle MaterialCardView Widget.MaterialComponents.CardView materialCardViewStyle
PopupMenu Widget.AppCompat.PopupMenu.* popupMenuStyle N/A Widget.MaterialComponents.PopupMenu.* popupMenuStyle
SwitchCompat Widget.AppCompat.CompoundButton.Switch switchStyle SwitchMaterial Widget.MaterialComponents.CompoundButton.Switch switchStyle
Toolbar Widget.AppCompat.Toolbar toolbarStyle MaterialToolbar Widget.MaterialComponents.Toolbar toolbarStyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment