Example #1
0
        public void Activate()
        {
            Window.Instance.BackgroundColor = Color.White;
            root            = new SampleLayout(false);
            root.HeaderText = "Pagination";

            ///////////////////////////////////////////////Create by Style//////////////////////////////////////////////////////////
            DAPagination1                 = new Tizen.FH.NUI.Controls.Pagination("DefaultPagination");
            DAPagination1.Name            = "DAAppPagination1";
            DAPagination1.Position2D      = new Position2D(200, 50);
            DAPagination1.Size2D          = new Size2D(400, 30);
            DAPagination1.BackgroundColor = new Color(1.0f, 1.0f, 1.0f, 0.6f);
            DAPagination1.IndicatorCount  = PAGE_COUNT;
            DAPagination1.SelectedIndex   = 0;
            DAPagination1.Focusable       = true;
            root.Add(DAPagination1);

            DAPagination1.SelectChangeEvent += DAPagination_SelectChangeEvent;

            DAPagination2                 = new Controls.Pagination("DefaultPagination");
            DAPagination2.Name            = "DAAppPagination2";
            DAPagination2.Position2D      = new Position2D(200, 150);
            DAPagination2.Size2D          = new Size2D(230, 30);
            DAPagination2.BackgroundColor = new Color(1.0f, 1.0f, 1.0f, 0.6f);
            DAPagination2.IndicatorCount  = PAGE_COUNT;
            DAPagination2.SelectedIndex   = 1;
            DAPagination2.Focusable       = true;
            root.Add(DAPagination2);

            DAPagination2.SelectChangeEvent += DAPagination_SelectChangeEvent;


            ///////////////////////////////////////////////Create by Properties//////////////////////////////////////////////////////////
            DAPagination3                        = new Tizen.FH.NUI.Controls.Pagination();
            DAPagination3.Name                   = "DAAppPagination3";
            DAPagination3.Position2D             = new Position2D(200, 250);
            DAPagination3.Size2D                 = new Size2D(400, 30);
            DAPagination3.BackgroundColor        = new Color(1.0f, 1.0f, 1.0f, 0.6f);
            DAPagination3.IndicatorSize          = new Size2D(26, 26);
            DAPagination3.IndicatorBackgroundURL = CommonResource.GetResourcePath() + "9. Controller/pagination_ic_nor.png";
            DAPagination3.IndicatorSelectURL     = CommonResource.GetResourcePath() + "9. Controller/pagination_ic_sel.png";
            DAPagination3.IndicatorSpacing       = 8;
            DAPagination3.ReturnArrowURLs        = new Tizen.NUI.CommonUI.StringSelector
            {
                All = CommonResource.GetResourcePath() + "9. Controller/pagination_ic_return.png"
            };
            DAPagination3.ReturnArrowSize = new Size2D(26, 26);
            DAPagination3.NextArrowURLs   = new Tizen.NUI.CommonUI.StringSelector
            {
                All = CommonResource.GetResourcePath() + "9. Controller/pagination_ic_next.png"
            };
            DAPagination3.NextArrowSize  = new Size2D(26, 26);
            DAPagination3.IndicatorCount = PAGE_COUNT;
            DAPagination3.SelectedIndex  = 0;
            DAPagination3.Focusable      = true;
            root.Add(DAPagination3);

            DAPagination3.SelectChangeEvent += DAPagination_SelectChangeEvent;
        }
Example #2
0
        public void Activate()
        {
            Window.Instance.BackgroundColor = Color.White;
            root            = new SampleLayout(false);
            root.HeaderText = "Toast";

            CreateBoardAndButtons();

            toast1_1            = new FH.NUI.Controls.Toast("BasicShortToast");
            toast1_1.Position2D = new Position2D(30, 0);
            root.Add(toast1_1);
            toast1_1.TextArray = new string[1] {
                "Basic Short Toast"
            };


            toast2_1            = new FH.NUI.Controls.Toast("BasicLongToast");
            toast2_1.Position2D = new Position2D(30, 200);
            root.Add(toast2_1);
            toast2_1.TextArray = new string[1] {
                "Long Toast, I can have a loading, I have a very long long long text, I have a very long long"
            };
            toast2_1.LoadingEnable = true;
            //toast2_1.TextPaddingLeft = 204;

            toast2_3                       = new Tizen.FH.NUI.Controls.Toast();
            toast2_3.PointSize             = 14;
            toast2_3.BackgroundImageURL    = CommonResource.GetResourcePath() + "12. Toast Popup/toast_background.png";
            toast2_3.BackgroundImageBorder = new Rectangle(64, 64, 4, 4);
            toast2_3.Position2D            = new Position2D(30, 350);
            toast2_3.Size2D                = new Size2D(1000, 272);
            toast2_3.TextPaddingLeft       = 96;
            toast2_3.TextPaddingTop        = 48;
            toast2_3.TextArray             = new string[3] {
                "I have a very long long text, I have a very long long text, I have a very long long text",
                "This is my 2 line, I have a very long long text, I have a very long long text",
                "This is my 3 line, I have a very long long text, I have a very long long text"
            };
            root.Add(toast2_3);

            board.UpFocusableView = button1;

            FocusManager.Instance.SetCurrentFocusView(button1);
        }
