I have to implement Tabs in my application using ActionBarSherlock. I am following this example here. Now i want to add buttons to one of the fragment, and perform an action on it. How do i do it ? Suppose this is the layout where the button is
public class AFragment extends SherlockFragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.hello, container, false);
}
}
How do i read a button from the view ?
1 Answer