Tuesday, 5 May 2020

How to change Fragment to activity in Android Studio





change Fragment to activity in Android Studio






View view = inflater.inflate(R.layout.fragment_home, container, false);

shopdetails.setOnClickListener(new View.OnClickListener() {
    @Override    public void onClick(View v) {
        startActivity(new Intent(getActivity(), SalonDetailsActivity.class)

        );

    }
});

No comments:

Post a Comment