Example #3
0
        public void Activate()
        {
            Window.Instance.BackgroundColor = Color.White;
            Window window = Window.Instance;

            root            = new SampleLayout(false);
            root.HeaderText = "Loading";

            CreateBoardAndButtons();
            string[] imageArray = new string[36];
            for (int i = 0; i < 36; i++)
            {
                if (i < 10)
                {
                    imageArray[i] = CommonResource.GetResourcePath() + "9. Controller/Loading Sequence_Native/loading_0" + i + ".png";
                }
                else
                {
                    imageArray[i] = CommonResource.GetResourcePath() + "9. Controller/Loading Sequence_Native/loading_" + i + ".png";
                }
            }

            loading1_1            = new Tizen.NUI.CommonUI.Loading("DefaultLoading");
            loading1_1.Position2D = new Position2D(100, 350);
            loading1_1.Size2D     = new Size2D(100, 100);

            root.Add(loading1_1);

            LoadingAttributes attr = new LoadingAttributes
            {
                ImageArray = imageArray,
            };

            loading2_1            = new Tizen.NUI.CommonUI.Loading(attr);
            loading2_1.Position2D = new Position2D(500, 350);
            loading2_1.Size2D     = new Size2D(100, 100);
            root.Add(loading2_1);

            board.UpFocusableView = button1;

            window.Add(root);

            FocusManager.Instance.SetCurrentFocusView(button1);
        }
