I'm making a watch face for my android wear watch and in the config activity I want a switch. The switch looks like a usual android switch (picture 1) but I want it to look like the new switchs in android wear 2.0 (picture 2). How did google do them?
相关问题
- How to create Circular view on android wear?
- render Problem Path.op() not supported in latest m
- How to disable ripple effect on long press of a bu
- Elevation effect for ImageButton on Pre-Lollipop d
- Eye indicator overlaps Hint error icon in AutoComp
相关文章
- Why should I start using Google Material Design Li
- How i can set Half Expanded state for my BottomShe
- How to give fixed height to Angular Material Table
- What does TranslationZ actually do in Android?
- Android Manifest Merger fails after adding Depende
- NFC Android wear (Huawei watch 2.0)
- Can't change cursor and bubble color for Mater
- Android Recyclerview Multiple onclick items
The switch in picture 2 is a SwitchPreference which is (at least currently) only supported in a PreferenceFragment.
In the latest update we added a RoundSwitch style which should do exactly what you need.
See here: Support Library Wear R.style