1

Toast inside onClick method in Fragment

view story
linux-howto

http://stackoverflow.com – I have a following Fragment: public class FragmentSocial extends Fragment implements ActionBar.TabListener, OnClickListener { private Fragment mFragment; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getActivity().setContentView(R.layout.fragment_social); } public void onTabSelected(Tab tab, FragmentTransaction ft) { // relevant code... } public void onTabUnselected(Tab tab, FragmentTransaction ft) { // relevant code... } public void onTabReselected(Tab tab, FragmentTransaction ft) { // TODO Auto-generated method stub (HowTos)