@Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   List<String> testNames = GdxTests.getNames();
   setListAdapter(
       new ArrayAdapter<String>(getActivity(), android.R.layout.simple_list_item_1, testNames));
   prefs = getActivity().getSharedPreferences("libgdx-tests", Context.MODE_PRIVATE);
 }
Пример #2
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   ArrayList<String> testNames = new ArrayList<String>();
   for (String name : GdxTests.getNames()) {
     testNames.add(name);
   }
   testNames.add(MatrixTest.class.getSimpleName());
   setListAdapter(
       new ArrayAdapter<String>(
           this, android.R.layout.simple_list_item_1, testNames.toArray(new String[0])));
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   test = GdxTests.newTest(getArguments().getString("test"));
 }