Could someone please clarify the method in which to use fragment

There is a Main Activity which has a  <fragment  element within it's layout

this fragment element is then loaded to a class the extends  Fragment
But does the fragment class then have it's own activity ?  or
how do you access the elements within the fragment ?
For discussion let us say the fragment has a Button and EditText

Under  a normal activity  you could access it with
(Button) findViewbyId(R.id.button);   but when I put this into a fragment 
extended class
findViewById  gives an error ?

Also there is one article on Fragment which has a FragmentActivity  or 
ActivityFragment
But I can not find this anywhere

Thanks in advance

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to