【lua教程】倒计时启动图
require "import"import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "android.view.*"
layout={
FrameLayout;
{
LinearLayout;
layout_height="fill";
layout_width="fill";
orientation="vertical";
{
ImageView;
layout_height="match_parent";
layout_width="match_parent";
src="https://img2.baidu.com/it/u=3228549874,2173006364&fm=26&fmt=auto&gp=0.jpg";
};
};
{
TextView;
layout_margin="10dp";
id="djs";
layout_gravity="right";
};
};
activity.setTheme(android.R.style.Theme_DeviceDefault_Light)
activity.ActionBar.hide()
activity.setContentView(loadlayout(layout))
task(1000,function()
djs.Text="3秒"
task(1000,function()
djs.Text="2秒"
task(1000,function()
djs.Text="1秒"
task(1000,function()
--启动图结束后跳转页面
-- activity.newActivity("main1")
activity.finish()
end)
end)
end)
end)
页:
[1]