FrameLayout click event is not firing <p>I have used Framelayour for click event and It was working fine before 2 days but don't know wat happend now it is not working. <br> Please someone help me. <bR> My code is as below : <strong>Design :</strong></p> <pre><code>&lt;FrameLayout android:id="@+id/flWebpre" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" &gt; &lt;WebView android:id="@+id/wvWebsite" android:layout_width="fill_parent" android:layout_height="fill_parent" /&gt; &lt;ProgressBar android:id="@+id/pbWebsite" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@color/white" android:layout_gravity="center_horizontal" /&gt; &lt;/FrameLayout&gt; </code></pre> <p><strong>Code :</strong></p> <pre><code>FrameLayout flWebPre = (FrameLayout) findViewById(R.id.flWebpre); flWebPre.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub if (isExpanded) { isExpanded = false; new CollapseAnimation(slidingPanel, panelWidth, TranslateAnimation.RELATIVE_TO_SELF, 0.70f, TranslateAnimation.RELATIVE_TO_SELF, 0.0f, 0, 0.0f, 0, 0.0f); } } }); </code></pre>