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; } }
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: | 853 / 769 |
Referenced in: | [show references] |