Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1008243 // Android GridLayout Test (OK, but places buttons to the left)

JavaX source code (Android) [tags: use-pretranspiled] - run with: the app

Transpiled version (1158L) is out of date.

!7

import android.widget.GridLayout;
import android.view.ViewGroup.LayoutParams;

p {
  androidUI(r {
    GridLayout gv = new GridLayout(androidActivity());
    //gv.getLayoutParams().width = LayoutParams.MATCH_PARENT;
    //gv.setColumnCount(3);
    for (S s : splitAtSpace("Yes No Stop"))
      gv.addView(aButton(s));
    androidShow(gv);
  });
}

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: #1008243
Snippet name: Android GridLayout Test (OK, but places buttons to the left)
Eternal ID of this version: #1008243/11
Text MD5: 745da63245a2ddc5b7b04d21c9270be6
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:00:15
Source code size: 364 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 547 / 619
Version history: 10 change(s)
Referenced in: #1008244 - Android aButton Test
#1008245 - Android GridLayout Horizontal Center Test
#1008253 - Try to center a LinearLayout horizontally [ARGH]