Example #4
0
        public void Activate()
        {
            Window.Instance.BackgroundColor = Color.White;
            root            = new SampleLayout();
            root.HeaderText = "Navigation";

            text            = new TextLabel();
            text.PointSize  = 14;
            text.Text       = "Create Navigation by style";
            text.Size2D     = new Size2D(480, 100);
            text.Position2D = new Position2D(300, 10);
            text.MultiLine  = true;
            root.Add(text);

            ////////white navigation//////////
            #region WhiteNaviagtion
            whiteNavigation            = new Controls.Navigation("Back");
            whiteNavigation.Position2D = new Position2D(100, 150);

            root.Add(whiteNavigation);

            Controls.Navigation.NavigationItemData backItem = new Controls.Navigation.NavigationItemData("WhiteBackItem");
            whiteNavigation.AddItem(backItem);
            #endregion

            ////////black navigation//////////
            #region BlackNavigation
            blackNavigation            = new Controls.Navigation("Back");
            blackNavigation.Position2D = new Position2D(300, 150);

            root.Add(blackNavigation);

            Controls.Navigation.NavigationItemData blackBackItem = new Controls.Navigation.NavigationItemData("BlackBackItem");
            blackNavigation.AddItem(blackBackItem);
            #endregion

            //////condition navigation//////////
            #region WhiteConditionNavigation
            conditionNavigation                   = new Controls.Navigation("WhiteCondition");
            conditionNavigation.Position2D        = new Position2D(100, 400);
            conditionNavigation.ItemChangedEvent += NavigationItemChangedEvent;
            root.Add(conditionNavigation);

            for (int i = 0; i < 3; i++)
            {
                Controls.Navigation.NavigationItemData conditionItem = new Controls.Navigation.NavigationItemData("WhiteConditionItem");
                conditionItem.Size2D          = new Size2D(116, 128);
                conditionItem.Text            = "Text " + i;
                conditionItem.SubText         = "SubText " + i;
                conditionItem.IconURLSelector = new StringSelector
                {
                    Pressed          = itemPressImage[i],
                    Disabled         = itemDimImage[i],
                    DisabledFocused  = itemDimImage[i],
                    DisabledSelected = itemDimImage[i],
                    Other            = itemNormalImage[i]
                };
                conditionNavigation.AddItem(conditionItem);
            }
            #endregion

            //////black condition navigation//////////
            #region BlackConditionNavigation
            blackConditionNavigation                   = new Controls.Navigation("BlackCondition");
            blackConditionNavigation.Position2D        = new Position2D(300, 400);
            blackConditionNavigation.ItemChangedEvent += NavigationItemChangedEvent;
            root.Add(blackConditionNavigation);

            for (int i = 0; i < 3; i++)
            {
                Controls.Navigation.NavigationItemData conditionItem = new Controls.Navigation.NavigationItemData("BlackConditionItem");
                conditionItem.Size2D          = new Size2D(116, 128);
                conditionItem.Text            = "Text " + i;
                conditionItem.SubText         = "SubText " + i;
                conditionItem.IconURLSelector = new StringSelector
                {
                    Pressed          = itemBlackPressImage[i],
                    Disabled         = itemBlackDimImage[i],
                    DisabledFocused  = itemBlackDimImage[i],
                    DisabledSelected = itemBlackDimImage[i],
                    Other            = itemBlackNormalImage[i]
                };
                blackConditionNavigation.AddItem(conditionItem);
            }
            #endregion

            //////////White Edit Mode///////////////
            #region WhiteEditModeNavigation
            whiteEditNavigation                   = new Controls.Navigation("WhiteEditMode");
            whiteEditNavigation.Size2D            = new Size2D(178, 800);
            whiteEditNavigation.Position2D        = new Position2D(500, 150);
            whiteEditNavigation.ItemChangedEvent += NavigationItemChangedEvent;
            root.Add(whiteEditNavigation);

            Controls.Navigation.NavigationItemData firstEditItem = new Controls.Navigation.NavigationItemData("WhiteEditModeFirstItem");
            firstEditItem.Size2D  = new Size2D(178, 184);
            firstEditItem.Text    = "1";
            firstEditItem.SubText = "SELECTED";
            whiteEditNavigation.AddItem(firstEditItem);

            for (int i = 0; i < 2; i++)
            {
                Controls.Navigation.NavigationItemData editItem = new Controls.Navigation.NavigationItemData("WhiteEditModeItem");
                editItem.Size2D          = new Size2D(178, 108);
                editItem.Text            = "Text " + i;
                editItem.IconURLSelector = new StringSelector
                {
                    Pressed          = itemPressImage[i],
                    Disabled         = itemDimImage[i],
                    DisabledFocused  = itemDimImage[i],
                    DisabledSelected = itemDimImage[i],
                    Other            = itemNormalImage[i]
                };
                whiteEditNavigation.AddItem(editItem);
            }
            Controls.Navigation.NavigationItemData editLastItem = new Controls.Navigation.NavigationItemData("WhiteEditModeLastItem");
            editLastItem.Size2D          = new Size2D(178, 166);
            editLastItem.Text            = "Cancel";
            editLastItem.IconURLSelector = new StringSelector
            {
                Pressed          = CommonResource.GetResourcePath() + "2. Side Navigation/sidenavi_btn_cancel_press.png",
                Disabled         = CommonResource.GetResourcePath() + "2. Side Navigation/sidenavi_btn_cancel_dim.png",
                DisabledFocused  = CommonResource.GetResourcePath() + "2. Side Navigation/sidenavi_btn_cancel_dim.png",
                DisabledSelected = CommonResource.GetResourcePath() + "2. Side Navigation/sidenavi_btn_cancel_dim.png",
                Other            = CommonResource.GetResourcePath() + "2. Side Navigation/sidenavi_btn_cancel.png"
            };
            whiteEditNavigation.AddItem(editLastItem);
            #endregion

            //////////Black Edit Mode///////////////
            #region BlackEditModeNavigation
            blackEditNavigation                   = new Controls.Navigation("BlackEditMode");
            blackEditNavigation.Size2D            = new Size2D(178, 800);
            blackEditNavigation.Position2D        = new Position2D(700, 150);
            blackEditNavigation.ItemChangedEvent += NavigationItemChangedEvent;
            root.Add(blackEditNavigation);

            Controls.Navigation.NavigationItemData firstEditItem2 = new Tizen.FH.NUI.Controls.Navigation.NavigationItemData("BlackEditModeFirstItem");
            firstEditItem2.Size2D  = new Size2D(178, 184);
            firstEditItem2.Text    = "1";
            firstEditItem2.SubText = "SELECTED";
            blackEditNavigation.AddItem(firstEditItem2);

            for (int i = 0; i < 2; i++)
            {
                Controls.Navigation.NavigationItemData editItem = new Tizen.FH.NUI.Controls.Navigation.NavigationItemData("BlackEditModeItem");
                editItem.Size2D          = new Size2D(178, 108);
                editItem.Text            = "Text " + i;
                editItem.IconURLSelector = new StringSelector
                {
                    Pressed          = itemBlackPressImage[i],
                    Disabled         = itemBlackDimImage[i],
                    DisabledFocused  = itemBlackDimImage[i],
                    DisabledSelected = itemBlackDimImage[i],
                    Other            = itemBlackNormalImage[i]
                };
                blackEditNavigation.AddItem(editItem);
            }
            Controls.Navigation.NavigationItemData editLastItem2 = new Tizen.FH.NUI.Controls.Navigation.NavigationItemData("BlackEditModeLastItem");
            editLastItem2.Size2D          = new Size2D(178, 166);
            editLastItem2.Text            = "Cancel";
            editLastItem2.IconURLSelector = new StringSelector
            {
                Pressed          = CommonResource.GetResourcePath() + "2. Side Navigation/[Black ver.]/sidenavi_btn_cancel_b_press.png",
                Disabled         = CommonResource.GetResourcePath() + "2. Side Navigation/[Black ver.]/sidenavi_btn_cancel_b_dim.png",
                DisabledFocused  = CommonResource.GetResourcePath() + "2. Side Navigation/[Black ver.]/sidenavi_btn_cancel_b_dim.png",
                DisabledSelected = CommonResource.GetResourcePath() + "2. Side Navigation/[Black ver.]/sidenavi_btn_cancel_b_dim.png",
                Other            = CommonResource.GetResourcePath() + "2. Side Navigation/[Black ver.]/sidenavi_btn_cancel_b.png"
            };
            blackEditNavigation.AddItem(editLastItem2);
            #endregion
        }
