如何在代码下面启动活动?
adaptor.AddFragmentView((i, v, b) =>
{
View rootView = i.Inflate(Resource.Layout.TrafficReports, v, false);
return rootView;
}
);
答案 0 :(得分:0)
试试这个:
adaptor.AddFragmentView((i, v, b) =>
{
View rootView = i.Inflate(Resource.Layout.TrafficReports, v, false);
rootView.Context?.StartActivity(typeof(ActivityX));
return rootView;
});