1 | import android.widget.*; |
2 | import android.view.*; |
3 | import android.content.Context; |
4 | |
5 | public class main { |
6 | public static View main(Context context) { |
7 | ScrollView sv = new ScrollView(context); |
8 | |
9 | LinearLayout ll = new LinearLayout(context); |
10 | ll.setOrientation(ll.VERTICAL); |
11 | |
12 | TextView tv = new TextView(context); |
13 | tv.setText("TextView in ScrollView!"); |
14 | ll.addView(tv); |
15 | |
16 | tv = new TextView(context); |
17 | tv.setText("TextView 2 in ScrollView!"); |
18 | ll.addView(tv); |
19 | |
20 | sv.addView(ll); |
21 | return sv; |
22 | } |
23 | } |
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
2 comment(s) hidden. show
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: | 1072 / 994 |
Referenced in: | [show references] |