-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain61.lua
More file actions
69 lines (62 loc) · 1.41 KB
/
main61.lua
File metadata and controls
69 lines (62 loc) · 1.41 KB
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
61
62
63
64
65
66
67
68
69
require "import"
import "console"
import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "android.view.*"
import "android.content.*"
import "com.androlua.*"
import "mods.andlua3"
import "android.graphics.drawable.ColorDrawable"
import "android.text.SpannableString"
import "android.text.style.ForegroundColorSpan"
import "android.text.Spannable"
import "loadlayout3"
layout = ...
xpcall(function()
activity.setContentView(loadlayout3(loadstring("return " .. layout)(), {}))
end,
function()
activity.result({ getLS("L_This_layout_is_not_supported"), "", "2" })
end)
btl = {
LinearLayout,
layout_width = "fill",
elevation = "1dp",
layout_height = "55dp",
orientation = "horizontal",
{
LinearLayout,
layout_width = "55dp",
gravity = "center",
id = "Sideslip",
layout_height = "55dp",
layout_marginLeft = "-15dp",
{
ImageView,
layout_height = "25dp",
colorFilter = tonumber(bjzt()),
layout_width = "28dp",
src = res .. "1.png",
},
},
{
LinearLayout,
layout_height = "fill",
layout_weight = "1",
orientation = "horizontal",
{
TextView,
layout_gravity = "center",
textSize = "18sp",
text = getLS("L_Preview_the_layout"),
textColor = tonumber(bjzt()),
singleLine = true,
},
},
};
BarView(btl)
Ripple(Sideslip)
Sideslip.onClick = function()
activity.finish()
end