title: Button does not respond
body: <p>Ive got a Button in one of my Fragments. But it seems to be "not-clickable". There is no Log.d. Message when I click the Button (In another Fragment (Same onclicklistenercode) everything is fine.
  For greater overview I added the whole Class and the part of my layout file which defindes the button.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>public class ListViewFragment extends Fragment {
  
      DbHelper mydb;
  
      Button buttondeletedb;
      Button buttonexport;
  
      private EditText roomnr;
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.fragment_listview, container, false);
  
          Context context = getContext();
          mydb = new DbHelper(context);
  
          buttondeletedb = (Button) view.findViewById(R.id.button_deletelist_list);
          buttonexport = (Button) view.findViewById(R.id.button_export);
  
          String dataList = mydb.getAllElements();                                                   
          String [] dataListArray = dataList.split("\n");                                             
  
          List&lt;String&gt; dataListFinal = new ArrayList&lt;&gt;(Arrays.asList(dataListArray));
  
          ArrayAdapter&lt;String&gt; dataListAdapter = new ArrayAdapter&lt;&gt;(                                  
                  getActivity(),                                                                      
                  R.layout.list_item_datalist,                                                        
                  R.id.list_item_datalist_textview,                                                   
                  dataListFinal);                                                                     
  
          View rootView=inflater.inflate(R.layout.fragment_listview, container, false);
  
          ListView dataListListView = (ListView) rootView.findViewById(R.id.datalist);
          dataListListView.setAdapter(dataListAdapter);
  
  
          buttondeletedb.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  Log.d("buttondeletelist", "clicked!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
                  mydb.deleteAll();
              }
          });
  
          return rootView;
      }
  
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>            &lt;Button
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="@string/deletelist"
                  android:id="@+id/button_deletelist_list"
                  android:layout_gravity="center_horizontal" /&gt;</code></pre>
  </div>
  </div>
  </p>