Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Add CircularShell #226

Merged
merged 14 commits into from
Jan 29, 2020
Merged

Add CircularShell #226

merged 14 commits into from
Jan 29, 2020

Conversation

myroot
Copy link
Collaborator

@myroot myroot commented Jan 28, 2020

Description of Change

  • Add CircularShell, it is a Shell renderer for Circular form-factor device
    • Enhanced feature for Circular
      • Interact with bezel rotating
      • Lazy loading for ShellSection Items
      • Optimze for small screen size
    • Unsupported feature on Shell
      • Flyout Header
      • All about releated with ShellAppearance
      • NavigationBar (including Title / SearchHandler)
      • Top tab
      • Bottom tab

Bugs Fixed

  • None

API Changes

Added:

  • Add CircularShell

Create a CircularShell Application

  • Subclass the CircularShell class
AppShell.xaml
<?xml version="1.0" encoding="utf-8" ?>
<w:CircularShell xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:w="clr-namespace:Tizen.Wearable.CircularUI.Forms;assembly=Tizen.Wearable.CircularUI.Forms"
             x:Class="Example.AppShell">

</w:CircularShell>
AppShell.xaml.cs
using Xamarin.Forms;
using Tizen.Wearable.CircularUI.Forms;

namespace Example
{
    public partial class AppShell : CircularShell
    {
        public AppShell()
        {
            InitializeComponent();
        }
    }
}

Behavioral Changes

  • ShellFlyout
    ->

  • Top tabs
    ->


  • CircularShell provide flyout navigation menu, it slideup from bottom
    flyout-open-close

  • Navigating with flyout navigation menu
    flyout-navigation

  • When content was touched, flyout navigation bar was automatically hide
    flyout-auto-hide

  • App developer can disable flyout navigation bar with FlyoutBehavior property
    flyout-enable-disable

  • App developer can change flyout navigation bar icon with FlyoutIcon property
    flyout-icon-change

  • Flyout navigation menu can close with back button and swipe down gesture
    flyout-close-with-back

myroot and others added 13 commits December 20, 2019 14:42
* Fix Icon minimumsize of NavigationView

* Update test apps
* Add NavigationDrawer

* Separate NaivgationDrawer from ShellRenderer

* Update NavigationDrawer

* Add NavigationDrawer.IconHeight

* Update NavigationDrawer and ShellRenderer

* Fix NavigationDrawer disappearing issue

* Update NavigationDrawer to have shell item content
@rookiejava rookiejava added the enhancement New feature or request label Jan 28, 2020
@rookiejava rookiejava self-assigned this Jan 28, 2020
using XForms = Xamarin.Forms.Forms;
using XShell = Xamarin.Forms.Shell;

[assembly: ExportRenderer(typeof(Tizen.Wearable.CircularUI.Forms.CircularShell), typeof(Tizen.Wearable.CircularUI.Forms.Renderer.ShellRenderer))]
Copy link
Collaborator Author

@myroot myroot Jan 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[assembly: ExportRenderer(typeof(Tizen.Wearable.CircularUI.Forms.CircularShell), typeof(Tizen.Wearable.CircularUI.Forms.Renderer.ShellRenderer))]
[assembly: ExportRenderer(typeof(XShell), typeof(Tizen.Wearable.CircularUI.Forms.Renderer.ShellRenderer))]

@rookiejava
Copy link
Contributor

  • TO DO
    • Flyout background color and text color (tizen specific)
    • Visual of flyout icon area (background area or only display icon)
    • Adding ui test (WearableUIGallery)

@shyunMin As we discussed yesterday, please let me know if both Shell and CircularShell are working properly.

@shyunMin
Copy link
Collaborator

@rookiejava I've checked latest codes Shell and CircularShell work well.

@rookiejava rookiejava merged commit f6c2fa3 into master Jan 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants