根据the documentation,AppCompatToggleButton存在。我需要使用这个小部件,但它在此包中不存在:
implementation 'androidx.appcompat:appcompat:1.0.2'
我找到了。它在1.1.0-alpha02中
implementation 'androidx.appcompat:appcompat:1.1.0-alpha02'