如图:那两个按钮显示在点击item上是怎么nong弄的??

解决方案 »

  1.   

    在onItemClick里面自定义一个Dialog
    AlertDialog.Builder builder = new AlertDialog.Builder(context);
    LayoutInflater lay = LayoutInflater.from(context);
    // 将布局加载到View中
    View view1 = lay.inflate(R.layout.pinglun_select, null);
    TextView mtxtpinglunhuifu = (TextView) view1
    .findViewById(R.id.pinglun_huifu);
    TextView mtxtpinglundel = (TextView) view1
    .findViewById(R.id.pinglun_delete);
    builder.setView(view1);view中TextView:
     <TextView  xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableTop="@drawable/phone_sys"
            android:text="系统检测"
            android:gravity="center"
            android:background="@drawable/top_bg"
            />
    textview的效果图不知道对你有没有用。