How to interact with parent layout
<p>Actually i have an parent layout which is linear layout..Inside this parentLayout i have an Child layout..using this child layout i have created an array of buttons...so my code is like this</p>

<p>Xml Layout:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:id="@+id/ParentLayout"
android:layout_width="fill_parent"
android:layout_height="match_parent"&gt;

    &lt;ViewFlipper android:id="@+id/flipview" android:layout_width="fill_parent"                                                                                                                      android:layout_height="wrap_content"
        android:layout_marginTop="15dp"&gt;  
        &lt;LinearLayout android:id="@+id/liVLayout" android:orientation="vertical" android:layout_width="fill_parent"             
                      android:layout_height="wrap_content"&gt;                                                               
        &lt;/LinearLayout&gt;    
    &lt;/ViewFlipper&gt;   
&lt;/LinearLayout&gt;
</code></pre>

<p>code for java:</p>

<pre><code>public void onCreate(Bundle savedInstanceState)
{
    //Setup the Activity
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.calendar_frm); 

    LinearLayout layMain = (LinearLayout) findViewById(R.id.parentLayout);
    layMain.setOnTouchListener((OnTouchListener) this);  
}
</code></pre>

<p>Method for crating array of buttons on child layout..</p>

<pre><code>public boolean initDay()
{
    LinearLayout layoutVertical = (LinearLayout) findViewById(R.id.liVLayout);
    LinearLayout rowLayout = null;

    LayoutParams param = new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT, 1);

    //Create Button
    for (int i = 0; i&lt;6; i++)
    {
        rowLayout = new LinearLayout(this);
        rowLayout.setWeightSum(7);
        layoutVertical.addView(rowLayout, param);   

        for(int j=0; j&lt;7; j++)
        {
            m_pBtnDay[i][j] = new Button(this);             
            m_pBtnDay[i][j].setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL);
            rowLayout.addView(m_pBtnDay[i][j], param); 

           // m_pBtnDay[i][j].setOnLongClickListener(this);                         
          //  m_pBtnDay[i][j].setOnClickListener(this);

            m_pBtnDay[i][j].setOnTouchListener(this);

            //save button position
            m_pBtnDay[i][j].setTag(new CalendarForm(i , j));
        }
    }
    return true;
}
</code></pre>

<p>My problem is that the childlayout contains an array of buttons that covers the parentlayout.</p>

<p>So any onListenerEvent that I want to invoke for the  parentlayout doesnt work on the part covered by the childlayout. In my case I call onTouchEventListener on the parentLayout.</p>

<p>So what happens, is that the part there is not covered by the childlayout behave to the event but the ParentLayout covered by child layout doesnt behave to that event although it is an childLayout of the ParentLayout.</p>
