Libraryless. Compilation Failed (1168L/8K).
!7 import android.widget.*; import android.widget.GridLayout; import android.view.*; import android.view.ViewGroup.LayoutParams; p { androidUI(r { GridLayout gv = new GridLayout(androidActivity()); for (S s : splitAtSpace("Yes No Stop")) gv.addView(aButton(s)); LinearLayout ll = new LinearLayout(androidActivity()); ll.setOrientation(ll.HORIZONTAL); ll.addView(gv); //gv.getLayoutParams().gravity = Gravity.CENTER; /*LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.FILL_PARENT); //params.weight = 1.0f; params.gravity = Gravity.CENTER; gv.setLayoutParams(params);*/ ((LinearLayout.LayoutParams) gv.getLayoutParams()).setGravity(Gravity.CENTER); androidShow(ll); }); }
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: | 493 / 553 |
Version history: | 6 change(s) |
Referenced in: | [show references] |