I have a button in BaseAdapter.When i clicking on the button i want to replace the fragment.
result.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(getActivity(), "sample click", 0).show();
Fragment slidingListFragmentRight = new SlidingListFragmentRight();
FragmentTransaction fragmentTransaction = getFragmentManager()
.beginTransaction();
fragmentTransaction.replace(R.id.list, slidingListFragmentRight);
fragmentTransaction.commit();
}
});
0 comments:
Post a Comment