Пример #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            var dialogListView = new DialogListView(this);
            SetContentView(dialogListView);
            dialogListView.Root = InitializeRoot();
        }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // create from view
            var dialogListView = new DialogListView(this);
            SetContentView(dialogListView);

            RootElement root = new RootElement("Elements");
            Section section = new Section();
            root.Add(section);

            foreach (var item in _names) {
                section.Add(new StringElement(item.LastName, item.FirstName, Resource.Layout.custom_string_element));
            }

            dialogListView.Root = root;
        }