Commit 3408018e authored by Mattia's avatar Mattia

update

parent 30e11389
<Properties StartupConfiguration="{0E082BA3-B87F-40B4-9700-878BE1A55954}|Default"> <Properties StartupConfiguration="{1EE7473C-9A98-44EF-8124-C4D1E0E468F8}|Default">
<MonoDevelop.Ide.Workbench ActiveDocument="SampleApp.iOS/iOSFocusEvents.cs"> <MonoDevelop.Ide.Workbench ActiveDocument="SampleApp/ViewModels/ListPageViewModel.cs">
<Files> <Files>
<File FileName="SampleApp.iOS/iOSHasFocus.cs" /> <File FileName="SampleApp/ViewModels/ListPageViewModel.cs" Line="21" Column="56" />
<File FileName="SampleApp.Android/AndroidHasFocus.cs" /> <File FileName="SampleApp/Views/MainPage.xaml.cs" Line="1" Column="1" />
<File FileName="SampleApp.Android/AndroidScreenReaderEnabled.cs" /> <File FileName="SampleApp/Views/MainPage.xaml" Line="22" Column="32" />
<File FileName="SampleApp.iOS/iOSFocusEvents.cs" Line="3" Column="21" />
<File FileName="SampleApp.Android/AndroidFocusEvents.cs" Line="6" Column="32" />
<File FileName="SampleApp/Views/Functionality4.xaml.cs" Line="6" Column="21" />
<File FileName="SampleApp/CustomRenderers/FocusEvents.cs" Line="4" Column="36" />
</Files> </Files>
<Pads> <Pads>
<Pad Id="ProjectPad"> <Pad Id="ProjectPad">
<State name="__root__"> <State name="__root__">
<Node name="SampleApp" expanded="True" selected="True">
<Node name="SampleApp" expanded="True"> <Node name="SampleApp" expanded="True">
<Node name="CustomRenderers" expanded="True" /> <Node name="SampleApp" expanded="True">
<Node name="DependencyServices" expanded="True" /> <Node name="Models" expanded="True" />
<Node name="ViewModels" expanded="True">
<Node name="ListPageViewModel.cs" selected="True" />
</Node>
<Node name="Views" expanded="True"> <Node name="Views" expanded="True">
<Node name="Functionality4.xaml" expanded="True" /> <Node name="MainPage.xaml" expanded="True" />
</Node> </Node>
</Node> </Node>
<Node name="SampleApp.Android" expanded="True" />
<Node name="SampleApp.iOS" expanded="True" />
</Node> </Node>
</State> </State>
</Pad> </Pad>
</Pads> </Pads>
</MonoDevelop.Ide.Workbench> </MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.ItemProperties.SampleApp.Android AndroidDesignerPreferredTheme="Theme.AppCompat.Light.NoActionBar" PreferredExecutionTarget="Android.pixel_2_pie_9_0_-_api_28" /> <MonoDevelop.Ide.ItemProperties.SampleApp.Android AndroidDesignerPreferredTheme="Theme.AppCompat.Light.NoActionBar" PreferredExecutionTarget="Android.pixel_2_q_10_0_-_api_29" />
<MonoDevelop.Ide.ItemProperties.SampleApp.iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.d0d4bfac7e5fd6f1456633ef7d45122e2fa38791" /> <MonoDevelop.Ide.ItemProperties.SampleApp.iOS automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.d0d4bfac7e5fd6f1456633ef7d45122e2fa38791" />
<MonoDevelop.Ide.DebuggingService.PinnedWatches /> <MonoDevelop.Ide.DebuggingService.PinnedWatches />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" /> <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" />
<MonoDevelop.Ide.DebuggingService.Breakpoints> <MonoDevelop.Ide.DebuggingService.Breakpoints>
......
...@@ -3,11 +3,11 @@ using Android.Content; ...@@ -3,11 +3,11 @@ using Android.Content;
using Android.Service.Autofill; using Android.Service.Autofill;
using Android.Views.Accessibility; using Android.Views.Accessibility;
using CustomViewAccessibility.Droid; using CustomViewAccessibility.Droid;
using SampleApp.CustomRenderers; using SampleApp.DependencyServices;
using Xamarin.Forms; using Xamarin.Forms;
using Xamarin.Forms.Platform.Android; using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(FocusEvents), typeof(AndroidFocusEvents))] [assembly: ExportRenderer(typeof(IFocusEvents), typeof(AndroidFocusEvents))]
namespace CustomViewAccessibility.Droid namespace CustomViewAccessibility.Droid
{ {
public class AndroidFocusEvents : ImageRenderer public class AndroidFocusEvents : ImageRenderer
......
using System; using System;
using SampleApp.CustomRenderers; using SampleApp.DependencyServices;
using Xamarin.Forms; using Xamarin.Forms;
using SampleApp.iOS; using SampleApp.iOS;
using Xamarin.Forms.Platform.iOS; using Xamarin.Forms.Platform.iOS;
[assembly: ExportRenderer(typeof(FocusEvents), typeof(iOSFocusEvents))] [assembly: ExportRenderer(typeof(IFocusEvents), typeof(iOSFocusEvents))]
namespace SampleApp.iOS namespace SampleApp.iOS
{ {
public class iOSFocusEvents : ImageRenderer public class iOSFocusEvents : ImageRenderer
......
using System; using System;
using Xamarin.Forms; using Xamarin.Forms;
namespace SampleApp.CustomRenderers namespace SampleApp.DependencyServices
{ {
public class FocusEvents : Image public class IFocusEvents : Image
{ {
public FocusEvents() public IFocusEvents()
{ {
} }
......
...@@ -32,19 +32,19 @@ namespace SampleApp.ViewModels ...@@ -32,19 +32,19 @@ namespace SampleApp.ViewModels
{ {
Name = "3", Name = "3",
Description = "Assign the accessibility focus to a view", Description = "Assign the accessibility focus to a view",
Availability = "Not available on XAMARIN", Availability = "Indirect implementation",
}); });
accessibilityFocus.Add(new APIFunctionality accessibilityFocus.Add(new APIFunctionality
{ {
Name = "4", Name = "4",
Description = "Specify actions associated to accessibility focus-related events (e.g., a view acquires or loses the focus)", Description = "Specify actions associated to accessibility focus-related events (e.g., a view acquires or loses the focus)",
Availability = "Not available on XAMARIN", Availability = "Indirect implementation",
}); });
accessibilityFocus.Add(new APIFunctionality accessibilityFocus.Add(new APIFunctionality
{ {
Name = "5", Name = "5",
Description = "Determine whether a view has the accessibility focus or which view has the accessibility focus", Description = "Determine whether a view has the accessibility focus or which view has the accessibility focus",
Availability = "Not available on XAMARIN", Availability = "Indirect implementation",
}); });
TextToAnnounce.Add(new APIFunctionality TextToAnnounce.Add(new APIFunctionality
{ {
...@@ -61,7 +61,7 @@ namespace SampleApp.ViewModels ...@@ -61,7 +61,7 @@ namespace SampleApp.ViewModels
{ {
Name = "8", Name = "8",
Description = "Use one view to describe another one", Description = "Use one view to describe another one",
Availability = "Not available on iOS", Availability = "Semi-direct implementation on iOS",
}); });
TextToAnnounce.Add(new APIFunctionality TextToAnnounce.Add(new APIFunctionality
{ {
...@@ -119,7 +119,7 @@ namespace SampleApp.ViewModels ...@@ -119,7 +119,7 @@ namespace SampleApp.ViewModels
{ {
Name = "18", Name = "18",
Description = "Aggregate multiple views into a single accessible element", Description = "Aggregate multiple views into a single accessible element",
Availability = "Not available on iOS", Availability = "Semi-direct implementation on iOS",
}); });
accessibilityTree.Add(new APIFunctionality accessibilityTree.Add(new APIFunctionality
{ {
...@@ -137,7 +137,7 @@ namespace SampleApp.ViewModels ...@@ -137,7 +137,7 @@ namespace SampleApp.ViewModels
{ {
Name = "21", Name = "21",
Description = "Detect whether screen-reader is active", Description = "Detect whether screen-reader is active",
Availability = "Not available on XAMARIN", Availability = "Indirect implementation",
}); });
miscellanous.Add(new APIFunctionality miscellanous.Add(new APIFunctionality
{ {
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality10"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality10">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 10"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality11"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality11">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 11"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality12"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality12">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 12"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality13"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality13">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 13"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality15"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality15">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 15"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality16"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality16">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 16"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality19"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality19">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 19"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality20"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality20">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 20"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality22"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality22">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 22"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality23"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality23">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 23"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality24"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality24">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 24"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Reflection; using System.Reflection;
using SampleApp.CustomRenderers; using SampleApp.DependencyServices;
using Xamarin.Forms; using Xamarin.Forms;
...@@ -20,7 +20,7 @@ namespace SampleApp.Views ...@@ -20,7 +20,7 @@ namespace SampleApp.Views
public Functionality4() public Functionality4()
{ {
InitializeComponent(); InitializeComponent();
FocusEvents BellImage = new FocusEvents IFocusEvents BellImage = new IFocusEvents
{ {
Source = ImageSource.FromResource("SampleApp.images.bell.png", typeof(Functionality4).GetTypeInfo().Assembly) Source = ImageSource.FromResource("SampleApp.images.bell.png", typeof(Functionality4).GetTypeInfo().Assembly)
}; };
......
...@@ -10,6 +10,7 @@ namespace SampleApp.Views ...@@ -10,6 +10,7 @@ namespace SampleApp.Views
public Functionality8() public Functionality8()
{ {
InitializeComponent(); InitializeComponent();
AutomationProperties.SetIsInAccessibleTree(label, true);
AutomationProperties.SetIsInAccessibleTree(entry, true); AutomationProperties.SetIsInAccessibleTree(entry, true);
// this only works on Android // this only works on Android
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality9"> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SampleApp.Views.Functionality9">
<ContentPage.Content> <ContentPage.Content>
<Label Text="PROVA 9"></Label> <Label Text="Not available on XAMARIN"></Label>
</ContentPage.Content> </ContentPage.Content>
</ContentPage> </ContentPage>
...@@ -10,9 +10,29 @@ ...@@ -10,9 +10,29 @@
> >
<ListView.ItemTemplate> <ListView.ItemTemplate>
<DataTemplate> <DataTemplate>
<TextCell Text="{Binding Description}" Detail="{Binding Availability}" x:Name="CellText"></TextCell>
<ViewCell>
<StackLayout BackgroundColor="#fff" Orientation="Vertical" Padding="10, 0, 0, 0">
<StackLayout Orientation="Vertical" VerticalOptions="CenterAndExpand">
<Label Text="{Binding Description}" TextColor="Black" FontSize="Default"/>
<Label Text="{Binding Availability}" HorizontalOptions="FillAndExpand" TextColor="#999" FontSize="Micro"/>
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate> </DataTemplate>
</ListView.ItemTemplate> </ListView.ItemTemplate>
<ListView.GroupHeaderTemplate>
<DataTemplate>
<ViewCell>
<StackLayout BackgroundColor="#eee" Orientation="Vertical" Padding="10, 0, 0, 0">
<StackLayout VerticalOptions="CenterAndExpand">
<Label Text="{Binding LongName}" TextColor="#333" FontSize="Medium"/>
</StackLayout>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.GroupHeaderTemplate>
</ListView> </ListView>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment