content: package com.example.spotifyui;
  
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.Menu;
  import android.view.MenuInflater;
  import android.view.View;
  import android.view.ViewGroup;
  
  import androidx.annotation.NonNull;
  import androidx.annotation.Nullable;
  import androidx.appcompat.app.AppCompatActivity;
  import androidx.appcompat.widget.Toolbar;
  import androidx.fragment.app.Fragment;
  
  public class PlaylistFragment extends Fragment {
  
      Toolbar toolbar;
  
      @Nullable
      @Override
      public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
                               @Nullable Bundle savedInstanceState) {
          View v = inflater.inflate(R.layout.fragment_playlist, container, false);
  
          toolbar = v.findViewById(R.id.playlist_toolbar);
  
          ((AppCompatActivity) getActivity()).setSupportActionBar(toolbar);
          ((AppCompatActivity) getActivity()).getSupportActionBar().setTitle("");
  
          return v;
      }
  
      @Override
      public void onCreateOptionsMenu(@NonNull Menu menu, MenuInflater inflater) {
          inflater.inflate(R.menu.tool_menu, menu);
  
          return;
      }
  
  
  }
  