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

23
LINES

< > BotCompany Repo | #1000403 // ScrollView + LinearLayout test

JavaX source code (Android) - run with: the app

import android.widget.*;
import android.view.*;
import android.content.Context;

public class main {
  public static View main(Context context) {
    ScrollView sv = new ScrollView(context);
    
    LinearLayout ll = new LinearLayout(context);
    ll.setOrientation(ll.VERTICAL);
    
    TextView tv = new TextView(context);
    tv.setText("TextView in ScrollView!");
    ll.addView(tv);
    
    tv = new TextView(context);
    tv.setText("TextView 2 in ScrollView!");
    ll.addView(tv);
    
    sv.addView(ll);
    return sv;
  }
}

Author comment

Began life as a copy of #675

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

Comments [hide]

ID Author/Program Comment Date
945 #1000604 (pitcher) 2015-08-20 15:28:24
944 #1000610 (pitcher) 2015-08-18 00:07:07

add comment

Snippet ID: #1000403
Snippet name: ScrollView + LinearLayout test
Eternal ID of this version: #1000403/1
Text MD5: c7b1d3d3763a5a0ffa970d7b8fba078f
Author: stefan
Category: javax android
Type: JavaX source code (Android)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-03 02:48:16
Source code size: 561 bytes / 23 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 855 / 771
Referenced in: [show references]