super.onCreate(savedInstanceState);
setContentView(R.layout.search_screen);
View container = (View) findViewById(R.id.container);
mSceneRoot = (ViewGroup) container.getParent();
// mResultsScreen = new MyScene(mSceneRoot, R.layout.results_screen);
// mSearchScreen = new MyScene(mSceneRoot, R.layout.search_screen);
mResultsScreen = new Scene(mSceneRoot);
mResultsScreen.setEnterAction(new Runnable() {
@Override
public void run() {
LayoutInflater inflater = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.results_screen, mSceneRoot);
}
});
mSearchScreen = new Scene(mSceneRoot);
mSearchScreen.setEnterAction(new Runnable() {
@Override
public void run() {
LayoutInflater inflater = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.search_screen, mSceneRoot);
}
});