In order to resolve old type switch
switch_old
- update your minsdkversion and targetsdkversion to 19 and 28 respectively.
- update gradle dependency to
implementation 'com.android.support:appcompat-v7:28.0.0'
- set base app theme in style.xml like
`
`
and it resolve switch with latest material design.