-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.aly
60 lines (55 loc) · 1016 Bytes
/
layout.aly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
require "import"
import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "android.view.*"
--导入第三方库
import "android.support.v7.widget.*"
import "com.LuaRecyclerAdapter"
import "com.LuaRecyclerHolder"
import "com.AdapterCreator"
import "com.bumptech.glide.*"
layout={
PageView;
layout_height="-1";
layout_width="-1";
id="jc";
pages={
{
RecyclerView,
--layout_marginTop="20dp",
layout_width="-1",
layout_height="-1",
id="recy",
},
}
}
activity.setContentView(loadlayout(layout))
--瀑布流,子控件的高度不能写死
item={
LinearLayout,
layout_width="50%w",
padding="20",
id="it",
{
CardView,
radius="15",
{
LinearLayout,
orientation="vertical",
Gravity="center",
{
ImageView;
paddingTop="20",
--scaleType="",
id="img",
};
{
TextView,
paddingTop="20",
Gravity="center",
id="tv",
},
},
},
}