Guest User

Untitled

a guest
Oct 12th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <fragment class="com.example.viktor.buyersguide.Section"
  2.  
  3. @Override
  4. public View onCreateView(LayoutInflater inflater, ViewGroup container,
  5. Bundle savedInstanceState) {
  6.  
  7. String[] nameList = new String[Cards.cards.length];
  8.  
  9. for(int i = 0; i < Cards.cards.length; i++) {
  10. nameList[i] = Cards.cards[i];
  11. }
  12.  
  13. ArrayAdapter<String> listAdapter = new ArrayAdapter<>(inflater.getContext(),
  14. android.R.layout.simple_expandable_list_item_1, nameList);
  15. setListAdapter(listAdapter);
  16.  
  17. return super.onCreateView(inflater, container, savedInstanceState);
  18.  
  19. String[] nameList = new String[Cards.app.length];
  20.  
  21. for(int i = 0; i < Cards.app.length; i++) {
  22. nameList[i] = Cards.app[i];
  23. }
Add Comment
Please, Sign In to add comment