コード例 #1
0
 @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])));
 }
コード例 #3
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   test = GdxTests.newTest(getArguments().getString("test"));
 }