Hi. i'm very new to andriod..
I have a normal linear view in my main.xml. and i've this in my onCreate
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
after this, when the user clicks on any part of the screen, i want to change the screen to a tab view that i've defined in configure.xml .. for the clicking part, i thinking of using the onTouchEvent..
however, how do i go about changing from main.xml to configure.xml? also, the use of the tabview requires the class to extend TabActivity while my main class currently extends Activity. do i have to create a new class for my app? do i use setcontentview again to change the view or some other code?
I have a normal linear view in my main.xml. and i've this in my onCreate
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
after this, when the user clicks on any part of the screen, i want to change the screen to a tab view that i've defined in configure.xml .. for the clicking part, i thinking of using the onTouchEvent..
however, how do i go about changing from main.xml to configure.xml? also, the use of the tabview requires the class to extend TabActivity while my main class currently extends Activity. do i have to create a new class for my app? do i use setcontentview again to change the view or some other code?