Пример #1
0
        protected override void OnCreate (Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);
        
            SetContentView(Resource.Layout.activity_item_list);

            mItemList = FindViewById<ListView> (Android.Resource.Id.List);
            mDetailsFragment = (ItemDetailsFragment) SupportFragmentManager.FindFragmentById (Resource.Id.item_details);
            mIsDualFrame = mDetailsFragment != null;
            if (mIsDualFrame) {
                mItemList.ChoiceMode = ChoiceMode.Single;
                mDetailsFragment.ItemId = 0;
            }
        }
        protected override void OnCreate(Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.activity_item_list);

            mItemList        = FindViewById <ListView> (Android.Resource.Id.List);
            mDetailsFragment = (ItemDetailsFragment)SupportFragmentManager.FindFragmentById(Resource.Id.item_details);
            mIsDualFrame     = mDetailsFragment != null;
            if (mIsDualFrame)
            {
                mItemList.ChoiceMode    = ChoiceMode.Single;
                mDetailsFragment.ItemId = 0;
            }
        }