1 Star 4 Fork 1

三亖三 / AndLua

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main11.lua 27.14 KB
一键复制 编辑 原始数据 按行查看 历史
三亖三 提交于 2023-09-29 13:23 . lua
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967
require "import"
import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "mods.SnackerBar"
import "android.content.Intent"
import "android.net.Uri"
import "java.net.URLDecoder"
import "java.io.File"
import "android.content.Intent"
import "android.content.Intent"
import "android.net.Uri"
import "java.net.URLDecoder"
import "android.content.*"
import "android.view.inputmethod.InputMethodManager"
import "console"
import "android.view.*"
import "android.graphics.Typeface"
import "java.io.File"
import "android.view.animation.*"
import "android.view.animation.Animation"
import "android.graphics.*"
import "mods.andlua"
import "android.graphics.PorterDuffColorFilter"
import "android.graphics.PorterDuff"
import "android.text.SpannableString"
import "android.text.style.ForegroundColorSpan"
import "android.text.Spannable"
import "android.graphics.drawable.ColorDrawable"
import "android.graphics.Color"
import "android.support.v4.widget.*"
require "permission"
import "autotheme"
import "android.graphics.PorterDuffColorFilter"
import "android.graphics.PorterDuff"
import "android.graphics.drawable.ColorDrawable"
import "android.text.SpannableString"
import "android.text.style.ForegroundColorSpan"
import "android.text.Spannable"
import "mods.andlua"
import "mods.SnackerBar"
ztt()
main11 = {
ScrollView,
backgroundColor = AndLuaB,
layout_width = "-1",
id = "ViewNight_lay",
VerticalScrollBarEnabled = false,
overScrollMode = 2,
layout_height = "-1",
{
RelativeLayout,
layout_width = "-1",
layout_height = "-1",
{
CardView,
layout_width = "-1",
backgroundColor = AndLuaB1,
radius = AndLuaR,
layout_height = "80dp",
layout_margin = "8dp",
elevation = "0dp",
id = "ss",
{
RelativeLayout,
layout_width = "-1",
layout_height = "-1",
{
CardView,
layout_height = "55dp",
id = "tbk",
layout_width = "55dp",
elevation = "0dp",
radius = "4dp",
backgroundColor = AndLuaB1,
layout_centerVertical = "true",
layout_marginLeft = "8dp",
{
ImageView,
src = "icon.png",
layout_margin = "3dp",
id = "tb",
layout_width = "-1",
scaleType = "fitXY",
layout_height = "-1",
},
},
{
RelativeLayout,
layout_alignTop = "tbk",
layout_height = "-1",
layout_toRightOf = "tbk",
layout_width = "-1",
layout_alignBottom = "tbk",
{
TextView,
textSize = "16sp",
id = "mz",
textColor = TitleColor,
layout_marginTop = "3dp",
text = getLS("L_Source_name"),
layout_marginLeft = "8dp",
},
{
TextView,
textSize = "13sp",
id = "xzl",
textColor = TitleColor1,
text = "0KB",
layout_marginTop = "5dp",
layout_below = "mz",
layout_marginLeft = "8dp",
},
{
TextView,
layout_width = "0dp",
layout_height = "0dp",
text = "1",
id = "pd",
},
{
TextView,
layout_width = "0dp",
layout_height = "0dp",
text = "0",
id = "tp1",
},
{
TextView,
layout_width = "0dp",
layout_height = "0dp",
text = "0",
id = "tp2",
},
{
TextView,
layout_width = "0dp",
layout_height = "0dp",
text = "0",
id = "tp3",
},
},
},
},
{
RelativeLayout,
layout_width = "-1",
layout_below = "ss",
layout_height = "-2",
id = "ggk",
{
CardView,
layout_marginRight = "8dp",
layout_marginBottom = "8dp",
layout_width = "-1",
elevation = "0dp",
layout_marginTop = "0dp",
layout_marginLeft = "8dp",
backgroundColor = AndLuaB1,
radius = AndLuaR,
{
RelativeLayout,
layout_width = "-1",
{
CardView,
layout_height = "17dp",
id = "hg",
layout_width = "-2",
layout_marginTop = "8dp",
layout_below = "xzl",
elevation = "0dp",
layout_marginLeft = "8dp",
{
LinearLayout,
layout_width = "-2",
layout_height = "-1",
backgroundColor = tonumber(bjzt()),
{
TextView,
layout_height = "-1",
text = getLS("L_The_source_code_that"),
layout_margin = "2dp",
id = "ti3tle",
layout_width = "-1",
gravity = "center",
textColor = TitleColor3,
textSize = "10sp",
},
},
},
{
EditText,
layout_marginRight = "5dp",
hint = getLS("L_Please_enter_the_source_is_introduced_and_illustrated"),
textSize = "12sp",
layout_below = "hg",
background = "0",
textColor = TitleColor,
layout_width = "-1",
id = "jss",
layout_marginLeft = "5dp",
},
},
},
},
{
CardView,
layout_below = "ggk",
layout_marginRight = "8dp",
layout_marginLeft = "8dp",
layout_marginTop = "0dp",
layout_marginBottom = "8dp",
layout_width = "match_parent",
backgroundColor = AndLuaB1,
radius = AndLuaR,
elevation = "0dp",
id = "lll",
{
LinearLayout,
layout_height = "fill",
layout_marginRight = "8dp",
orientation = "vertical",
layout_marginLeft = "8dp",
layout_marginTop = "8dp",
layout_marginBottom = "8dp",
layout_width = "fill",
{
CheckBox,
gravity = "right|center",
layout_width = "match_parent",
textColor = TitleColor,
text = getLS("L_Other_users_to_download_is_forbidden"),
paddingRight = "8dp",
id = "jz1",
},
{
CheckBox,
gravity = "right|center",
layout_width = "match_parent",
textColor = TitleColor,
text = getLS("L_To_ban_other_users_to_view"),
paddingRight = "8dp",
id = "jz2",
},
{
CheckBox,
gravity = "right|center",
layout_width = "match_parent",
textColor = TitleColor,
text = getLS("L_Set_the_password_to_download"),
paddingRight = "8dp",
id = "jz3",
},
{
EditText,
gravity = "right|center",
layout_marginRight = "8dp",
hint = getLS("L_Set_the_download_password"),
background = "0",
textColor = TitleColor,
textSize = "14sp",
layout_width = "-1",
id = "xzmm",
},
{
CheckBox,
gravity = "right|center",
layout_width = "match_parent",
textColor = TitleColor,
text = getLS("L_Set_the_downloads"),
paddingRight = "8dp",
id = "jz5",
},
{
EditText,
gravity = "right|center",
layout_marginRight = "8dp",
hint = getLS("L_Please_input_the_price"),
background = "0",
textColor = TitleColor,
textSize = "14sp",
layout_width = "-1",
id = "ffjg",
},
},
},
{
CardView,
layout_below = "lll",
layout_marginRight = "8dp",
layout_marginLeft = "8dp",
layout_marginTop = "0dp",
layout_marginBottom = "8dp",
layout_width = "match_parent",
backgroundColor = AndLuaB1,
radius = AndLuaR,
elevation = "0dp",
id = "lll6",
{
LinearLayout,
layout_height = "fill",
layout_marginRight = "5dp",
orientation = "vertical",
layout_marginLeft = "5dp",
layout_marginTop = "5dp",
layout_marginBottom = "5dp",
layout_width = "fill",
{
CheckBox,
gravity = "right|center",
layout_width = "match_parent",
textColor = TitleColor,
text = getLS("L_Original_source"),
paddingRight = "8dp",
id = "jz9",
},
},
},
{
CardView,
layout_below = "lll6",
layout_marginRight = "8dp",
layout_marginLeft = "8dp",
layout_marginTop = "0dp",
layout_marginBottom = "8dp",
layout_width = "match_parent",
backgroundColor = AndLuaB1,
radius = AndLuaR,
elevation = "0dp",
id = "lll66",
{
LinearLayout,
layout_height = "fill",
layout_marginRight = "5dp",
orientation = "vertical",
layout_marginLeft = "5dp",
layout_marginTop = "5dp",
layout_marginBottom = "5dp",
layout_width = "fill",
{
Spinner,
id = "classification",
layout_width = "fill",
layout_marginTop = "5dp",
layout_marginBottom = "5dp",
},
},
},
{
RelativeLayout,
layout_width = "-1",
layout_below = "lll66",
layout_height = "-2",
id = "lll5",
{
CardView,
layout_marginRight = "8dp",
layout_marginBottom = "8dp",
layout_width = "-1",
elevation = "0dp",
layout_marginTop = "0dp",
layout_marginLeft = "8dp",
backgroundColor = AndLuaB1,
radius = AndLuaR,
{
RelativeLayout,
layout_width = "-1",
{
CardView,
layout_height = "17dp",
id = "hg5",
layout_width = "-2",
layout_marginTop = "8dp",
elevation = "0dp",
layout_marginLeft = "8dp",
{
LinearLayout,
layout_width = "-2",
layout_height = "-1",
backgroundColor = tonumber(bjzt()),
{
TextView,
layout_height = "-1",
text = getLS("L_The_source_code_label"),
layout_margin = "2dp",
id = "ti3tle5",
layout_width = "-1",
gravity = "center",
textColor = "0xffffffff",
textSize = "10sp",
},
},
},
{
EditText,
layout_marginRight = "5dp",
hint = getLS("L_Multiple_tags_separated_by_Spaces"),
textSize = "12sp",
layout_below = "hg5",
background = "0",
layout_width = "-1",
id = "Label",
layout_marginLeft = "5dp",
textColor = TitleColor,
},
},
},
},
{
RelativeLayout,
layout_width = "-1",
layout_below = "lll5",
layout_height = "-2",
id = "sskk",
{
CardView,
layout_marginRight = "8dp",
layout_marginBottom = "8dp",
layout_width = "-1",
elevation = "0dp",
backgroundColor = AndLuaB1,
radius = AndLuaR,
layout_marginTop = "0dp",
layout_marginLeft = "8dp",
{
RelativeLayout,
layout_width = "-1",
{
CardView,
layout_height = "17dp",
id = "hgb",
layout_width = "-2",
layout_marginTop = "8dp",
elevation = "0dp",
layout_below = "xzl",
layout_marginLeft = "8dp",
{
LinearLayout,
layout_width = "-1",
layout_height = "-1",
backgroundColor = tonumber(bjzt()),
{
TextView,
layout_height = "-1",
text = getLS("L_Add_a_screenshot"),
layout_margin = "2dp",
id = "tjjt",
layout_width = "-1",
gravity = "center",
textColor = "0xffffffff",
textSize = "10sp",
},
},
},
{
HorizontalScrollView,
layout_marginRight = "8dp",
layout_marginBottom = "8dp",
layout_height = "220dp",
layout_below = "hgb",
layout_width = "-1",
layout_marginTop = "5dp",
layout_marginLeft = "8dp",
horizontalScrollBarEnabled = false,
{
LinearLayout,
layout_width = "-1",
orientation = "horizontal",
layout_height = "-1",
{
ImageView,
layout_width = "120dp",
scaleType = "fitXY",
layout_height = "-1",
id = "jt1",
},
{
ImageView,
layout_height = "-1",
id = "jt2",
layout_width = "120dp",
scaleType = "fitXY",
layout_marginLeft = "5dp",
},
{
ImageView,
layout_height = "-1",
id = "jt3",
layout_width = "120dp",
scaleType = "fitXY",
layout_marginLeft = "5dp",
},
},
},
},
},
},
{
ImageView,
layout_height = "55dp",
layout_marginTop = "20dp",
backgroundColor = tonumber(bjzt()),
ColorFilter = "#ffffffff",
layout_marginBottom = "15dp",
layout_below = "sskk",
id = "ok",
padding = "8dp",
layout_centerHorizontal = "true",
layout_width = "55dp",
src = "res/Metrial50.png",
elevation = "0dp",
},
},
};
activity.setContentView(loadlayout(main11))
ViewNight(ViewNight_lay)
ztl()
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/off.png",
},
},
{
LinearLayout,
layout_height = "fill",
layout_weight = "1",
orientation = "horizontal",
{
TextView,
layout_gravity = "center",
textSize = "18sp",
text = getLS("L_Fill_in_the_information"),
textColor = tonumber(bjzt()),
id = "bt",
singleLine = true,
},
},
};
activity.ActionBar.setDisplayShowCustomEnabled(true)
activity.ActionBar.setCustomView(loadlayout(btl))
activity.ActionBar.setBackgroundDrawable(ColorDrawable(AndLuaB1))
activity.ActionBar.setElevation(0)
bw(Sideslip, 0x5FFFFFFF)
Sideslip.onClick = function()
activity.finish()
end
ztt()
item = { "其他", "系统工具", "实用工具", "社交聊天", "资讯阅读", "通讯网络", "摄影图片",
"影音娱乐", "生活服务", "金融财经", "文档商务", "运动健康", "学习教育", "旅行交通", "主题美化",
"购物" }
adp = ArrayAdapter(activity, android.R.layout.simple_spinner_item, item)
adp.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
classification.setAdapter(adp)
classification1 = "其他"
classification.onItemSelected = function(p, v, s, i)
classification1 = v.Text
end
tjjt.onClick = function()
import "android.content.Intent"
local intent = Intent(Intent.ACTION_PICK)
intent.setType("image/*")
this.startActivityForResult(intent, 1)
end
function onActivityResult(requestCode, resultCode, intent)
if intent then
local cursor = this.getContentResolver().query(intent.getData(), nil, nil, nil, nil)
cursor.moveToFirst()
import "android.provider.MediaStore"
local idx = cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA)
fileSrc = cursor.getString(idx)
bit = nil
hh = pd.Text
if hh == "1" then
if fileSrc != nil then
jt1.setImageBitmap(loadbitmap(fileSrc))
pd.setText("2")
tp1.setText(fileSrc)
end
else
if hh == "2" then
if fileSrc != nil then
jt2.setImageBitmap(loadbitmap(fileSrc))
pd.setText("3")
tp2.setText(fileSrc)
end
else
if hh == "3" then
if fileSrc != nil then
jt3.setImageBitmap(loadbitmap(fileSrc))
tp3.setText(fileSrc)
end
else
end
end
end
import "android.graphics.BitmapFactory"
bit = BitmapFactory.decodeFile(fileSrc)
end
end
lj, btk, tby = ...
if LuaUtil.zip(lj, "/sdcard/AndLua/cache/") then
sjc = os.date("%Y%m%d%H%M%S")
yj = File(lj).getName()
wjh = io.open(lj .. "/init.lua"):read("*a")
btt = wjh:match('%appname="(.-)"')
wjg = btt .. "_" .. sjc
File("/sdcard/AndLua/cache/" .. yj .. ".zip").renameTo(File("/sdcard/AndLua/cache/" .. wjg .. ".alp"))
lja = ("/sdcard/AndLua/cache/" .. wjg .. ".alp")
function GetFileSize(path)
import "java.io.File"
import "android.text.format.Formatter"
size = File(tostring(path)).length()
Sizes = Formatter.formatFileSize(activity, size)
return Sizes
end
xzl.setText(GetFileSize(lja))
else
activity.result({ "打包失败" })
end
mz.setText(btk)
tb.setImageBitmap(loadbitmap(tby))
function CircleButton(view, InsideColor, radiu)
import "android.graphics.drawable.GradientDrawable"
drawable = GradientDrawable()
drawable.setShape(GradientDrawable.RECTANGLE)
drawable.setColor(InsideColor)
drawable.setCornerRadii({ radiu, radiu, radiu, radiu, radiu, radiu, radiu, radiu });
view.setBackgroundDrawable(drawable)
end
CircleButton(ok, tonumber(bjzt()), 90)
b = bmob("73669056f163f1e66a6deed81dff6e50", "8a2770b0663035f18c9e4260711873b8")
import "bmob"
b0 = bmob("73669056f163f1e66a6deed81dff6e50", "8a2770b0663035f18c9e4260711873b8")
IC = lj .. "/icon.png"
if File(IC).isFile() == false then
IC = activity.getLuaDir() .. "/icon.png"
end
ok.onClick = function()
oo = false
if jz3.isChecked() == true then
if xzmm.Text == "" then
SnackerBar.build()
:msg(getLS("L_Please_download_the_password"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
elseif #xzmm.Text >= 30 then
SnackerBar.build()
:msg(getLS("L_The_password_is_too_long"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
elseif xzmm.Text == "Do not set password" then
SnackerBar.build()
:msg(getLS("L_Ban_the_word"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
oo = true
end
else
oo = true
end
oo1 = false
if jz5.isChecked() == true then
txl = string.sub(ffjg.Text, 0, 1)
txl1 = string.sub(ffjg.Text, -1, -1)
bbbb, cccc = string.gsub(ffjg.Text, "%.", ".")
if ffjg.Text == "" then
SnackerBar.build()
:msg(getLS("L_Please_set_the_price"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
elseif txl == "." then
SnackerBar.build()
:msg(getLS("L_Amount_of_error"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
elseif txl1 == "." then
SnackerBar.build()
:msg(getLS("L_Amount_of_error"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
elseif cccc >= 2 then
SnackerBar.build()
:msg(getLS("L_Amount_of_error"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
elseif #ffjg.Text > 5 then
SnackerBar.build()
:msg(getLS("L_Amount_is_too_large"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
elseif string.format("%.2f", ffjg.Text) < tostring(0.10) then
SnackerBar.build()
:msg(getLS("L_The_lowest_price_of"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
oo1 = true
end
else
oo1 = true
end
if oo == true then
if oo1 == true then
if tp1.Text == "0" then
SnackerBar.build()
:msg(getLS("L_Please_upload_three_source_screenshots"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
elseif tp2.Text == "0" then
SnackerBar.build()
:msg(getLS("L_Please_upload_three_source_screenshots"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
elseif tp3.Text == "0" then
SnackerBar.build()
:msg(getLS("L_Please_upload_three_source_screenshots"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
if jss.Text == "" then
js = "这家伙很懒,什么都没写!"
else
js = jss.Text
end
SnackerBar.build()
:msg(getLS("L_Is_being_issued"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
dialog5 = ProgressDialog(this)
dialog5.setProgressStyle(ProgressDialog.STYLE_SPINNER)
dialog5.setCancelable(true)
dialog5.setCanceledOnTouchOutside(false)
dialog5.show()
b0:upload(tp1.Text, function(code, j1)
t1 = dump(j1):match('%["url"%] = "(.-)" ;')
b0:upload(tp2.Text, function(code, j2)
t2 = dump(j2):match('%["url"%] = "(.-)" ;')
b0:upload(tp3.Text, function(code, j3)
t3 = dump(j3):match('%["url"%] = "(.-)" ;')
b0:upload(tby, function(code, j5)
icon = dump(j5):match('%["url"%] = "(.-)" ;')
b0:upload(lja, function(code, j4)
xzlj = dump(j4):match('%["url"%] = "(.-)" ;')
dx6 = xzl.Text
mz6 = mz.Text
text = js
uguid()
jzxz = "0"
jzck = "0"
Original = "false"
if jz9.isChecked() then
Original = "true"
end
if jz1.isChecked() then
jzxz = "1"
end
if jz2.isChecked() then
jzck = "1"
end
if ffjg.Text == "" then
PA = "0"
else
PA = tostring(string.format("%.2f", ffjg.Text))
end
task(100, function()
if icon == nil or xzlj == nil or t1 == nil or t2 == nil or t3 == nil then
dialog5.hide()
AlertDialog.Builder(this)
.setTitle(getLS("L_Prompt"))
.setMessage(getLS("L_Upload_error"))
.setPositiveButton(getLS("L_Determine"), { onClick = function(v) end })
.show()
else
Http.post("https://ly250.cn/andlua/fym.php",
"uid1=" ..
uid1 ..
"&uid2=" ..
uid2 ..
"&uid3=" ..
uid3 ..
"&jzxz=" ..
jzxz ..
"&jzck=" ..
jzck ..
"&src1=" ..
t1 ..
"&src2=" ..
t2 ..
"&src3=" ..
t3 ..
"&icon=" ..
icon ..
"&url=" ..
xzlj ..
"&dx=" ..
dx6 ..
"&name=" ..
mz6 ..
"&text=" ..
text ..
"&money=" ..
PA ..
"&pass=" ..
xzmm.Text ..
"&Original=" ..
encrypt(Original) ..
"&Label=" .. encrypt(Label.Text) .. "&classification=" ..
encrypt(classification1) .. "&sid=" .. sid(), function(a1, b, c, d)
sid1 = b:match('%["ret"] = "(.-)%";')
dialog5.hide()
if sid1 == "ok" then
activity.result({ "发布成功" })
elseif sid1 == "4" then
SnackerBar.build()
:msg(getLS("L_Identity_expired"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
SnackerBar.build()
:msg(getLS("L_You_submit"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
end
end)
end
end)
end)
end)
end)
end)
end)
end
end
end
end
jz1.onClick = function()
if jz1.isChecked() then
jz5.setChecked(false)
ffjg.setVisibility(View.GONE)
ffjg.Text = ""
else
end
end
jz2.onClick = function()
if jz2.isChecked() then
jz5.setChecked(false)
ffjg.setVisibility(View.GONE)
ffjg.Text = ""
else
end
end
jz3.onClick = function()
if jz3.isChecked() then
jz5.setChecked(false)
ffjg.setVisibility(View.GONE)
ffjg.Text = ""
xzmm.setVisibility(View.VISIBLE)
else
xzmm.setVisibility(View.GONE)
xzmm.Text = ""
end
end
jz5.onClick = function()
if jz5.isChecked() then
AlertDialog.Builder(this)
.setTitle(getLS("L_Prompt"))
.setCancelable(false)
.setMessage([[1.价格最低0.10元起。
2.用户每次下载都要支付一次费用。
3.用户付费后你将获得付费金额的95%收益。
4.禁止发布欺骗用户、色情、赌博、外挂等违规源码。
5.外挂、违规等源码收益系统直接没收,一律不给予提现。
]])
.setPositiveButton(getLS("L_Agree_and_continue_to_release"), nil)
.setNegativeButton(getLS("L_Donot_agree_to_quit"), {
onClick = function(v)
activity.finish()
end
})
.show()
ffjg.setVisibility(View.VISIBLE)
jz1.setChecked(false)
jz2.setChecked(false)
jz3.setChecked(false)
xzmm.setVisibility(View.GONE)
xzmm.Text = ""
else
ffjg.setVisibility(View.GONE)
ffjg.Text = ""
end
end
xzmm.setVisibility(View.GONE)
ffjg.setVisibility(View.GONE)
import "android.text.InputType"
import "android.text.method.DigitsKeyListener"
ffjg.setKeyListener(DigitsKeyListener.getInstance("0123456789."))
Lua
1
https://gitee.com/three-to-three/and-lua-a.git
git@gitee.com:three-to-three/and-lua-a.git
three-to-three
and-lua-a
AndLua
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891