嗨,我在android上工作。
我有一个用于所有活动的布局。
我的意思是我有一个包含页脚和页眉的布局。
在每个活动上,页眉和页脚相同且具有相同的动作。

我想对页眉和页脚使用常规布局。
我的意思是,在一项活动中,我会将内容区域布局放到常规布局中。
我发现有些东西,但还不够。
我怎样才能做到这一点?
是否有虚拟文件可以做到这一点?
对不起,英语不好。
我有两种类:
public class HolidayClass
{
public int ID { get; set; }
public string Name { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public bool Active { get; set; }
public HolidayClass(int ID, string Name, DateTime StartDate, DateTime EndDate, bool Active)
{
this.ID = ID;
this.Name = Name;
this.StartDate = StartDate;
this.EndDate = EndDate;
this.Active = Active;
}
public HolidayClass()
{
}
}
public class ProjectClass
{
public int ID …Run Code Online (Sandbox Code Playgroud)