Created
December 17, 2013 22:29
-
-
Save penghou620/8013797 to your computer and use it in GitHub Desktop.
This file contains 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
String[] myStringArray = new String[] { "Cool", "Very nice", "Hate it" }; | |
ArrayAdapter adapter = new ArrayAdapter<String>(this, | |
android.R.layout.simple_list_item_1, myStringArray); | |
ListView listView = (ListView) findViewById(R.id.listView1); | |
listView.setAdapter(adapter); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment