码迷,mamicode.com
首页 > 其他好文 > 详细

Mono Fragment之间转换

时间:2014-07-19 00:08:19      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   io   cti   re   

    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之间转换

标签:style   blog   color   io   cti   re   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!