Possible Duplicate:
findViewById in fragment android
I am currently working on android project and trying to get fragments working. The fragment part is working but I'm trying to control UI components, on a standard activity I can use something like
TextView txtMyTextBox = (TextView)findViewById(R.id.my_text_box)
I am extending the class by ListFragment but when why I try the same code as above I get the following error
The method findViewById(int) is undefined
Why doesn't this work. Thanks for any help you can provide.