xamarin / AndroidSupportComponents

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

AppCompatSeekBar - settiing Enabled and Thumb in axml has no effect #118

Closed EnglishDave closed 5 years ago

EnglishDave commented 5 years ago

Xamarin.Android Version (eg: 6.0): 9.0.0.19

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

Support Libraries Version (eg: 23.3.0): Xamarin.Android.Support.Design 27.0.2.1

Describe your Issue: Setting Enabled or Thumb (drawable) in axml on AppCompatSeekBar has no effect. Setting these in code works.

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

Create project. Include Xamarin.Android.Support.Design 27.0.2.1 NuGet Create layout (axml) containing AppCompatSeekBar. Set Enabled to false in axml (e.g. android:Enabl;ed="false") Set thumb drawable to a drwabled in axml (e.g. android:thumb="@drawable/ic_menu_camera" Build and run SeekBar still enabled and still has default thumb.

In code, set the Enabled property to false; and set thumb drawable [e.g. SetThumb(ContextCompat.GetDrawable(Activity, Resource.Drawable.ic_menu_camera)); ] Build and run SeekBar still disabled and thumb changed.

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

newky2k commented 5 years ago

@EnglishDave could you please provide a sample that demonstrates the issue you are experiencing please.

Regards

Redth commented 5 years ago

No response received, unable to reproduce, closing issue. Please open a new issue if you have more information.