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

16
LINES

< > BotCompany Repo | #1000443 // ListView test

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

Libraryless. Compilation Failed (22L/1K).

!636
!quicknew

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

public class main {
  public static View main(Context context) {
        ListView lv = new ListView(context);
        new List<String> list;
        list.add("hello");
        lv.setAdapter(new ArrayAdapter<String>(context, list));
        return lv;
  }
}

Author comment

Began life as a copy of #675

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1000443
Snippet name: ListView test
Eternal ID of this version: #1000443/1
Text MD5: 8e33cb1a68badb7ca0dbe0fb4080f930
Transpilation MD5: 618ecfafd87b863d435d13277da4fc6b
Author: stefan
Category: javax
Type: JavaX source code (Android)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-06 05:37:29
Source code size: 370 bytes / 16 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 523 / 528
Referenced in: [show references]