Fragments Implement OnClickListener : <p>I have this Fragments but i cant findviewbyid. i already look around website but get nothing. thankss</p>

<pre><code>public class Course extends Fragment implements OnClickListener

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {

    View view = inflater.inflate(R.layout.course, container, false);
    View button1Button = findViewById(R.id.button_button1);
    button1Button.setOnClickListener(this);
    View button2Button = findViewById(R.id.button_button2);
    button2Button.setOnClickListener(this);
    View button3Button = findViewById(R.id.button_button3);
    button3Button.setOnClickListener(this);
    View button4Button = findViewById(R.id.button_button4);
    button4Button.setOnClickListener(this);
    View button5Button = findViewById(R.id.button_button5);
    button5Button.setOnClickListener(this);
    View button6Button = findViewById(R.id.button_button6);
    button6Button.setOnClickListener(this);
    View button7Button = findViewById(R.id.button_button7);
    button7Button.setOnClickListener(this);
    View button8Button = findViewById(R.id.button_button8);
    button8Button.setOnClickListener(this);
}
</code></pre>

<p>thankss</p>
