Libraryless. Click here for Pure Java version (3999L/27K/102K).
!7 set flag Android. p { final EditText tvEmail = aTextInput(androidAssistant_userEmail()); final EditText tvPW = aPasswordInput(); final TextView tvResult = aFontSize(20, aForeground(aRed(), aCenteredTextView())); aShow(aVerticalStack( aForeground(aBlack(), aBold(aFontSize(24, aCenteredTextView("Register to start using your personal assistant!")))), aVerticalSpacer(25), tvResult, aVerticalSpacer(25), aBold(aFontSize(20, aCenteredTextView("Your e-mail address:"))), aCenterTextView(tvEmail), aVerticalSpacer(25), aFontSize(20, aCenteredTextView("Please choose a password:")), aCenterTextView(tvPW), aVerticalSpacer(30), aButton("Register", r { final Button btn = heldInstance(Button); thread { temp aTempDisable(btn); S pw = aGetText(tvPW); S error = assistant_checkPasswordStructure(pw); if (nempty(error)) ret with aSetText(tvResult, error); temp aTempSetText(btn, "Registering..."); aSetText(tvResult, postPage("http://botcompany.de:8083/register", email := aGetText(tvEmail), pwHash := assistant_hashPassword(pw))); } }))); aFocus(tvEmail); aSelectAll(tvEmail); aShowKeyboard(); }
Began life as a copy of #1023323
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, odkhaoglnmdk, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023340 |
Snippet name: | Android registration screen test |
Eternal ID of this version: | #1023340/19 |
Text MD5: | 900d12280335da5b2238ac500f77045f |
Transpilation MD5: | ab47c1d0b18e28e0024ddb5a1cc8b34b |
Author: | stefan |
Category: | javax / android |
Type: | JavaX source code (Android) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-06-07 10:16:01 |
Source code size: | 1272 bytes / 37 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 268 / 481 |
Version history: | 18 change(s) |
Referenced in: | -