我需要在项目中创建几个包含不同文件的jar。我根本没有使用Gradle,我一直试图了解这一点,但我能看到的只是创建可执行罐子的方法,我不想这样做。只是一个带文件的jar。
我写了这个:
task xmlbeansJar{
sourceSets{
main{
java{
srcDir '../bin'
include "org/**/**, com/**/**"
}
}
}
}
但我有些疑惑。这是否同时采用bin / org和bin / com下的文件?并且,我不认为这会创造一个罐子,是吗?我怎么把它放在罐子里?
谢谢!
答案 0 :(得分:2)
这将完成这项工作:
UIButton scrapbookbackground = new UIButton(new CGRect(SPACING, progresses_view.Frame.Y + progresses_view.Frame.Height + SPACING, View.Frame.Width - SPACING * 2, 90));
scrapbookbackground.BackgroundColor = UIColor.Clear.FromHex(0x4f80bc);
scrapbookbackground.Layer.CornerRadius = 10f;
scrapbookbackground.Layer.BorderWidth = 1f;
scrapbookbackground.Layer.BorderColor = UIColor.Blue.CGColor;
scrapbookbackground.ClipsToBounds = true;
scrapbookimg = UIImage.FromFile("Images/scrap_capa.png");
scrapbookbackground.SetBackgroundImage(scrapbookimg, UIControlState.Normal);
scrapbookbackground.TouchUpInside += (args, e) => {
Console.WriteLine("scrapbooktouch");
NavigationController.PushViewController(new ScrapBookPageViewController(), true);
};
mainview.Add(scrapbookbackground);