FrameLayout cliquez sur l'événement n'est pas de tir

J'ai utilisé Framelayour pour l'événement click et Ça marchait très bien avant 2 jours, mais ne sais pas wat de se passer maintenant, il ne fonctionne pas.


Veuillez quelqu'un de m'aider.


Mon code est comme ci-dessous :
Conception :

<FrameLayout
        android:id="@+id/flWebpre"
        android:layout_width="fill_parent"
        android:layout_height="0dp"
        android:layout_weight="1" >

        <WebView
            android:id="@+id/wvWebsite"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent" />

        <ProgressBar
            android:id="@+id/pbWebsite"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@color/white"
            android:layout_gravity="center_horizontal" />
    </FrameLayout>

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);
            }
        }
    });
Je sais que vous avez déjà fait quelque chose, mais, vous avez oublié de mettre "cliquables" comme un paramètre dans votre FrameLayout.

OriginalL'auteur Jeeten Parmar | 2013-06-07