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

18
LINES

< > BotCompany Repo | #1005317 // aNorthAndCenter (Android BorderLayout)

JavaX fragment (include)

import android.app.*;
import android.widget.*;
import android.view.*;
import android.view.KeyEvent;
import android.view.inputmethod.*;
import android.text.*;

static LinearLayout aNorthAndCenter(View n, View c) {
  LinearLayout ll = new LinearLayout(androidActivity ());
  ll.setOrientation(ll.VERTICAL);
  c.setLayoutParams(new LinearLayout.LayoutParams(
    LinearLayout.LayoutParams.MATCH_PARENT,
    LinearLayout.LayoutParams.MATCH_PARENT, 1.0f));
  ll.addView(n);    
  ll.addView(c);
  ret ll;
}

Author comment

Began life as a copy of #1001080

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005317
Snippet name: aNorthAndCenter (Android BorderLayout)
Eternal ID of this version: #1005317/5
Text MD5: f243e90288c79cea853d198744064e70
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-01 16:59:55
Source code size: 521 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 531 / 538
Version history: 4 change(s)
Referenced in: #1005322 - ASingleComponentPanel (SingleComponentPanel for Android)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008234 - aNorthCenterAndSouth (Android BorderLayout)
#1014915 - aWestAndCenter (Android BorderLayout)