Example #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            listItems = new List <ListItem> {
                new ListItem {
                    Title = "Starting Activities Using Intents", PageType = typeof(IntentActivity)
                },
                new ListItem {
                    Title = "Hierarchical Navigation Using Toolbar", PageType = typeof(ToolbarActivity)
                },
                new ListItem {
                    Title = "Fragments", PageType = typeof(FragmentsActivity)
                },
                new ListItem {
                    Title = "Modal Using DialogFragment", PageType = typeof(DialogViewActivity)
                },
                new ListItem {
                    Title = "Alert Using DialogFragment", PageType = typeof(DialogAlertActivity)
                },
                new ListItem {
                    Title = "Modal Using AlertDialog", PageType = typeof(ModalAlertActivity)
                },
                new ListItem {
                    Title = "Popup Menu", PageType = typeof(PopupActivity)
                },
                new ListItem {
                    Title = "Passing Strings Using Intent", PageType = typeof(PassStringActivity)
                },
                new ListItem {
                    Title = "Passing Objects Using Intent", PageType = typeof(PassObjectActivity)
                },
                new ListItem {
                    Title = "Passing Data Using a Bundle", PageType = typeof(PassBundleActivity)
                },
                new ListItem {
                    Title = "Drilldown List by Page", PageType = typeof(DrilldownListActivity)
                },
                new ListItem {
                    Title = "Tabs Using ActionBar", PageType = typeof(TabMenuActivity)
                }
            };

            ListAdapter = new ListItemAdapter(this, listItems);
        }
Example #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            listItems = new List <ListItem>
            {
                new ListItem {
                    Title = "First Page", PageType = typeof(DrilldownActivity1)
                },
                new ListItem {
                    Title = "Second Page", PageType = typeof(DrilldownActivity2)
                },
                new ListItem {
                    Title = "Third Page", PageType = typeof(DrilldownActivity3)
                }
            };

            ListAdapter = new ListItemAdapter(this, listItems);
        }