-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reseting thumb image #26085
base: main
Are you sure you want to change the base?
Reseting thumb image #26085
Conversation
Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
@@ -63,6 +62,11 @@ public static async Task UpdateThumbImageSourceAsync(this SeekBar seekBar, ISlid | |||
if (seekBar.IsAlive() && thumbDrawable != null) | |||
seekBar.SetThumb(thumbDrawable); | |||
} | |||
else if (slider.Handler is SliderHandler sliderHandler) | |||
{ | |||
seekBar.SetThumb(sliderHandler.defaultThumbDrawable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we load the default thumb drawable from the android resources? I'm sure the default drawable here can probably get pulled from the android resources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I was initially trying with this: `seekBar.SetThumb(context.GetDrawable(Resource.Drawable.abc_seekbar_thumb_material)), but I couldn't make it revert back to a default color, but I figured it out
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
App.WaitForElement("ChangeThumbImageSourceButton"); | ||
App.Click("ChangeThumbImageSourceButton"); | ||
App.Click("ResetThumbImageSourceButton"); | ||
VerifyScreenshot(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issues Fixed
Fixes #25939
Screen.Recording.2024-11-24.at.14.41.33.mov
Screen.Recording.2024-11-24.at.14.33.32.mov