本帖最后由 u013572369 于 2014-04-19 16:44:27 编辑

解决方案 »

  1.   

    点击事件在fragment中绑定button了?代码贴出来看看
      

  2.   

    第一个图是我绑定Button的setOnClickListener的代码,
      

  3.   

    Button的绑定代码:
    View view1=View.inflate(this,R.layout.page3,null);
    btu=(Button) view1.findViewById(R.id.button1);
    View.OnClickListener listener1 = new View.OnClickListener() {
    public void onClick(View arg0) {
    Intent intent =new Intent(MainActivity.this,App1Activity.class);
    startActivity(intent);
    }
    };
    btu.setOnClickListener(listener1);布局文件代码
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >
        <ImageView 
            android:id="@+id/iv"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:src="@drawable/p3"
            android:layout_weight="1"
            android:scaleType="fitXY"
            />
        <Button
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="177dp"
            android:background="#fff"
            android:text="Button" />
    </LinearLayout>
      

  4.   

    viewpager里面应该有一个滑动事件,可能将button的click事件屏蔽了,你用ontouch试试