पर क्लिक नहीं कर रहा है मैंने क्लिक ईवेंट के लिए Framelayour का उपयोग किया है और यह 2 दिनों से पहले ठीक काम कर रहा था लेकिन अब यह नहीं पता कि यह काम नहीं कर रहा है।
कृपया कोई मेरी मदद करें।
मेरे कोड के रूप में नीचे है: डिजाइन:फ़्रेमलेआउट क्लिक ईवेंट
<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>
कोड:
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);
}
}
});
मैं जानता हूँ कि आप पहले से ही कुछ किया लेकिन, आप अपने FrameLayout में पैरामीटर के रूप "क्लिक करने योग्य" डाल करने के लिए भूल गया था। – Tsunaze