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

			SetContentView (Resource.Layout.Main);

			forum = PostListFragment.Instantiate ("android", "Android");
			SupportFragmentManager.BeginTransaction ()
				.Add (Resource.Id.container, forum, "post-list")
				.Commit ();

			refresher = FindViewById<SwipeRefreshLayout> (Resource.Id.refresher);
			refresher.SetColorScheme (Resource.Color.xam_dark_blue,
			                          Resource.Color.xam_purple,
			                          Resource.Color.xam_gray,
			                          Resource.Color.xam_green);
			refresher.Refresh += HandleRefresh;
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);

            forum = PostListFragment.Instantiate("android", "Android");
            SupportFragmentManager.BeginTransaction()
            .Add(Resource.Id.container, forum, "post-list")
            .Commit();

            refresher = FindViewById <SwipeRefreshLayout> (Resource.Id.refresher);
            refresher.SetColorScheme(Resource.Color.xam_dark_blue,
                                     Resource.Color.xam_purple,
                                     Resource.Color.xam_gray,
                                     Resource.Color.xam_green);
            refresher.Refresh += HandleRefresh;
        }