using AView = Android.Views.View;
using LP = Android.Views.ViewGroup.LayoutParams;
using AImageButton = Android.Widget.ImageButton;
+using ASupportDrawable = Android.Support.V7.Graphics.Drawable;
namespace Xamarin.Forms.Platform.Android
{
_textBlock.Threshold = 1;
_textBlock.Adapter = new ShellSearchViewAdapter(SearchHandler, _shellContext);
_textBlock.ItemClick += OnTextBlockItemClicked;
- if (Forms.IsMarshmallowOrNewer)
- _textBlock.SetDropDownBackgroundDrawable(new ClipDrawableWrapper(_textBlock.DropDownBackground));
+ _textBlock.SetDropDownBackgroundDrawable(new ClipDrawableWrapper(_textBlock.DropDownBackground));
// A note on accessibility. The _textBlocks hint is what android defaults to reading in the screen
// reader. Therefore, we do not need to set something else.
}
}
- class ClipDrawableWrapper : DrawableWrapper
+ class ClipDrawableWrapper : ASupportDrawable.DrawableWrapper
{
public ClipDrawableWrapper(Drawable dr) : base(dr)
{