Libraryless. Compilation Failed (1168L/8K).
1 | !7 |
2 | |
3 | import android.widget.*; |
4 | import android.widget.GridLayout; |
5 | import android.view.*; |
6 | import android.view.ViewGroup.LayoutParams; |
7 | |
8 | p { |
9 | androidUI(r { |
10 | GridLayout gv = new GridLayout(androidActivity()); |
11 | for (S s : splitAtSpace("Yes No Stop")) |
12 | gv.addView(aButton(s)); |
13 | |
14 | LinearLayout ll = new LinearLayout(androidActivity()); |
15 | ll.setOrientation(ll.HORIZONTAL); |
16 | ll.addView(gv); |
17 | //gv.getLayoutParams().gravity = Gravity.CENTER; |
18 | /*LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.FILL_PARENT); |
19 | //params.weight = 1.0f; |
20 | params.gravity = Gravity.CENTER; |
21 | gv.setLayoutParams(params);*/ |
22 | ((LinearLayout.LayoutParams) gv.getLayoutParams()).setGravity(Gravity.CENTER); |
23 | androidShow(ll); |
24 | }); |
25 | } |
Began life as a copy of #1008243
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, nbgitpuheiab, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008245 |
Snippet name: | Android GridLayout Horizontal Center Test |
Eternal ID of this version: | #1008245/7 |
Text MD5: | cc6a864feacd8082299083543471b1fb |
Transpilation MD5: | 074d0271ab9493e899d1bf971cf7daa7 |
Author: | stefan |
Category: | javax / android |
Type: | JavaX source code (Android) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-02 17:06:53 |
Source code size: | 814 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 495 / 556 |
Version history: | 6 change(s) |
Referenced in: | [show references] |