예제 #1
0
        /// <summary>
        /// Override to create the required scene
        /// </summary>
        protected override void OnCreate()
        {
            base.OnCreate();

            // Get the window instance and change background color
            Window window = Window.Instance;

            window.BackgroundColor = Color.White;

            SampleAdapter sampleAdapter = new SampleAdapter();

            sampleAdapter.Data = DummyData.CreateDummyData(50);

            recyclerView = new Tizen.NUI.Wearable.RecyclerView(sampleAdapter, new RecycleLayoutManager())
            {
                // Size = new Size(480, 800),
                WidthSpecification  = LayoutParamPolicies.MatchParent,
                HeightSpecification = LayoutParamPolicies.MatchParent,
            };

            window.Add(recyclerView);

            window.KeyEvent += OnKeyEvent;
        }