Guest User

Untitled

a guest
Jan 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. package de.android.com;
  2.  
  3. import android.app.Activity;
  4. import android.os.Bundle;
  5. import android.view.View;
  6. import android.widget.ArrayAdapter;
  7. import android.widget.ListView;
  8. import android.widget.Toast;
  9.  
  10. public class HelpTab extends Activity {
  11. private ListView lv1;
  12. private String lv_arr[] = { "Anleitung", "Credits"};
  13.  
  14. @Override
  15. public void onCreate(Bundle icicle) {
  16. super.onCreate(icicle);
  17. setContentView(R.layout.help);
  18. lv1 = (ListView) findViewById(R.id.ListView01);
  19. // By using setAdpater method in listview we an add string array in
  20. // list.
  21. lv1.setAdapter(new ArrayAdapter<String>(this,
  22. android.R.layout.simple_list_item_1, lv_arr));
  23. }
  24. }
Add Comment
Please, Sign In to add comment