How does findViewById work?
package com.example.dell.helloworld; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Toast; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void showToast(View view) { Toast t= new Toast(this); LayoutInflater inflater=getLayoutInflater(); View v=inflater.inflate(R.layout.toast, (ViewGroup) findViewById