title: calling View inside a View in android
body: <p>How to Call View inside a View on click of a button in android.
    Here is my code:</p>
  
  <pre><code>public class Fragment2 extends Fragment1 {
      public Fragment2() {}
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
      }
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.fragment_layout_one, container, false);
  
          button.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  // how to call here
              }
          });
          return view;
      }
  
  }
  </code></pre>
  
  <p>is there any way to call view on click of button.</p>