|
|
一两年前用fa写的
本来是自用的
有人找我要,我就发出来了
并给软件做了些优化
下载密码:8888
APP介绍



FA制作的,无防护,免费,开源
仅供娱乐,请勿上当
要钱的都是骗子
请勿做任何违法事情
APP开源(lua
- layout={
- LinearLayout;
- layout_height="fill";
- layout_width="fill";
- };
- require "import"
- import "android.app.*"
- import "android.os.*"
- import "android.widget.*"
- import "android.view.*"
- import "android.widget.LinearLayout"
- import "android.view.inputmethod.InputMethodManager"
- import "android.widget.Adapter"
- import "android.R"
- import "android.widget.TextView"
- import "android.widget.Button"
- import "com.androlua.LuaArrayAdapter"
- import "java.lang.String"
- import "android.widget.ScrollView"
- import "android.widget.CardView"
- import "android.widget.EditText"
- import "android.widget.Spinner"
- activity.setTheme(android.R.style.Theme_DeviceDefault_Light)--设置md主题
- local 数据={"腾讯图片外链"}
- local pz={TextView,padding="16dp",textColor=文字色,textSize="16dp",layout_width="fill"}
- local adapter=LuaArrayAdapter(this,pz,String(数据))
- local function generate(toastWhat)
- local t=zf.Text
- local zerstr=string.char(0x00)
- local upperstr=string.upper(t)
- local s=utf8.len(t)
- local a=0
- local b=1
- local t0=upperstr
- local t3=""
- local function change()
- for n=1,s,1 do
- t1=String(t).substring(a,b)
- t2=string.gsub(t0,"文本",t1)
- t3=t3..t2
- a=a+1
- b=b+1
- end
- end
- if t == "" then
- print("请先输入内容")
- zf.requestFocus()
- imm.toggleSoftInput(0,InputMethodManager.RESULT_SHOWN)
- else
- if txt=="腾讯图片外链" then
- t3="http://gchat.qpic.cn/gchatpic_new/0/530077417-0-"..t0.."/0"
- end
- result.Text=t3
- if toastWhat then print(toastWhat) end
- --imm.hideSoftInputFromWindow(zf.getWindowToken(), 0)
- end
- end
- this.setContentView(loadlayout({
- LinearLayout,
- layout_width="fill",
- orientation="vertical",
- {
- TextView,
- paddingLeft="16dp",
- paddingRight="106dp",
- layout_height="52dp",
- textColor=图标色,
- gravity="center",
- text="腾讯QQ图片外链",
- textSize="18dp",
- },
- {
- ScrollView,
- layout_width="fill",
- {
- LinearLayout,
- layout_width="fill",
- orientation="vertical",
- {
- CardView,
- layout_width="fill",
- radius="12dp",
- layout_margin="24dp",
- layout_marginBottom="16dp",
- layout_marginTop="16dp",
- {
- EditText,
- layout_width="fill",
- minLines=6,
- inputType="textMultiLine",
- id="zf",
- gravity="top",
- hint="输入QQ里下载的图片的MD5",
- backgroundColor=0,
- textSize="16dp",
- padding="16dp",
- textColor=文字色,
- hintTextColor=次要文字色,
- },
- },
- {
- Spinner,
- layout_width="fill",
- id="xl",
- Adapter=adapter,
- onItemSelectedListener={
- onItemSelected=function(parent,view,position,id)
- txt=view.Text
- end},
- layout_margin="24dp",
- layout_marginTop=0,
- layout_marginBottom=0,
- },
- {
- LinearLayout,
- layout_gravity="center",
- {
- Button,
- text="外",
- layout_weight=1,
- backgroundColor=0,
- textColor=0xff00b1ff,
- textSize="64dp",
- onClick=function() generate("已生成内容") end,
- },
- {
- Button,
- text="链",
- layout_weight=1,
- backgroundColor=0,
- textColor=0xFFE91E63,
- textSize="64dp",
- onClick=function() generate("已生成内容") end,
- },
- {
- Button,
- text="生",
- layout_weight=1,
- backgroundColor=0,
- textColor=0xFF009688,
- textSize="64dp",
- onClick=function() generate("已生成内容") end,
- },
- {
- Button,
- text="成",
- layout_weight=1,
- backgroundColor=0,
- textColor=0xFF673AB7,
- textSize="64dp",
- onClick=function() generate("已生成内容") end,
- },
- },
- {
- TextView,
- text="生成后的文字将会显示在此处",
- id="result",
- padding="36dp",
- textSize="16dp",
- layout_width="fill",
- textIsSelectable=true,
- textColor=文字色,
- },
- },
- },
- }))
复制代码 |
-
查看全部评分
总评分:好评 +2
金币 +2
|