This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomAdapter extends ArrayAdapter<String> { | |
private final Context context; | |
private final String[] values; | |
public CustomAdapter(Context context, String[] values) { | |
super(context, R.layout.team_list, values); | |
this.context = context; | |
this.values = values; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ListViewActivity extends ListActivity { | |
String[] players = new String[] | |
{ "Leonel Messi", | |
"Zinedine Zidane", | |
"Diego Maradona", | |
"Marco Van Basten", | |
"Ronaldinho", | |
"Steven Gerrard", | |
"Cristiano Ronaldo", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SimpleRandom extends javax.swing.JFrame { | |
Thread auto; | |
public SimpleRandom() { | |
initComponents(); | |
auto = new Thread() { | |
@Override | |
public void run() { | |
while(true) { | |
try { | |
sleep(1000); |
NewerOlder