1 Star 4 Fork 1

三亖三 / AndLua

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main24.lua 125.72 KB
一键复制 编辑 原始数据 按行查看 历史
三亖三 提交于 2023-07-06 01:36 . 2
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401
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 "mods.color"
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()
main10={
LinearLayout;
layout_height="fill";
orientation="vertical";
id="ViewNight_lay1";
backgroundColor=AndLuaB;
layout_width="fill";
{
ScrollView;
VerticalScrollBarEnabled=false;
overScrollMode=2;
layout_marginLeft="5dp";
layout_marginRight="5dp";
layout_marginTop="5dp";
layout_marginTop="5dp";
layout_height="fill";
layout_width="fill";
{
LinearLayout;
orientation="vertical";
layout_height="fill";
layout_width="fill";
{
CardView;
layout_margin="5dp";
layout_width="-1";
elevation="0dp";
radius=AndLuaR;
backgroundColor=AndLuaB1;
layout_height="-2";
{
LinearLayout;
orientation="vertical";
layout_width="-1";
layout_height="-1";
{
TextView;
layout_marginTop="10dp";
layout_marginLeft="10dp";
text=getLS("L_General");
textColor=tonumber(bjzt());
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Being_pushed");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="sz2";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h2";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Check_the_update");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="sz3";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h3";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_The_navigation_bar_following_the_theme_colors");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="kg111";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="set111";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_At_the_bottom_of_the_Toast");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="kg3";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="set3";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Night_mode");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="Night_mode_s";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="Night_modeB";
};
};
{
FrameLayout;
layout_width="-1";
id="ztfg";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Theme");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="kg2";
layout_width="20dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="set2";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Theme_colors");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="color2";
layout_width="20dp";
radius="10dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="but2";
};
};
};
};
{
CardView;
layout_margin="5dp";
layout_width="-1";
layout_height="-2";
elevation="0dp";
radius=AndLuaR;
backgroundColor=AndLuaB1;
{
LinearLayout;
orientation="vertical";
layout_width="-1";
layout_height="-1";
{
TextView;
layout_marginTop="10dp";
textColor=tonumber(bjzt());
layout_marginLeft="10dp";
text=getLS("L_Code_editor");
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_On_the_left_side_of_the_slide_show_by_default");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
TextView;
layout_gravity="right";
layout_marginRight="22dp";
layout_height="-1";
id="Drawable_text";
textSize="13sp";
gravity="center";
textColor=TitleColor1,
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
onClick=function()
items={}
table.insert(items,getLS("L_Drawable_text_1"))
table.insert(items,getLS("L_Drawable_text_2"))
AlertDialog.Builder(this)
.setTitle(getLS("L_On_the_left_side_of_the_slide_show_by_default"))
.setItems(items,{onClick=function(l,v)
io.open(activity.getLuaDir().."/res/set217.LY","w"):write(v+1):close()
Drawable_text.Text=items[v+1]
end})
.show()
end,
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Code_style");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
onClick=function()
items={}
f=File(activity.getLuaDir().."/Style")
ls=luajava.astable(f.listFiles() or String{})
table.sort(ls,function(a,b)
return (a.isDirectory()~=b.isDirectory() and a.isDirectory()) or ((a.isDirectory()==b.isDirectory()) and a.Name<b.Name)
end)
for n=1,#ls do
if File(tostring(ls[n])).isFile() then
table.insert(items,ls[n].Name)
end
end
AlertDialog.Builder(this)
.setTitle(getLS("L_Code_style"))
.setItems(items,{onClick=function(l,v)
array=activity.getTheme().obtainStyledAttributes({android.R.attr.colorBackground,android.R.attr.textColorPrimary,android.R.attr.colorPrimary,android.R.attr.colorPrimaryDark,android.R.attr.colorAccent,});
colorBackground=array.getColor(0, 0xFF00FF);
textColorPrimary=array.getColor(1, 0xFF00FF);
colorPrimary=array.getColor(2, 0xFF00FF);
colorPrimaryDark=array.getColor(3, 0xFF00FF);
colorAccent=array.getColor(4, 0xFF00FF);
bjzt2 = tostring("0x"..tostring(string.upper(Integer.toHexString(colorPrimary))))
Theme_style=io.open(activity.getLuaDir().."/Style/"..items[v+1]):read("*a")
Theme_style=string.gsub(Theme_style,"%$Theme_Color%$",bjzt2)
io.open(activity.getLuaDir().."/res/set8.LY","w"):write(Theme_style):close()
SnackerBar.build()
:msg(getLS("L_Switch_success"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
sxys()
end})
.show()
end,
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Automatic_formatting");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="autoF";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="autoF1";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("CheckError");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="CheckErrorS";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="CheckError";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Directly_open_the_Android_installation_package");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="swi0";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
onClick=function()
if swi0.isChecked()==false then
wj=activity.getLuaDir().."/res/set207.LY"
io.open(wj,"w"):write("true"):close()
else
wj=activity.getLuaDir().."/res/set207.LY"
io.open(wj,"w"):write("false"):close()
end
wj=activity.getLuaDir().."/res/set207.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
swi0.setChecked(true)
else
swi0.setChecked(false)
end
end,
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Code_save_anomaly_detection");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="swi1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="but1";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Function_of_quick_bar");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="and1210";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="and121";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Popup_window_to_confirm_delete_control");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="sz8";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h8";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Write_a_page_suspend_button_2");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="sz1190";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h1190";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Write_a_page_suspend_button");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="sz119";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h119";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Write_a_page_suspend_button_3");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="btn_3_s";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="btn_3";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Write_a_page_suspend_button_4");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="btn_4_s";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="btn_4";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text="Java API";
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="JavaAPI_s";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="JavaAPI";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Realtime_error");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="hh124";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h124";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Word_wrap");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="sz299";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h229";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Compact_package");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="sz0219";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h0219";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Automatic_backup");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
TextView;
layout_gravity="right";
layout_marginRight="22dp";
text=getLS("L_Shut_down_1");
layout_height="-1";
id="zdbf";
textSize="13sp";
gravity="center";
textColor=TitleColor1,
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="zdbf1";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_According_to_the_line_Numbers");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="ShowLineNumbers";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="ShowLineNumbers_btn";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_The_font_size");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
TextView;
layout_gravity="right";
layout_marginRight="22dp";
text="";
layout_height="-1";
id="sz21";
textSize="13sp";
gravity="center";
textColor=TitleColor1,
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h21";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_The_background_color");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="s22";
layout_width="20dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h22";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_The_font_color");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="s23";
layout_width="20dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h23";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_The_keyword_color");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="s24";
layout_width="20dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h24";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Function_of_color");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="s25";
layout_width="20dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h25";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_The_class_library_color");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="s26";
layout_width="20dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h26";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_String_color");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="s27";
layout_width="20dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h27";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Annotation_color");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="s28";
layout_width="20dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h28";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_The_color_code_completion");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="s150";
layout_width="20dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h150";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Code_completion_border_text_color");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
LinearLayout;
layout_gravity="right";
layout_marginRight="20dp";
layout_height="-1";
gravity="center";
{
CardView;
layout_height="20dp";
elevation="0dp";
id="s151";
layout_width="20dp";
layout_gravity="center";
};
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h151";
};
};
};
};
{
CardView;
layout_margin="5dp";
layout_width="-1";
layout_height="-2";
elevation="0dp";
radius=AndLuaR;
backgroundColor=AndLuaB1;
{
LinearLayout;
orientation="vertical";
layout_width="-1";
layout_height="-1";
{
TextView;
layout_marginTop="10dp";
layout_marginLeft="10dp";
textColor=tonumber(bjzt());
text=getLS("L_Other_1");
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Language");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
TextView;
layout_gravity="right";
layout_marginRight="22dp";
text="中文";
layout_height="-1";
id="language_text";
textSize="13sp";
gravity="center";
textColor=TitleColor1,
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="language";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_The_lua_file_encryption");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="sz02100";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h021900";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
layout_marginLeft="10dp";
layout_height="-1";
ColorFilter=TitleColor1;
};
{
TextView;
text=getLS("L_Lua_to_dex");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Switch;
layout_gravity="right";
layout_marginRight="10dp";
layout_height="-1";
id="luatodexs";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="luatodex";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Lua_warehouse");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
onClick=function()
InputLayout={
LinearLayout;
orientation="vertical";
Focusable=true,
FocusableInTouchMode=true,
{
TextView;
id="Prompt",
textSize="13sp",
layout_marginTop="10dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
textColor=tonumber(bjzt());
text=getLS("L_Please_enter_the_Lua_global_support_library_folder_path");
};
{
EditText;
layout_marginTop="5dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
id="editLH";
text=io.open(activity.getLuaDir().."/res/set210.LY"):read("*a")
};
};
AlertDialog.Builder(this)
.setTitle(getLS("L_Lua_warehouse"))
.setView(loadlayout(InputLayout))
.setPositiveButton(getLS("L_Determine"),{onClick=function(v)
io.open(activity.getLuaDir().."/res/set210.LY","w"):write(editLH.Text):close()
end})
.setNegativeButton(getLS("L_Cancel"),nil)
.show()
Typew(editLH)
end,
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_So_warehouse");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
onClick=function()
InputLayout={
LinearLayout;
orientation="vertical";
Focusable=true,
FocusableInTouchMode=true,
{
TextView;
id="Prompt",
textSize="13sp",
layout_marginTop="10dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
textColor=tonumber(bjzt());
text=getLS("L_Please_enter_the_So_global_support_library_folder_path");
};
{
EditText;
layout_marginTop="5dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
id="editLH";
text=io.open(activity.getLuaDir().."/res/set215.LY"):read("*a")
};
};
AlertDialog.Builder(this)
.setTitle(getLS("L_So_warehouse"))
.setView(loadlayout(InputLayout))
.setPositiveButton(getLS("L_Determine"),{onClick=function(v)
io.open(activity.getLuaDir().."/res/set215.LY","w"):write(editLH.Text):close()
end})
.setNegativeButton(getLS("L_Cancel"),nil)
.show()
Typew(editLH)
end,
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Plugin_management");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="Plugin management";
onClick=function()
items={}
f=File(activity.getLuaDir().."/plugin")
ls=luajava.astable(f.listFiles() or String{})
table.sort(ls,function(a,b)
return (a.isDirectory()~=b.isDirectory() and a.isDirectory()) or ((a.isDirectory()==b.isDirectory()) and a.Name<b.Name)
end)
for n=1,#ls do
if File(tostring(ls[n])).isFile()==false then
table.insert(items,ls[n].Name)
end
end
AlertDialog.Builder(this)
.setTitle(getLS("L_Plugin_management"))
.setItems(items,{onClick=function(l,v)
AlertDialog.Builder(this)
.setTitle(items[v+1])
.setMessage(getLS("L_Whether_to_remove_the_plugin"))
.setPositiveButton(getLS("L_Uninstall"),{onClick=function()
if os.execute("rm -r "..activity.getLuaDir().."/plugin/"..items[v+1]) then
SnackerBar.build()
:msg(getLS("L_Uninstall_the_success"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
SnackerBar.build()
:msg(getLS("L_Unloading_failure"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
end
end})
.setNegativeButton(getLS("L_Cancel"),nil)
.show()
return true
end})
.show()
end,
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Custom_syntax_highlighting");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
onClick=function()
LuaHighlightFile=activity.getLuaDir().."/res/Highlight.lua"
LuaHighlight0={}
LuaHighlight00=0
for c in io.lines(LuaHighlightFile)
LuaHighlight0[LuaHighlight00]=c
LuaHighlight00=LuaHighlight00+1
end
InputLayout={
LinearLayout;
orientation="vertical";
Focusable=true,
FocusableInTouchMode=true,
{
TextView;
id="Prompt",
textSize="13sp",
layout_marginTop="10dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
textColor=tonumber(bjzt());
text=getLS("L_Custom_syntax_highlighting_separated_by_a_newline");
};
{
EditText;
layout_marginTop="5dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
id="editLH";
};
};
AlertDialog.Builder(this)
.setTitle(getLS("L_Custom_syntax_highlighting"))
.setView(loadlayout(InputLayout))
.setPositiveButton(getLS("L_Save"),{onClick=function(v)
LuaHighlightText0="return {"
for LuaHighlightText in (editLH.Text.."\n"):gmatch('(.-)\n') do
LuaHighlightText0=LuaHighlightText0..'\n"'..LuaHighlightText..'",'
end
LuaHighlightText0=LuaHighlightText0.."\n}"
io.open(LuaHighlightFile,"w"):write(LuaHighlightText0):close()
SnackerBar.build()
:msg(getLS("L_Save_success"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
end})
.setNegativeButton(getLS("L_Cancel"),nil)
.show()
for i=1,#LuaHighlight0-1 do
if i==1 then
editLH.Text=string.sub(LuaHighlight0[#LuaHighlight0-i],2,-3)
else
editLH.Text=string.sub(LuaHighlight0[#LuaHighlight0-i],2,-3).."\n"..editLH.Text
end
end
Typew1(editLH)
end,
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Custom_signature_key");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h522";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_A_custom_bar_symbols");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h5";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_The_custom_function_bar");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h566";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Donation");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="set90";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Log_out");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="h4";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Clear_the_cache");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
id="AndLuaSize0",
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="but3";
};
};
{
FrameLayout;
layout_width="-1";
layout_height="50dp";
{
ImageView;
src="res/Metrial394.png";
layout_width="23dp";
ColorFilter=TitleColor1;
layout_marginLeft="10dp";
layout_height="-1";
};
{
TextView;
text=getLS("L_Restore_the_default_Settings");
layout_marginLeft="50dp";
textSize="13sp";
textColor=TitleColor1,
gravity="center";
layout_height="-1";
};
{
Button;
layout_width="-1";
style="?android:attr/buttonBarButtonStyle";
layout_height="-1";
layout_margin="-20dp";
id="but37";
};
};
};
};
};
};
};
ztt()
ztl()
btl={
LinearLayout;
layout_width="fill";
elevation="2dp";
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_The_software_Settings");
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)
task(100,function()
activity.setContentView(loadlayout(main10))
ViewNight(ViewNight_lay1)
end)
task(200,function()
bw(Sideslip,0x5FFFFFFF)
Sideslip.onClick=function()
activity.result({"","","更新主题"})
end
wja=activity.getLuaDir().."/res/set7.LY"
hja=io.open(wja):read("*a")
if hja=="true" then
sz8.setChecked(true)
else
sz8.setChecked(false)
end
wjaa=activity.getLuaDir().."/res/set9.LY"
hjaa=io.open(wjaa):read("*a")
if hjaa=="true" then
sz299.setChecked(true)
else
sz299.setChecked(false)
end
h229.onClick=function()
if sz299.isChecked()==true then
wj=activity.getLuaDir().."/res/set9.LY"
io.open(wj,"w"):write("false"):close()
sz299.setChecked(false)
wj=activity.getLuaDir().."/res/set9.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz299.setChecked(true)
else
sz299.setChecked(false)
end
else
sz299.setChecked(true)
wj=activity.getLuaDir().."/res/set9.LY"
io.open(wj,"w"):write("true"):close()
wj=activity.getLuaDir().."/res/set9.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz299.setChecked(true)
else
sz299.setChecked(false)
end
end
end
h8.onClick=function()
if sz8.isChecked()==true then
wj=activity.getLuaDir().."/res/set7.LY"
io.open(wj,"w"):write("false"):close()
sz8.setChecked(false)
wj=activity.getLuaDir().."/res/set7.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz8.setChecked(true)
else
sz8.setChecked(false)
end
else
sz8.setChecked(true)
wj=activity.getLuaDir().."/res/set7.LY"
io.open(wj,"w"):write("true"):close()
wj=activity.getLuaDir().."/res/set7.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz8.setChecked(true)
else
sz8.setChecked(false)
end
end
end
wj=activity.getLuaDir().."/res/set2.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz2.setChecked(true)
else
sz2.setChecked(false)
end
wj=activity.getLuaDir().."/res/set211.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz02100.setChecked(true)
else
sz02100.setChecked(false)
end
wj=activity.getLuaDir().."/res/set207.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
swi0.setChecked(true)
else
swi0.setChecked(false)
end
function setS(id,file,bool,fun,cfun)
if bool then
if id.isChecked()==true then
wj=activity.getLuaDir().."/res/"..file
io.open(wj,"w"):write("false"):close()
if type(cfun)=="function" then
cfun()
end
else
wj=activity.getLuaDir().."/res/"..file
io.open(wj,"w"):write("true"):close()
if type(fun)=="function" then
fun()
end
end
end
wj=activity.getLuaDir().."/res/"..file
hj=io.open(wj):read("*a")
if hj=="true" then
id.setChecked(true)
else
id.setChecked(false)
end
end
setS(autoF,"set212.LY")
setS(btn_3_s,"set213.LY")
setS(JavaAPI_s,"set214.LY")
setS(btn_4_s,"set216.LY")
setS(CheckErrorS,"set218.LY")
setS(Night_mode_s,"set219.LY")
setS(luatodexs,"set220.LY")
btn_3.onClick=function()
setS(btn_3_s,"set213.LY",true)
end
btn_4.onClick=function()
setS(btn_4_s,"set216.LY",true)
end
JavaAPI.onClick=function()
setS(JavaAPI_s,"set214.LY",true)
end
CheckError.onClick=function()
setS(CheckErrorS,"set218.LY",true)
end
Night_modeB.onClick=function()
setS(Night_mode_s,"set219.LY",true,function()
Theme_style=io.open(activity.getLuaDir().."/Style/Comfortable"):read("*a")
Theme_style=string.gsub(Theme_style,"%$Theme_Color%$",bjzt())
io.open(activity.getLuaDir().."/res/set8.LY","w"):write(Theme_style):close()
end,function()
Theme_style=io.open(activity.getLuaDir().."/Style/Default"):read("*a")
Theme_style=string.gsub(Theme_style,"%$Theme_Color%$",bjzt())
io.open(activity.getLuaDir().."/res/set8.LY","w"):write(Theme_style):close()
end)
activity.result({"","","注销"})
end
autoF1.onClick=function()
setS(autoF,"set212.LY",true,function()
AlertDialog.Builder(this)
.setTitle(getLS("L_Prompt"))
.setMessage(getLS("L_Caton"))
.setPositiveButton(getLS("L_Determine"),nil)
.show()
end)
end
luatodex.onClick=function()
setS(luatodexs,"set220.LY",true,function()
AlertDialog.Builder(this)
.setTitle(getLS("L_Prompt"))
.setMessage(getLS("L_Lua_to_dex_Tips"))
.setPositiveButton(getLS("L_Determine"),nil)
.show()
end)
end
wj=activity.getLuaDir().."/res/set208.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
ShowLineNumbers.setChecked(true)
else
ShowLineNumbers.setChecked(false)
end
wj=activity.getLuaDir().."/res/set217.LY"
hj=io.open(wj):read("*a")
if hj=="1" then
Drawable_text.Text=getLS("L_Drawable_text_1")
else
Drawable_text.Text=getLS("L_Drawable_text_2")
end
ShowLineNumbers_btn.onClick=function()
if ShowLineNumbers.isChecked()==true then
wj=activity.getLuaDir().."/res/set208.LY"
io.open(wj,"w"):write("false"):close()
else
wj=activity.getLuaDir().."/res/set208.LY"
io.open(wj,"w"):write("true"):close()
end
wj=activity.getLuaDir().."/res/set208.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
ShowLineNumbers.setChecked(true)
else
ShowLineNumbers.setChecked(false)
end
end
sz2.onClick=function()
if sz2.isChecked()==true then
wj=activity.getLuaDir().."/res/set2.LY"
io.open(wj,"w"):write("true"):close()
wj=activity.getLuaDir().."/res/set2.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz2.setChecked(true)
else
sz2.setChecked(false)
end
else
wj=activity.getLuaDir().."/res/set2.LY"
io.open(wj,"w"):write("false"):close()
wj=activity.getLuaDir().."/res/set2.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz2.setChecked(true)
else
sz2.setChecked(false)
end
end
end
h2.onClick=function()
if sz2.isChecked()==true then
wj=activity.getLuaDir().."/res/set2.LY"
io.open(wj,"w"):write("false"):close()
sz2.setChecked(false)
wj=activity.getLuaDir().."/res/set2.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz2.setChecked(true)
else
sz2.setChecked(false)
end
else
sz2.setChecked(true)
wj=activity.getLuaDir().."/res/set2.LY"
io.open(wj,"w"):write("true"):close()
wj=activity.getLuaDir().."/res/set2.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz2.setChecked(true)
else
sz2.setChecked(false)
end
end
end
h021900.onClick=function()
if sz02100.isChecked()==true then
wj=activity.getLuaDir().."/res/set211.LY"
io.open(wj,"w"):write("false"):close()
sz02100.setChecked(false)
else
sz02100.setChecked(true)
wj=activity.getLuaDir().."/res/set211.LY"
io.open(wj,"w"):write("true"):close()
end
wj=activity.getLuaDir().."/res/set211.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz02100.setChecked(true)
else
sz02100.setChecked(false)
end
end
wj=activity.getLuaDir().."/res/set3.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz3.setChecked(true)
else
sz3.setChecked(false)
end
sz3.onClick=function()
if sz3.isChecked()==true then
wj=activity.getLuaDir().."/res/set3.LY"
io.open(wj,"w"):write("true"):close()
wj=activity.getLuaDir().."/res/set3.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz3.setChecked(true)
else
sz3.setChecked(false)
end
else
wj=activity.getLuaDir().."/res/set3.LY"
io.open(wj,"w"):write("false"):close()
wj=activity.getLuaDir().."/res/set3.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz3.setChecked(true)
else
sz3.setChecked(false)
end
end
end
function g()
jk.hide()
end
function g1()
dialog5.hide()
end
function Toas(a)
SnackerBar.build()
:msg(a)
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
end
function Gae(pass1,pass,alias)
require "import"
import "android.widget.*"
import "android.view.*"
import "java.io.File"
import "mods.andlua"
call("g")
if File("/sdcard/AndLua/keys/"..alias..".jks").isFile() then
call("Toas",getLS("L_File_already_exists"))
call("g1")
else
function Generate(pass1,pass,alias)
require "import"
import "kellinwood.security.zipsigner.optional.DistinguishedNameValues"
import "kellinwood.security.zipsigner.optional.CertCreator"
distinguishedNameValues = DistinguishedNameValues();
distinguishedNameValues.setCommonName("AndLua+");
distinguishedNameValues.setOrganization("AndLua+");
distinguishedNameValues.setOrganizationalUnit("AndLua+");
distinguishedNameValues.setStreet("");
distinguishedNameValues.setLocality("");
distinguishedNameValues.setCountry("");
distinguishedNameValues.setState("CN");
CertCreator.createKeystoreAndKey("/sdcard/AndLua/keys/"..alias..".jks",String(pass).toCharArray(),"RSA",2048,tostring(alias),String(pass1).toCharArray(),"SHA1withRSA",30,distinguishedNameValues)
end
local status, err = pcall(Generate,pass1,pass,alias)
if status==true then
TR=[[Password="]]..pass..[["
Alias="]]..alias..[["
AliasPassword="]]..pass1..[["]]
io.open("/sdcard/AndLua/keys/"..alias..".config","w"):write(TR):close()
call("Toas",getLS("L_Creating_a_successful"))
call("g1")
else
call("Toas",getLS("L_Create_a_failure"))
call("g1")
end
end
end
function jkss()
jks={getLS("L_The_default")}
import "java.io.File"
array=luajava.astable(File("/sdcard/AndLua/keys/").listFiles())
table.sort(array,function(a,b)
return (a.isDirectory()~=b.isDirectory() and a.isDirectory()) or ((a.isDirectory()==b.isDirectory()) and a.Name<b.Name)
end)
for i=1,#array do
jk=tostring(array[i])
jksN11=tostring(string.sub(tostring(File(jk).getName()),-4,-1))
if jksN11==".jks" then
jksN=string.sub(tostring(File(jk).getName()),1,-5)
jks[#jks+1]=jksN
end
end
end
cardNumber=getLS("L_The_default")
h522.onClick=function()
InputLayout={
LinearLayout;
layout_height="fill";
orientation="horizontal";
layout_width="fill";
gravity="center";
{
LinearLayout;
layout_height="fill";
orientation="horizontal";
layout_width="fill";
gravity="center";
layout_margin="15dp";
{
TextView;
text=getLS("L_The_signature_key");
textColor=TitleColor5;
layout_marginLeft="10dp";
textSize="18sp";
};
{
Spinner;
id="jksarr";
layout_width="fill";
layout_height="wrap_content";
};
};
};
AlertDialog.Builder(this)
.setTitle(getLS("L_Custom_signature_key"))
.setView(loadlayout(InputLayout))
.setPositiveButton(getLS("L_Determine"),{onClick=function(v)
io.open(activity.getLuaDir().."/res/jks","w"):write(cardNumber):close()
end})
.setNeutralButton(getLS("L_Generate_the_private"),{onClick=function(v)
InputLayout={
LinearLayout;
orientation="vertical";
Focusable=true,
FocusableInTouchMode=true,
{
TextView;
id="Prompt",
textSize="13sp",
layout_marginTop="10dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
textColor=tonumber(bjzt());
text=getLS("L_The_alias");
};
{
EditText;
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
id="edit";
};
{
TextView;
id="Prompt",
textSize="13sp",
layout_marginTop="10dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
textColor=tonumber(bjzt());
text=getLS("L_Password");
};
{
EditText;
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
id="edit1";
};
{
TextView;
id="Prompt",
textSize="13sp",
layout_marginTop="10dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
textColor=tonumber(bjzt());
text=getLS("L_The_alias_password");
};
{
EditText;
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
id="edit2";
};
};
jk=AlertDialog.Builder(this)
.setTitle(getLS("L_Generate_the_key"))
.setView(loadlayout(InputLayout))
.setPositiveButton(getLS("L_Create"),{onClick=function(v)
if edit1.Text=="" or edit2.Text=="" or edit.Text=="" then
SnackerBar.build()
:msg(getLS("L_Cannot_be_left_blank"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
dialog5= ProgressDialog(this)
dialog5.setProgressStyle(ProgressDialog.STYLE_SPINNER)
dialog5.setMessage(getLS("L_In_the_create").."...")
dialog5.setCancelable(true)
dialog5.setCanceledOnTouchOutside(false)
dialog5.show()
thread(Gae,edit2.Text,edit1.Text,edit.Text)
end
end})
.setNegativeButton(getLS("L_Cancel"),nil)
.show()
Typew1(edit)
end})
.setNegativeButton(getLS("L_Cancel"),nil)
.show()
aet=0
jkss()
adp = ArrayAdapter(activity,android.R.layout.simple_spinner_item,jks)
adp.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
jksarr.setAdapter(adp)
for i=0,#jks do
jksN2=tostring(File(tostring(jks[i])).getName())
if jksN2==tostring(io.open(activity.getLuaDir().."/res/jks"):read("*a")) then
jksarr.setSelection(i-1,true);
end
end
jksarr.onItemSelected=function(p,v,s,i)
cardNumber = tostring(v.Text)
end
end
h3.onClick=function()
if sz3.isChecked()==true then
wj=activity.getLuaDir().."/res/set3.LY"
io.open(wj,"w"):write("false"):close()
sz3.setChecked(false)
wj=activity.getLuaDir().."/res/set3.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz3.setChecked(true)
else
sz3.setChecked(false)
end
else
sz3.setChecked(true)
wj=activity.getLuaDir().."/res/set3.LY"
io.open(wj,"w"):write("true"):close()
wj=activity.getLuaDir().."/res/set3.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz3.setChecked(true)
else
sz3.setChecked(false)
end
end
end
h119.onClick=function()
if sz119.isChecked()==true then
wj=activity.getLuaDir().."/res/set119.LY"
io.open(wj,"w"):write("false"):close()
sz119.setChecked(false)
wj=activity.getLuaDir().."/res/set119.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz119.setChecked(true)
else
sz119.setChecked(false)
end
else
sz119.setChecked(true)
wj=activity.getLuaDir().."/res/set119.LY"
io.open(wj,"w"):write("true"):close()
wj=activity.getLuaDir().."/res/set119.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz119.setChecked(true)
else
sz119.setChecked(false)
end
end
end
h1190.onClick=function()
if sz1190.isChecked()==true then
wj=activity.getLuaDir().."/res/set209.LY"
io.open(wj,"w"):write("false"):close()
sz1190.setChecked(false)
else
sz1190.setChecked(true)
wj=activity.getLuaDir().."/res/set209.LY"
io.open(wj,"w"):write("true"):close()
end
wj=activity.getLuaDir().."/res/set209.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz1190.setChecked(true)
else
sz1190.setChecked(false)
end
end
wj=activity.getLuaDir().."/res/set209.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz1190.setChecked(true)
else
sz1190.setChecked(false)
end
wj=activity.getLuaDir().."/res/set119.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz119.setChecked(true)
else
sz119.setChecked(false)
end
wj=activity.getLuaDir().."/res/set121.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
and1210.setChecked(true)
else
and1210.setChecked(false)
end
and121.onClick=function()
if and1210.isChecked()==true then
wj=activity.getLuaDir().."/res/set121.LY"
io.open(wj,"w"):write("false"):close()
else
wj=activity.getLuaDir().."/res/set121.LY"
io.open(wj,"w"):write("true"):close()
end
wj=activity.getLuaDir().."/res/set121.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
and1210.setChecked(true)
else
and1210.setChecked(false)
end
end
wj=activity.getLuaDir().."/res/set201.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
hh124.setChecked(true)
else
hh124.setChecked(false)
end
h124.onClick=function()
if hh124.isChecked()==true then
wj=activity.getLuaDir().."/res/set201.LY"
io.open(wj,"w"):write("false"):close()
else
wj=activity.getLuaDir().."/res/set201.LY"
io.open(wj,"w"):write("true"):close()
AlertDialog.Builder(this)
.setTitle(getLS("L_Prompt"))
.setMessage(getLS("L_Caton"))
.setPositiveButton(getLS("L_Determine"),nil)
.show()
end
wj=activity.getLuaDir().."/res/set201.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
hh124.setChecked(true)
else
hh124.setChecked(false)
end
end
wj=activity.getLuaDir().."/res/set206.LY"
hj=io.open(wj):read("*a")
if hj=="chinese" then
language_text.Text="简体中文"
else
language_text.Text="English"
end
language.onClick=function()
wj=activity.getLuaDir().."/res/set206.LY"
hj=io.open(wj):read("*a")
if hj=="chinese" then
io.open(wj,"w"):write("english"):close()
language_text.Text="English"
SnackerBar.build()
:msg("Restart and take effect")
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
Refresh_language()
Cleardata(false)
else
io.open(wj,"w"):write("chinese"):close()
language_text.Text="简体中文"
SnackerBar.build()
:msg("重新启动生效")
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
Refresh_language()
Cleardata(false)
end
end
h4.onClick=function()
u1=activity.getLuaDir().."/res/uid1.LY"
u2=activity.getLuaDir().."/res/uid2.LY"
u3=activity.getLuaDir().."/res/uid3.LY"
u4=activity.getLuaDir().."/res/uid4.LY"
io.open(u4,"w"):write(""):close()
io.open(u1,"w"):write(""):close()
io.open(u2,"w"):write(""):close()
io.open(u3,"w"):write("false"):close()
u6=activity.getLuaDir().."/res/set6.LY"
io.open(u6,"w"):write("false"):close()
import "com.tencent.connect.*"
import "com.tencent.connect.common.*"
import "com.tencent.tauth.*"
AppId="101486111"
mTencent=Tencent.createInstance(AppId,this)
mIUiListener=IUiListener({
onComplete=function(p1)
if (null == p1) then
Toast.makeText(this, "登录失败",0).show();
return
end
jsonResponse = p1;
if (null ~= jsonResponse and jsonResponse.length()==0) then
Toast.makeText(this, "登录失败",0).show();
return;
end
Toast.makeText(this, "登录成功",0).show();
Toast.makeText(this, jsonResponse.toString(),0).show();
end
})
mTencent.logout(this)
function onActivityResult( requestCode, resultCode, data)
if requestCode == Constants.REQUEST_LOGIN or requestCode == Constants.REQUEST_APPBAR then
Tencent.onActivityResultData(requestCode,resultCode,data,mIUiListener);
end
end
u4=activity.getLuaDir().."/res/set202.LY"
io.open(u4,"w"):write("false"):close()
activity.result({"","","注销"})
end
function gxlua(auu,b)
wj24=activity.getLuaDir().."/res/set8.LY"
hj24=io.open(wj24):read("*a")
hj26=hj24:match("%["..auu..'%]="(.-)"')
hj25=auu..']="'..hj26..'"'
hj27=auu..']="'..b..'"'
hj28=string.gsub(hj24,hj25,hj27)
io.open(wj24,"w"):write(hj28):close()
end
but37.onClick=function()
Cleardata(true)
activity.result({"","","注销"})
end
h21.onClick=function()
ztdx={
LinearLayout;
layout_height="fill";
orientation="vertical";
layout_width="fill";
{
EditText;
layout_gravity="center";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
id="sz31";
singleLine=true;
MaxEms="3";
InputType="number";
};
{
SeekBar;
layout_marginTop="10dp";
layout_gravity="center";
layout_width="87%w";
Max="100";
id="sz311";
};
};
AlertDialog.Builder(this)
.setTitle(getLS("L_The_font_size"))
.setView(loadlayout(ztdx))
.setPositiveButton(getLS("L_Determine"),{onClick=function(v)
gxlua("TextSize",sz31.Text)
sxys()
end})
.setNeutralButton(getLS("L_The_default"),{onClick=function(v)
gxlua("TextSize","45")
sxys()
end})
.setNegativeButton(getLS("L_Cancel"),nil)
.show()
sz31.setText(sz21.Text)
sz311.setProgress(tonumber(sz21.Text))
sz311.setOnSeekBarChangeListener{
onProgressChanged=function()
sz31.setText(tostring(sz311.getProgress()))
sz31.setSelection(#sz31.Text)
end}
sz31.addTextChangedListener{
onTextChanged=function(s)
if #sz31.Text>=4 then
sz31.setText(string.sub(sz31.Text,0,3))
else
end
if sz31.Text=="" then
sz311.setProgress(0)
else
sz311.setProgress(tonumber(sz31.Text))
end
end
}
end
h5.onClick=function()
u3=activity.getLuaDir().."/res/set5.LY"
fy=io.open(u3):read("*a")
fyy=fy:match('(.+) AndLua%+@LY')
InputLayout={
LinearLayout;
orientation="vertical";
Focusable=true,
FocusableInTouchMode=true,
{
TextView;
id="Prompt",
textSize="13sp",
layout_marginTop="10dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
textColor=tonumber(bjzt());
text=getLS("L_Enter_a_custom_symbols_separated_by_Spaces");
};
{
EditText;
layout_marginTop="5dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
id="edit";
textSize="15sp",
};
};
tc=AlertDialog.Builder(this)
.setTitle(getLS("L_A_custom_bar_symbols"))
.setView(loadlayout(InputLayout))
.setPositiveButton(getLS("L_Modify_the"),{onClick=function(v)
if edit.Text=="" then
SnackerBar.build()
:msg(getLS("L_Please_enter_the_custom_symbols"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
if io.open(u3,"w"):write(edit.Text.." AndLua+@LY"):close() then
SnackerBar.build()
:msg(getLS("L_Modify_the_success"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
SnackerBar.build()
:msg(getLS("L_Modify_the_failure"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
end
end
end})
.setNegativeButton(getLS("L_Cancel"),nil)
.show()
edit.setText(fyy)
Typew1(edit)
edit.addTextChangedListener{
onTextChanged=function(s)
if edit.Text=="" then
tc.getButton(tc.BUTTON_POSITIVE).setEnabled(false)
else
tc.getButton(tc.BUTTON_POSITIVE).setEnabled(true)
end
end
}
end
h566.onClick=function()
u3=activity.getLuaDir().."/res/s1.LY"
fy=io.open(u3):read("*a")
fyy=fy:match('(.+) AndLua%+@LY')
InputLayout={
LinearLayout;
orientation="vertical";
Focusable=true,
FocusableInTouchMode=true,
{
TextView;
id="Prompt",
textSize="13sp",
layout_marginTop="10dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
textColor=tonumber(bjzt());
text=getLS("L_Please_enter_the_function_name_separated_by_Spaces");
};
{
EditText;
layout_marginTop="5dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
id="edit";
textSize="15sp",
};
};
tc=AlertDialog.Builder(this)
.setTitle(getLS("L_The_custom_function_bar"))
.setView(loadlayout(InputLayout))
.setPositiveButton(getLS("L_Modify_the"),{onClick=function(v)
if edit.Text=="" then
SnackerBar.build()
:msg(getLS("L_Canot_be_empty"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
if io.open(u3,"w"):write(edit.Text.." AndLua+@LY"):close() then
SnackerBar.build()
:msg(getLS("L_Modify_the_success"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
SnackerBar.build()
:msg(getLS("L_Modify_the_failure"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
end
end
end})
.setNegativeButton(getLS("L_Cancel"),nil)
.show()
edit.setText(fyy)
Typew1(edit)
edit.addTextChangedListener{
onTextChanged=function(s)
if edit.Text=="" then
tc.getButton(tc.BUTTON_POSITIVE).setEnabled(false)
else
tc.getButton(tc.BUTTON_POSITIVE).setEnabled(true)
end
end
}
end
function CircleButton1(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
function qys(a)
wj21=activity.getLuaDir().."/res/set8.LY"
hj21=io.open(wj21):read("*a")
return hj21:match("%["..a..'%]="(.-)"')
end
function sxys()
CircleButton1(s22,tonumber(qys("BackgroundColor")),90)
CircleButton1(s23,tonumber(qys("TextColor")),90)
CircleButton1(s24,tonumber(qys("KeywordColor")),90)
CircleButton1(s25,tonumber(qys("UserwordColor")),90)
CircleButton1(s26,tonumber(qys("BasewordColor")),90)
CircleButton1(s27,tonumber(qys("StringColor")),90)
CircleButton1(s28,tonumber(qys("CommentColor")),90)
CircleButton1(s150,tonumber(qys("PanelBackgroundColor")),90)
CircleButton1(s151,tonumber(qys("PanelTextColor")),90)
sz21.setText(tostring(qys("TextSize")))
wj=activity.getLuaDir().."/res/set205.LY"
hj=tointeger(io.open(wj):read("*a"))
color2.BackgroundColor=hj
end
sxys()
h22.onClick=function()
yss(getLS("L_The_background_color"),qys("BackgroundColor"),sj,"1")
end
h23.onClick=function()
yss(getLS("L_The_font_color"),qys("TextColor"),sj1,"2")
end
h24.onClick=function()
yss(getLS("L_Key_words_color"),qys("KeywordColor"),sj2,"3")
end
h25.onClick=function()
yss(getLS("L_Function_of_color"),qys("UserwordColor"),sj3,"4")
end
h26.onClick=function()
yss(getLS("L_The_class_library_color"),qys("BasewordColor"),sj4,"5")
end
h27.onClick=function()
yss(getLS("L_String_color"),qys("StringColor"),sj5,"6")
end
h28.onClick=function()
yss(getLS("L_Annotation_color"),qys("CommentColor"),sj6,"7")
end
h150.onClick=function()
yss(getLS("L_The_color_code_completion"),qys("PanelBackgroundColor"),sj7,"8")
end
h151.onClick=function()
yss(getLS("L_Code_completion_border_text_color"),qys("PanelTextColor"),sj8,"9")
end
but2.onClick=function()
wj=activity.getLuaDir().."/res/set205.LY"
hj=io.open(wj):read("*a")
yss(getLS("L_Theme_colors"),hj,sj10,"10")
end
set3.onClick=function()
if kg3.isChecked()==true then
wj=activity.getLuaDir().."/res/set14.LY"
io.open(wj,"w"):write("false"):close()
kg3.setChecked(false)
wj=activity.getLuaDir().."/res/set14.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
kg3.setChecked(true)
else
kg3.setChecked(false)
end
else
kg3.setChecked(true)
wj=activity.getLuaDir().."/res/set14.LY"
io.open(wj,"w"):write("true"):close()
wj=activity.getLuaDir().."/res/set14.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
kg3.setChecked(true)
else
kg3.setChecked(false)
end
end
end
set111.onClick=function()
if kg111.isChecked()==true then
wj=activity.getLuaDir().."/res/set19.LY"
io.open(wj,"w"):write("false"):close()
kg111.setChecked(false)
wj=activity.getLuaDir().."/res/set19.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
kg111.setChecked(true)
else
kg111.setChecked(false)
end
activity.getWindow().setNavigationBarColor(0xffffffff)
else
kg111.setChecked(true)
wj=activity.getLuaDir().."/res/set19.LY"
io.open(wj,"w"):write("true"):close()
wj=activity.getLuaDir().."/res/set19.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
kg111.setChecked(true)
else
kg111.setChecked(false)
end
activity.getWindow().setNavigationBarColor(tonumber(bjzt()))
end
end
wj=activity.getLuaDir().."/res/set19.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
kg111.setChecked(true)
else
kg111.setChecked(false)
end
h0219.onClick=function()
if sz0219.isChecked()==true then
wj=activity.getLuaDir().."/res/set203.LY"
io.open(wj,"w"):write("false"):close()
sz0219.setChecked(false)
else
wj=activity.getLuaDir().."/res/set203.LY"
io.open(wj,"w"):write("true"):close()
sz0219.setChecked(false)
AlertDialog.Builder(this)
.setTitle(getLS("L_Prompt"))
.setMessage(getLS("Streamlining_packaging"))
.setPositiveButton(getLS("L_Determine"),nil)
.show()
end
wj=activity.getLuaDir().."/res/set203.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz0219.setChecked(true)
else
sz0219.setChecked(false)
end
end
wj=activity.getLuaDir().."/res/set203.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
sz0219.setChecked(true)
else
sz0219.setChecked(false)
end
but1.onClick=function()
if swi1.isChecked()==true then
wj=activity.getLuaDir().."/res/set204.LY"
io.open(wj,"w"):write("false"):close()
swi1.setChecked(false)
else
wj=activity.getLuaDir().."/res/set204.LY"
io.open(wj,"w"):write("true"):close()
swi1.setChecked(false)
end
wj=activity.getLuaDir().."/res/set204.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
swi1.setChecked(true)
else
swi1.setChecked(false)
end
end
wj=activity.getLuaDir().."/res/set204.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
swi1.setChecked(true)
else
swi1.setChecked(false)
end
wj=activity.getLuaDir().."/res/set14.LY"
hj=io.open(wj):read("*a")
if hj=="true" then
kg3.setChecked(true)
else
kg3.setChecked(false)
end
wj=activity.getLuaDir().."/res/background.time"
hj=io.open(wj):read("*a")
if hj=="0" then
zdbf.setText(getLS("L_Shut_down_1"))
else
if tointeger(tointeger(hj)/60000)==0 then
zdbf.setText(tointeger(tointeger(hj)/1000)..getLS("L_Seconds"))
elseif tointeger(tointeger(hj)/60000)>60 then
zdbf.setText(tointeger(tointeger(hj)/60000/60)..getLS("L_Hours"))
else
zdbf.setText(tointeger(tointeger(hj)/60000)..getLS("L_Minutes"))
end
end
zdbf1.onClick=function()
u3=activity.getLuaDir().."/res/background.time"
fy=io.open(u3):read("*a")
InputLayout={
LinearLayout;
orientation="vertical";
Focusable=true,
FocusableInTouchMode=true,
{
TextView;
id="Prompt",
textSize="13sp",
layout_marginTop="10dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
layout_gravity="center",
textColor=tonumber(bjzt());
text=getLS("L_Please_enter_the_automatic_backup_time_the_unit_milliseconds_0_to_shut_down");
};
{
EditText;
layout_marginTop="5dp";
layout_marginLeft="10dp",
layout_marginRight="10dp",
layout_width="match_parent";
InputType="number";
layout_gravity="center",
id="edit";
textSize="15sp",
};
};
tc=AlertDialog.Builder(this)
.setTitle(getLS("L_Automatic_backup"))
.setView(loadlayout(InputLayout))
.setPositiveButton(getLS("L_Modify_the"),{onClick=function(v)
if edit.Text=="" then
SnackerBar.build()
:msg(getLS("L_Canot_be_empty"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
if tointeger(edit.Text)==0 then
if io.open(u3,"w"):write(edit.Text):close() then
SnackerBar.build()
:msg(getLS("L_Modify_the_success"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
SnackerBar.build()
:msg(getLS("L_Modify_the_failure"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
end
wj=activity.getLuaDir().."/res/background.time"
hj=io.open(wj):read("*a")
if hj=="0" then
zdbf.setText(getLS("L_Shut_down_1"))
else
if tointeger(tointeger(hj)/60000)==0 then
zdbf.setText(tointeger(tointeger(hj)/1000)..getLS("L_Seconds"))
elseif tointeger(tointeger(hj)/60000)>60 then
zdbf.setText(tointeger(tointeger(hj)/60000/60)..getLS("L_Hours"))
else
zdbf.setText(tointeger(tointeger(hj)/60000)..getLS("L_Minutes"))
end
end
elseif tointeger(edit.Text)<1000 then
SnackerBar.build()
:msg(getLS("L_Not_less_than_1_second"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
if io.open(u3,"w"):write(edit.Text):close() then
SnackerBar.build()
:msg(getLS("L_Modify_the_success"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
else
SnackerBar.build()
:msg(getLS("L_Modify_the_failure"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
end
wj=activity.getLuaDir().."/res/background.time"
hj=io.open(wj):read("*a")
if hj=="0" then
zdbf.setText(getLS("L_Shut_down_1"))
else
if tointeger(tointeger(hj)/60000)==0 then
zdbf.setText(tointeger(tointeger(hj)/1000)..getLS("L_Seconds"))
elseif tointeger(tointeger(hj)/60000)>60 then
zdbf.setText(tointeger(tointeger(hj)/60000/60)..getLS("L_Hours"))
else
zdbf.setText(tointeger(tointeger(hj)/60000)..getLS("L_Minutes"))
end
end
end
end
end})
.setNegativeButton(getLS("L_Cancel"),nil)
.show()
edit.setText(fy)
Typew1(edit)
edit.addTextChangedListener{
onTextChanged=function(s)
if edit.Text=="" then
tc.getButton(tc.BUTTON_POSITIVE).setEnabled(false)
else
tc.getButton(tc.BUTTON_POSITIVE).setEnabled(true)
end
end
}
end
function sy()
wj=activity.getLuaDir().."/res/set13.LY"
hj=io.open(wj):read("*a")
if hj=="1" then
CircleButton1(kg2,0xFF1976d2,90)
elseif hj=="2" then
CircleButton1(kg2,0xFFFF4081,90)
elseif hj=="3" then
CircleButton1(kg2,0xFF607D8B,90)
elseif hj=="4" then
CircleButton1(kg2,0xFF455A64,90)
elseif hj=="5" then
CircleButton1(kg2,0xFF2196F3,90)
elseif hj=="6" then
CircleButton1(kg2,0xFFD32F2F,90)
elseif hj=="7" then
CircleButton1(kg2,0xFFF44336,90)
elseif hj=="8" then
CircleButton1(kg2,0xFF795548,90)
elseif hj=="9" then
CircleButton1(kg2,0xFF5D4037,90)
elseif hj=="10" then
CircleButton1(kg2,0xFFFFC107,90)
elseif hj=="11" then
CircleButton1(kg2,0xFFFF9800,90)
elseif hj=="12" then
CircleButton1(kg2,0xFFF57C00,90)
elseif hj=="13" then
CircleButton1(kg2,0xFF9E9E9E,90)
elseif hj=="14" then
CircleButton1(kg2,0xFF000000,90)
elseif hj=="15" then
CircleButton1(kg2,0xFF388E3C,90)
elseif hj=="16" then
CircleButton1(kg2,0xFF8BC34A,90)
elseif hj=="17" then
CircleButton1(kg2,0xFF9C27B0,90)
elseif hj=="18" then
CircleButton1(kg2,0xff009688,90)
elseif hj=="19" then
CircleButton1(kg2,0xFF7870BB,90)
else
CircleButton1(kg2,0xFF2196F3,90)
end
end
sy()
ztfg1={
LinearLayout;
layout_width="fill";
layout_height="fill";
{
ScrollView;
VerticalScrollBarEnabled=false;
overScrollMode=2;
layout_height="fill";
layout_width="fill";
{
LinearLayout;
layout_width="fill";
orientation="vertical";
layout_height="fill";
{
LinearLayout;
layout_marginTop="15dp";
layout_height="80dp";
layout_width="-1";
layout_marginRight="15dp";
layout_marginLeft="15dp";
{
LinearLayout;
layout_weight="1";
layout_width="-1";
gravity="center";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy1";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy2";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy3";
layout_height="70dp";
};
};
};
{
LinearLayout;
layout_width="-1";
layout_marginRight="15dp";
layout_marginLeft="15dp";
layout_height="80dp";
{
LinearLayout;
layout_weight="1";
layout_width="-1";
gravity="center";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy4";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy5";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy6";
layout_height="70dp";
};
};
};
{
LinearLayout;
layout_height="80dp";
layout_marginRight="15dp";
layout_width="-1";
layout_marginLeft="15dp";
{
LinearLayout;
layout_weight="1";
layout_width="-1";
gravity="center";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy7";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy8";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy9";
layout_height="70dp";
};
};
};
{
LinearLayout;
layout_height="80dp";
layout_marginRight="15dp";
layout_width="-1";
layout_marginLeft="15dp";
{
LinearLayout;
layout_weight="1";
layout_width="-1";
gravity="center";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy10";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy11";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy12";
layout_height="70dp";
};
};
};
{
LinearLayout;
layout_height="80dp";
layout_marginRight="15dp";
layout_width="-1";
layout_marginLeft="15dp";
{
LinearLayout;
layout_weight="1";
layout_width="-1";
gravity="center";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy13";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy14";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy15";
layout_height="70dp";
};
};
};
{
LinearLayout;
layout_height="80dp";
layout_marginRight="15dp";
layout_width="-1";
layout_marginLeft="15dp";
{
LinearLayout;
layout_weight="1";
layout_width="-1";
gravity="center";
layout_height="-1";
{
CardView;
elevation="1dp";
elevation="1dp";
layout_width="70dp";
id="sy16";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy17";
layout_height="70dp";
};
};
{
LinearLayout;
layout_weight="1";
gravity="center";
layout_width="-1";
layout_height="-1";
{
CardView;
elevation="1dp";
layout_width="70dp";
id="sy18";
layout_height="70dp";
};
};
};
{
LinearLayout;
layout_height="80dp";
layout_marginRight="15dp";
layout_marginBottom="15dp";
layout_marginLeft="15dp";
{
LinearLayout;
gravity="center";
layout_marginLeft="12dp";
layout_height="-1";
{
CardView;
elevation="1dp";
elevation="1dp";
layout_width="70dp";
id="sy19";
layout_height="70dp";
};
};
};
};
};
};
set2.onClick=function()
ysb=AlertDialog.Builder(this)
.setView(loadlayout(ztfg1))
.show()
CircleButton1(sy1,0xFF1976d2,15)
CircleButton1(sy2,0xFFFF4081,15)
CircleButton1(sy3,0xFF607D8B,15)
CircleButton1(sy4,0xFF455A64,15)
CircleButton1(sy5,0xFF2196F3,15)
CircleButton1(sy6,0xFFD32F2F,15)
CircleButton1(sy7,0xFFF44336,15)
CircleButton1(sy8,0xFF795548,15)
CircleButton1(sy9,0xFF5D4037,15)
CircleButton1(sy10,0xFFFFC107,15)
CircleButton1(sy11,0xFFFF9800,15)
CircleButton1(sy12,0xFFF57C00,15)
CircleButton1(sy13,0xFF9E9E9E,15)
CircleButton1(sy14,0xFF000000,15)
CircleButton1(sy15,0xFF388E3C,15)
CircleButton1(sy16,0xFF8BC34A,15)
CircleButton1(sy17,0xFF9C27B0,15)
CircleButton1(sy18,0xff009688,15)
CircleButton1(sy19,0xff7870BB,15)
sy1.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("1"):close()
sy()
wj=activity.getLuaDir().."/res/1.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF1976d2")
gxlua("PanelTextColor","0xFF1976d2")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF1976d2"):close()
end
sy2.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("2"):close()
sy()
wj=activity.getLuaDir().."/res/2.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFFFF4081")
gxlua("PanelTextColor","0xFFFF4081")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFFF4081"):close()
end
sy3.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("3"):close()
sy()
wj=activity.getLuaDir().."/res/3.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF607D8B")
gxlua("PanelTextColor","0xFF607D8B")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF607D8B"):close()
end
sy4.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("4"):close()
sy()
wj=activity.getLuaDir().."/res/4.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF455A64")
gxlua("PanelTextColor","0xFF455A64")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF455A64"):close()
end
sy5.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("5"):close()
sy()
wj=activity.getLuaDir().."/res/5.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF2196F3")
gxlua("PanelTextColor","0xFF2196F3")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF2196F3"):close()
end
sy6.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("6"):close()
sy()
wj=activity.getLuaDir().."/res/6.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFFD32F2F")
gxlua("PanelTextColor","0xFFD32F2F")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFD32F2F"):close()
end
sy7.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("7"):close()
sy()
wj=activity.getLuaDir().."/res/7.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFFF44336")
gxlua("PanelTextColor","0xFFF44336")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFF44336"):close()
end
sy8.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("8"):close()
sy()
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
wj=activity.getLuaDir().."/res/8.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
gxlua("StringColor","0xFF795548")
gxlua("PanelTextColor","0xFF795548")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF795548"):close()
end
sy9.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("9"):close()
sy()
wj=activity.getLuaDir().."/res/9.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF5D4037")
gxlua("PanelTextColor","0xFF5D4037")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF5D4037"):close()
end
sy10.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("10"):close()
sy()
wj=activity.getLuaDir().."/res/10.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFFFFC107")
gxlua("PanelTextColor","0xFFFFC107")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFFFC107"):close()
end
sy11.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("11"):close()
sy()
wj=activity.getLuaDir().."/res/11.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFFFF9800")
gxlua("PanelTextColor","0xFFFF9800")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFFF9800"):close()
end
sy12.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("12"):close()
sy()
wj=activity.getLuaDir().."/res/12.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFFF57C00")
gxlua("PanelTextColor","0xFFF57C00")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFFF57C00"):close()
end
sy13.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("13"):close()
sy()
wj=activity.getLuaDir().."/res/13.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF9E9E9E")
gxlua("PanelTextColor","0xFF9E9E9E")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF9E9E9E"):close()
end
sy16.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("16"):close()
sy()
wj=activity.getLuaDir().."/res/16.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF8BC34A")
gxlua("PanelTextColor","0xFF8BC34A")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF8BC34A"):close()
end
sy14.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("14"):close()
wj=activity.getLuaDir().."/res/14.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
sy()
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF000000")
gxlua("PanelTextColor","0xFF000000")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF000000"):close()
end
sy15.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("15"):close()
sy()
wj=activity.getLuaDir().."/res/15.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF388E3C")
gxlua("PanelTextColor","0xFF388E3C")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF388E3C"):close()
end
sy17.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("17"):close()
sy()
wj=activity.getLuaDir().."/res/17.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF9C27B0")
gxlua("PanelTextColor","0xFF9C27B0")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF9C27B0"):close()
end
sy18.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("18"):close()
sy()
wj=activity.getLuaDir().."/res/18.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF009688")
gxlua("PanelTextColor","0xFF009688")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF009688"):close()
end
sy19.onClick=function()
wj=activity.getLuaDir().."/res/set13.LY"
io.open(wj,"w"):write("19"):close()
sy()
wj=activity.getLuaDir().."/res/19.png"
wj1=activity.getLuaDir().."/icon.png"
LuaUtil.copyDir(wj,wj1)
ysb.hide()
activity.recreate()
io.open(activity.getLuaDir().."/theme",'w')
gxlua("StringColor","0xFF7870BB")
gxlua("PanelTextColor","0xFF7870BB")
io.open(activity.getLuaDir().."/res/set205.LY","w"):write("0xFF7870BB"):close()
end
end
set90.onClick=function()
layout={
LinearLayout;
orientation="vertical";
{
ImageView;
scaleType="fitXY";
layout_width="match_parent";
src="res/donation.png",
};
};
AlertDialog.Builder(this)
.setTitle(getLS("L_Giving_the_author"))
.setMessage(getLS("L_Donation_0"))
.setPositiveButton(getLS("L_Pay_treasure"),{onClick=function(v)
import "android.content.Intent"
import "android.net.Uri"
viewIntent = Intent("android.intent.action.VIEW",Uri.parse("https://qr.alipay.com/fkx00937fkhctswypmwirb2?t=1582042047438"))
activity.startActivity(viewIntent)
end})
.setNeutralButton(getLS("L_The_next_time_a_certain"),nil)
.setNegativeButton(getLS("L_Donation_1"),{onClick=function(v)
AlertDialog.Builder(activity)
.setView(loadlayout(layout))
.show()
end})
.show()
end
function setAndLuaSize(size)
AndLuaSize0.Text=getLS("L_Clear_the_cache").."("..size..")"
end
task(1000,function()
thread(function()
require "import"
import "java.io.File"
import "com.andlua.size"
call("setAndLuaSize",size.getFormatSize(size.getFolderSize(File("/storage/emulated/0/AndroLua/cache"))+size.getFolderSize(File("/storage/emulated/0/AndLua/cache/"))))
end)
end)
but3.onClick=function()
os.execute("rm -r ".."/sdcard/AndLua/cache/")
os.execute("rm -r ".."/sdcard/AndroLua/cache/")
os.execute("mkdir /sdcard/AndLua/cache")
os.execute("mkdir /sdcard/AndroLua/cache")
SnackerBar.build()
:msg(getLS("L_Clear_success"))
:actionText(getLS("L_OK"))
:action(function()
end)
:show()
AndLuaSize0.Text=getLS("L_Clear_the_cache")
end
end)
function onKeyDown(c,e)
if c==4 then
activity.result({"","","更新主题"})
end
end
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

搜索帮助