!752 concepts. concept UserLine { S text; *() {} *(S *text) { change(); } } concept SystemAnswer { new Ref<UserLine> userLine; S text; } static EditText tf; static ASingleComponentPanel scp; static UserLine userLine; static SystemAnswer systemAnswer; p-android { loadAndAutoSaveConcepts(); androidShow(aNorthAndCenter( tf = aCenteredTextField("What is love?"), scp = new ASingleComponentPanel(aCenteredHtmlLabel("Yo!")))); aOnEnter(tf, r { S s = str(tf.getText()).trim(); userLine = new UserLine(s); S answer = "Yeah. " + s; systemAnswer = cnew(SystemAnswer, +userLine, "text", answer); scp.setComponent(aCenteredHtmlLabel(htmlencode(answer))); }); }
Began life as a copy of #1005320
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005323 |
Snippet name: | Smart Console [Android, dev.] |
Eternal ID of this version: | #1005323/1 |
Text MD5: | 19ae2f609a8792b4563d98fe4ccb6471 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Android) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-05 14:51:05 |
Source code size: | 743 bytes / 35 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 522 / 535 |
Referenced in: | -