Example #5
0
        public SampleLayout(bool isThemeButtonVisiable = true)
        {
            Size2D = new Size2D(Window.Instance.Size.Width, Window.Instance.Size.Height);
            //Window.Instance.Add(this);
            LayoutHeader = new Tizen.FH.NUI.Controls.Header("DefaultHeader");
            LayoutHeader.PositionY = 0;

            LayoutContent = new View
            {
                Size2D = new Size2D(Window.Instance.Size.Width, Window.Instance.Size.Height - 128),
                Position2D = new Position2D(0, 128),
            };

            Content = new View
            {
                Size2D = new Size2D(Window.Instance.Size.Width, Window.Instance.Size.Height - 128 - 150),
                Position2D = new Position2D(0, 150),
            };
            LayoutContent.Add(Content);

            if (isThemeButtonVisiable)
            {
                ButtonAttributes buttonAttributes = new ButtonAttributes
                {
                    IsSelectable = true,
                    BackgroundImageAttributes = new ImageAttributes
                    {
                        ResourceURL = new StringSelector { All = CommonResource.GetResourcePath() + "3. Button/rectangle_point_btn_normal.png" },
                        Border = new RectangleSelector { All = new Rectangle(5, 5, 5, 5) }
                    },

                    ShadowImageAttributes = new ImageAttributes
                    {
                        ResourceURL = new StringSelector { All = CommonResource.GetResourcePath() + "3. Button/rectangle_btn_shadow.png" },
                        Border = new RectangleSelector { All = new Rectangle(5, 5, 5, 5) }
                    },

                    OverlayImageAttributes = new ImageAttributes
                    {
                        ResourceURL = new StringSelector { Pressed = CommonResource.GetResourcePath() + "3. Button/rectangle_btn_press_overlay.png", Other = "" },
                        Border = new RectangleSelector { All = new Rectangle(5, 5, 5, 5) },
                    },

                    TextAttributes = new TextAttributes
                    {
                        PointSize = new FloatSelector { All = 30 },
                        HorizontalAlignment = HorizontalAlignment.Center,
                        VerticalAlignment = VerticalAlignment.Center,
                        WidthResizePolicy = ResizePolicyType.FillToParent,
                        HeightResizePolicy = ResizePolicyType.FillToParent,

                        TextColor = new ColorSelector
                        {
                            All = new Color(0, 0, 0, 1),
                        },
                    }
                };

                UtilityButton = new Tizen.NUI.CommonUI.Button(buttonAttributes);
                UtilityButton.Size2D = new Size2D(200, 80);
                UtilityButton.Position2D = new Position2D(56, 32);
                UtilityButton.Text = "Utility";
                UtilityButton.ClickEvent += UtilityButton_ClickEvent;
                LayoutContent.Add(UtilityButton);

                buttonAttributes.BackgroundImageAttributes.ResourceURL.All = CommonResource.GetResourcePath() + "3. Button/[Button] App Primary Color/rectangle_point_btn_normal_ec7510.png";
                FoodButton = new Tizen.NUI.CommonUI.Button(buttonAttributes);
                FoodButton.Size2D = new Size2D(200, 80);
                FoodButton.Position2D = new Position2D(312, 32);
                FoodButton.Text = "Food";
                FoodButton.ClickEvent += FoodButton_ClickEvent;
                LayoutContent.Add(FoodButton);

                buttonAttributes.BackgroundImageAttributes.ResourceURL.All = CommonResource.GetResourcePath() + "3. Button/[Button] App Primary Color/rectangle_point_btn_normal_24c447.png";
                FamilyButton = new Tizen.NUI.CommonUI.Button(buttonAttributes);
                FamilyButton.Size2D = new Size2D(200, 80);
                FamilyButton.Position2D = new Position2D(578, 32);
                FamilyButton.Text = "Family";
                FamilyButton.ClickEvent += FamilyButton_ClickEvent;
                LayoutContent.Add(FamilyButton);

                buttonAttributes.BackgroundImageAttributes.ResourceURL.All = CommonResource.GetResourcePath() + "3. Button/[Button] App Primary Color/rectangle_point_btn_normal_9762d9.png";
                KitchenButton = new Tizen.NUI.CommonUI.Button(buttonAttributes);
                KitchenButton.Size2D = new Size2D(200, 80);
                KitchenButton.Position2D = new Position2D(834, 32);
                KitchenButton.Text = "Kitchen";
                KitchenButton.ClickEvent += KitchenButton_ClickEvent;
                LayoutContent.Add(KitchenButton);
            }

            this.isThemeButtonVisible = isThemeButtonVisiable;
            Window.Instance.Add(LayoutHeader);
            Window.Instance.Add(LayoutContent);

            //SampleMain.SampleNaviFrame.NaviFrameItemPush(LayoutHeader, LayoutContent);

            //this.ResourceUrl = CommonResource.GetResourcePath() + "0. BG/background_default_overlay.png";
        }
