title: Is it possible to set Focus or set OnClick for an Android TableLayout?
body: <p><strong>Problem:</strong> I've been trying to set either the <code>setOnClickListener</code> or <code>setOnFocusChangeListener</code> on a TableLayout but I'm not getting any response and there are no debug errors or issues I can identify.</p>
  <p><strong>What I'm trying to do:</strong> When someone clicks on the <code>tablelayout</code> to add authors, the <code>EditText</code> for a single author populates with a standard message (maybe disable it) if the tablelayout has more than one child using <code>getChildCount()</code>.</p>
  <p><strong>What I have tried:</strong> As I mentioned, I've tried setting the <code>setOnClickListener</code> and <code>setOnFocusChangeListener</code> events but nothing seems to happen. I tried setting <code>Toast</code> messages to see if it is being activated but I'm not getting anything. I'm not sure what I may be doing wrong. I've set OnClick and Focus for many objects, but this is the first tablelayout and I'm having trouble.</p>
  <pre><code>tableLayoutAuthors.setOnFocusChangeListener(new View.OnFocusChangeListener() {
      @Override
      public void onFocusChange(View v, boolean hasFocus) {
          if(hasFocus){
              Toast.makeText(AddNote.this,tableLayoutAuthors.getChildCount(), Toast.LENGTH_LONG);
              if(tableLayoutAuthors.getChildCount()&gt;1)
                  author.setText(R.string.add_author_phrase);
              else if(tableLayoutAuthors.getChildCount()==1)
                  populateSourceDetails(DBQueryTools.getSourcesByTitle(sourceTitle.getText().toString()));
          }
      }
  });
  </code></pre>