首页 > 其他 > 详细

Mono Fragment之间转换

时间:2014-07-19 00:08:12      阅读:364      评论:0      收藏:0      [点我收藏+]
    var newFragment = new mybacklogF ();
            var ft = FragmentManager.BeginTransaction ();
            ft.Replace (Resource.Id.main_FragmentContainer, newFragment,"Homepage");
            ft.AddToBackStack ("Homepage");
            ft.Commit ();

后退

Button btnBack = view.FindViewById<Button> (Resource.Id.LEFT_BUTTON);
            btnBack.Visibility = ViewStates.Visible;
            btnBack.Click += (object sender, EventArgs e) => {
                FragmentManager.PopBackStack();
            };

Mono Fragment之间转换,布布扣,bubuko.com

Mono Fragment之间转换

原文:http://www.cnblogs.com/phinex/p/3853539.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!