|
- require "import". y3 a- J$ W* S+ ?5 `8 Z7 C$ m
- import "android.app.*"4 {3 o% `) h; y+ X" K9 h$ Y0 |6 x2 }& o
- import "android.os.*"( A' Q/ Q/ p0 Z
- import "android.widget.*"
2 Q! I6 x3 \4 b, l - import "android.view.*" ~% K, Z( d, {$ |
- layout={: X; x2 ^$ M+ K/ P
- FrameLayout;
' I9 n& b( j4 H8 m+ x - {" E; {2 N# W0 @1 j5 D; X- D
- LinearLayout;: d1 F! A* B' H2 c
- layout_height="fill";
- V6 [, F& \/ c$ E - layout_width="fill"; y" W& N# b( y3 m" K
- orientation="vertical";
G2 Y% O! z5 i: p; v - {
0 j" K# j" D: j+ x* ]( q - ImageView;
5 }9 c9 q* Y1 w9 n& s - layout_height="match_parent";2 m- n$ s( ?$ l* F" p3 U g2 n
- layout_width="match_parent";' ?6 v, |, x1 w; t7 s5 v
- src="https://img2.baidu.com/it/u=3228549874,2173006364&fm=26&fmt=auto&gp=0.jpg";
: U! F- p, W7 f6 j& S6 [! P - };
" m6 s( G8 [9 L - };3 | f' }. \7 b }8 d* A
- {
0 s' F; R- k% m - TextView;
! a0 y7 C# }9 B* h' b1 O( i. V - layout_margin="10dp";
+ D% P9 x7 m9 d6 i - id="djs";
) n, i: P1 x% d! ` - layout_gravity="right";
6 n# i( m" t4 E( {& o - };
" W- k3 ^8 U2 D2 ]7 u6 q) i2 E! l - };
# \6 _8 A n+ b9 k - activity.setTheme(android.R.style.Theme_DeviceDefault_Light)
; I7 ?6 x. O7 k9 x# I - activity.ActionBar.hide()! F, p! }6 v) _( _
- activity.setContentView(loadlayout(layout)): \- f/ o. z+ W+ V1 C
- - ~' B/ D9 t* K6 } B) o
- task(1000,function()
, u6 a1 e* C3 m9 u7 @ - djs.Text="3秒"0 I- `; [" J8 f! M1 X
- task(1000,function()
3 Q! N6 m. l% d5 h - djs.Text="2秒"
0 `1 N+ L. ]: v Y - task(1000,function(). G+ A6 i$ i. s7 R0 I
- djs.Text="1秒". T" E: m, \; u2 F$ x
- task(1000,function()
0 f d8 ~7 u4 k1 U- O3 j - --启动图结束后跳转页面" B' U7 `+ {+ o/ |; z O
- -- activity.newActivity("main1")
+ M7 b2 a3 y. j* L" \ - activity.finish()5 E$ J8 N2 y- j4 y3 i: g- d3 P
- end)9 s2 D$ J1 z+ _+ b( B
- end): Z$ _1 _0 v H, n) c. o& T3 O
- end)$ B9 E @; d9 ?0 {# _/ g
- end)
复制代码 |
|