Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/ActivityExperiments.java
Show All 26 Lines | public class ActivityExperiments extends GeneralActivity { | ||||
final static String DEBUG_TAG = "ExperimentsGTFS"; | final static String DEBUG_TAG = "ExperimentsGTFS"; | ||||
@Override | @Override | ||||
protected void onCreate(Bundle savedInstanceState) { | protected void onCreate(Bundle savedInstanceState) { | ||||
super.onCreate(savedInstanceState); | super.onCreate(savedInstanceState); | ||||
setContentView(R.layout.activity_experiments); | setContentView(R.layout.activity_experiments); | ||||
AMAZING TEST | |||||
ActionBar actionBar = getSupportActionBar(); | ActionBar actionBar = getSupportActionBar(); | ||||
if (actionBar != null) { | if (actionBar != null) { | ||||
actionBar.setDisplayHomeAsUpEnabled(true); | actionBar.setDisplayHomeAsUpEnabled(true); | ||||
actionBar.setIcon(R.drawable.ic_launcher); | actionBar.setIcon(R.drawable.ic_launcher); | ||||
} | } | ||||
if (savedInstanceState==null) { | if (savedInstanceState==null) { | ||||
getSupportFragmentManager().beginTransaction() | getSupportFragmentManager().beginTransaction() | ||||
.setReorderingAllowed(true) | .setReorderingAllowed(true) | ||||
/* | /* | ||||
.add(R.id.fragment_container_view, LinesDetailFragment.class, | .add(R.id.fragment_container_view, LinesDetailFragment.class, | ||||
LinesDetailFragment.Companion.makeArgs("gtt:56U")) | LinesDetailFragment.Companion.makeArgs("gtt:56U")) | ||||
.commit(); | .commit(); | ||||
*/ | */ | ||||
.add(R.id.fragment_container_view, TestRealtimeGtfsFragment.class, null) | .add(R.id.fragment_container_view, TestRealtimeGtfsFragment.class, null) | ||||
.commit(); | .commit(); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
No newline at end of file |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register