AndroidFocusChange.cs 449 Bytes
Newer Older
Poli97's avatar
Poli97 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
using System;
using Android.Views.Accessibility;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
using XAMARINChangeFocus.Droid;

[assembly: Dependency(typeof(AndroidFocusChange))]
namespace XAMARINChangeFocus.Droid
{
    public class AndroidFocusChange : IChangeFocusService
    {

        public void ChangeFocus(View v)
        {
            v.GetRenderer().View.SendAccessibilityEvent(EventTypes.ViewHoverEnter);
        }
    }
}