예제 #1
0
        void InitView()
        {
            ident  = new Identification();;
            acqu   = new Acquisition();
            grab   = new Grab();
            verify = new Verify();

            actionbar = ActionBar;
            // 设置标签导航模式
            actionbar.NavigationMode = ActionBarNavigationMode.Tabs;

            ActionBar.Tab tab1 = ActionBar.NewTab();
            tab1.SetText("Identification");
            tab1.TabSelected += (sender, e) => {
                // Do something when tab is selected
                e.FragmentTransaction.Replace(Android.Resource.Id.Content, ident);
            };
            ActionBar.Tab tab2 = ActionBar.NewTab();
            tab2.SetText("Verify");
            tab2.TabSelected += (sender, e) =>
            {
                // Do something when tab is selected
                e.FragmentTransaction.Replace(Android.Resource.Id.Content, verify);
            };

            ActionBar.Tab tab3 = ActionBar.NewTab();
            tab3.SetText("Acquisition");
            tab3.TabSelected += (sender, e) =>
            {
                // Do something when tab is selected
                e.FragmentTransaction.Replace(Android.Resource.Id.Content, acqu);
            };

            ActionBar.Tab tab4 = ActionBar.NewTab();
            tab4.SetText("Grab");
            tab4.TabSelected += (sender, e) =>
            {
                // Do something when tab is selected
                e.FragmentTransaction.Replace(Android.Resource.Id.Content, grab);
            };
            actionbar.AddTab(tab1);
            actionbar.AddTab(tab2);
            actionbar.AddTab(tab3);
            actionbar.AddTab(tab4);

            //	tabhost = FindViewById<TabHost> (Resource.Id.tabhost);// .tabHost1);
            //CreateTab(typeof(Identification), "Identification", "Identification", Resource.Drawable.Icon);
            //CreateTab(typeof(Verify), "Verify", "Verify", Resource.Drawable.Icon);
            //CreateTab(typeof(Acquisition), "Acquisition", "Acquisition", Resource.Drawable.Icon);
            ////CreateTab(typeof(Desfire), "Desfire", "Desfire", Resource.Drawable.Icon);
            //CreateTab(typeof(Grab), "Grab", "Grab", Resource.Drawable.Icon);
        }
예제 #2
0
 public GRABCall(Grab grab)
 {
     this.grab = grab;
 }