Это так просто. Этот ответ может решить вашу проблему. Вам просто нужно найти свое представление (в данном случае кнопку действия с плавающей точкой) и установить для него clickListener.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.your_fragment_layout, container, false);
fabButton = rootView.findViewById(R.id.fab_button);
fabButton.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v) {
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
startActivity(browserIntent);
}
});
return rootView;
}