Example #6
0
        public void Activate()
        {
            Window.Instance.BackgroundColor = Color.White;
            root            = new SampleLayout();
            root.HeaderText = "DropDown";

            text                     = new TextLabel();
            text.Text                = "DropDown Clicked item string is ";
            text.PointSize           = 14;
            text.Size2D              = new Size2D(880, 50);
            text.Position2D          = new Position2D(100, 10);
            text.HorizontalAlignment = HorizontalAlignment.Center;
            text.MultiLine           = true;
            root.Add(text);

            dropDown                 = new Tizen.NUI.CommonUI.DropDown("HeaderDropDown");
            dropDown.Size2D          = new Size2D(1080, 108);
            dropDown.Position2D      = new Position2D(0, 100);
            dropDown.ListSize2D      = new Size2D(360, 500);
            dropDown.HeaderText      = "Header area";
            dropDown.ButtonText      = "Normal list 1";
            dropDown.ItemClickEvent += DropDownItemClickEvent;
            root.Add(dropDown);

            for (int i = 0; i < 8; i++)
            {
                Tizen.NUI.CommonUI.DropDown.DropDownItemData item = new Tizen.NUI.CommonUI.DropDown.DropDownItemData("TextListItem");
                item.Size2D = new Size2D(360, 96);
                item.Text   = "Normal list " + i;
                dropDown.AddItem(item);
            }

            dropDown.SelectedItemIndex = 1;
            ////////Attach scrollbar///////////
            scrollBar               = new ScrollBar();
            scrollBar.Direction     = ScrollBar.DirectionType.Vertical;
            scrollBar.Position2D    = new Position2D(394, 2);
            scrollBar.Size2D        = new Size2D(4, 446);
            scrollBar.TrackColor    = Color.Green;
            scrollBar.ThumbSize     = new Size2D(4, 30);
            scrollBar.ThumbColor    = Color.Yellow;
            scrollBar.TrackImageURL = CommonResource.GetResourcePath() + "component/c_progressbar/c_progressbar_white_buffering.png";
            dropDown.AttachScrollBar(scrollBar);

            //////////////////ListSpinner DropDown////////////////////////
            dropDown2            = new Tizen.NUI.CommonUI.DropDown("ListDropDown");
            dropDown2.Size2D     = new Size2D(1080, 108);
            dropDown2.Position2D = new Position2D(0, 300);
            dropDown2.ListSize2D = new Size2D(360, 192);
            dropDown2.HeaderText = "List area";
            dropDown2.ButtonText = "Menu";
            root.Add(dropDown2);

            for (int i = 0; i < 2; i++)
            {
                Tizen.NUI.CommonUI.DropDown.DropDownItemData item = new Tizen.NUI.CommonUI.DropDown.DropDownItemData("IconListItem");
                item.Size2D          = new Size2D(360, 96);
                item.IconResourceUrl = iconImage[i];
                dropDown2.AddItem(item);
            }

            dropDown2.SelectedItemIndex = 0;

            dropDown.RaiseToTop();
        }
