有没有人知道Material Design父件的内容是什么?例如,Seekbar的Material Design小部件父级是:
<style name="FooSeekbar" parent="android:Widget.Material.Light.SeekBar"></style>
答案 0 :(得分:0)
你应该包括appcompat v7库,这是你用来定义这样一个Switch的xml代码
<android.support.v7.widget.SwitchCompat
android:id="@+id/dev_switch_show_dev_only"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
我没有找到任何父名称,因此您可以使用android:style
将自定义样式添加到视图中