{
public class Program : NUIWidgetApplication
{
+ private static readonly string ResourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
+ private static readonly string HighlightFrame = ResourcePath + "/images/highlightFrame.9.png";
+
public Program(Dictionary<System.Type, string> widgetSet) : base(widgetSet)
{
{
base.OnCreate();
- // Update the accessibility highlight box
- // TODO : Need to consider whether using View properties or ImageView itself. (Especially, dotted line)
- View highlightBox = new View()\r
- {\r
- BackgroundColor = new Color("#FAFAFA"),\r
- Opacity = 0.1f,\r
- CornerRadius = 12.0f,\r
+ ImageView highlightBox = new ImageView(HighlightFrame)
+ {
+ WidthResizePolicy = ResizePolicyType.FillToParent,
+ HeightResizePolicy = ResizePolicyType.FillToParent,
+ AccessibilityHighlightable = false,
};
+
Accessibility.ClearCurrentlyHighlightedView();
Accessibility.SetHighlightFrameView(highlightBox);
}