Example #7
0
        public void Activate()
        {
            Window.Instance.BackgroundColor = Color.White;
            CreateRootView();

            itemPosX       = 100;
            itemPosY       = -80;
            itemPosYOffset = 20;
            listItemArray  = new Tizen.FH.NUI.Controls.ListItem[COUNT];

            index = 0;
            CreateListItem(index, "DefaultListItem", 90, 0, "default");

            index++;
            CreateListItem(index, "MultiSubTextListItem", 150, 1, "sub text 1line");

            index++;
            CreateListItem(index, "MultiSubTextListItem", 220, 2, "sub text 2line");
            listItemArray[index].StateDividerEnabled = false;

            index++;
            // checkBox + text
            CreateListItem(index, "ItemAlignListItem", 90, 0, "item align");
            listItemArray[index].LeftItemRootViewSize  = new Size2D(48, 48);
            listItemArray[index].ItemAlignType         = Tizen.FH.NUI.Controls.ListItem.ItemAlignTypes.CheckIcon;
            listItemArray[index].RightItemRootViewSize = new Size2D(200, 90);
            listItemArray[index].RightText             = "Sub text";

            index++;
            // icon
            CreateListItem(index, "ItemAlignListItem", 90, 0, "item align, icon");
            listItemArray[index].LeftItemRootViewSize = new Size2D(48, 48);
            listItemArray[index].ItemAlignType        = Tizen.FH.NUI.Controls.ListItem.ItemAlignTypes.Icon;
            listItemArray[index].LeftIconURL          = CommonResource.GetResourcePath() + "0. Softkey/softkey_ic_home.png";

            index++;
            CreateListItem(index, "EffectListItem", 90, 0, "effect");

            index++;
            //itemPosX = 100 + 800 + 100;
            //itemPosY = 50;
            CreateListItem(index, "NextDepthListItem", 90, 0, "next depth");

            index++;
            CreateListItem(index, "GroupIndexListItem", 90, 0, "group index, default");
            listItemArray[index].GroupIndexType = Tizen.FH.NUI.Controls.ListItem.GroupIndexTypes.None;

            index++;
            CreateListItem(index, "GroupIndexListItem", 90, 0, "group index, next button");
            listItemArray[index].GroupIndexType        = Tizen.FH.NUI.Controls.ListItem.GroupIndexTypes.Next;
            listItemArray[index].RightItemRootViewSize = new Size2D(48, 48);

            index++;
            CreateListItem(index, "GroupIndexListItem", 90, 0, "group index, switch");
            listItemArray[index].GroupIndexType        = Tizen.FH.NUI.Controls.ListItem.GroupIndexTypes.Switch;
            listItemArray[index].RightItemRootViewSize = new Size2D(72, 48);

            index++;
            CreateListItem(index, "GroupIndexListItem", 90, 0, "group index, drop down");
            listItemArray[index].GroupIndexType        = Tizen.FH.NUI.Controls.ListItem.GroupIndexTypes.DropDown;
            listItemArray[index].RightItemRootViewSize = new Size2D(48, 48);

            button                 = new Tizen.NUI.CommonUI.Button();
            button.PointSize       = 14;
            button.Size2D          = new Size2D(300, 80);
            button.BackgroundColor = Color.Green;
            button.Position2D      = new Position2D(itemPosX + 10, itemPosY);
            button.Text            = "LTR/RTL";
            button.ClickEvent     += OnLayoutChanged;
            rootView.Add(button);
            Window.Instance.KeyEvent += OnWindowsKeyEvent;
        }