xamarin / AndroidSupportComponents

Xamarin bindings for Android Support libraries - For AndroidX see https://github.com/xamarin/AndroidX
MIT License
146 stars 56 forks source link

v7.AppCompat 23.3.0+ missing SwitchCompat Thumb/Track TintList properties #9

Closed tbaggett closed 8 years ago

tbaggett commented 8 years ago

Xamarin.Android Version (eg: 6.0):

Testing with Android APIs 16+

Operating System & Version (eg: Mac OSX 10.11):

Mac OSX 10.11.6

Support Libraries Version (eg: 23.3.0):

Needed in 23.3.0 for Xamarin.Forms project, but also tested 23.4.0.1

Describe your Issue:

According to the Android SwitchCompat docs, the SwitchCompat control should have ThumbTintList and TrackTintList properties (see the getThumbTintList, setThumbTintList, etc. method descriptions in the Android SwitchCompat docs). These properties aren't available in the Xamarin.Android.Support.v7.AppCompat package. Were they added in a later version of the Android v7.AppCompat library?

Steps to Reproduce (with link to sample solution if possible):

NA

Include any relevant Exception Stack traces, build logs, adb logs:

NA

tbaggett commented 8 years ago

Looks like I misunderstood the Android docs. I found the way to handle setting the ColorStateLists using the AppCompat library is to use the DrawableCompat static helper class.