Android“我的”界面中点击下面每个item弹出一个对话框,有参数的可以修改

问题遇到的现象和发生背景

“我的”界面中,有并列的几个item,怎么实现点击item事件弹出对话框修改而不是弹出整个界面
比如怎么点击修改用户名,java中界面放在了fragment,不知道可以吗,应该用几个文件,调用什么方法实现,求各位给个思路,万分感谢!

问题相关代码,请勿粘贴截图

fragment.java关联的 xml文件:


    <LinearLayout
        android:background="@color/white"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        tools:layout_editor_absoluteX="16dp"
        tools:layout_editor_absoluteY="0dp"
        android:orientation="vertical"
        >

        <com.zhao.myreader.custom.ItemGroup
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:id="@+id/uername"
            my:isEditable="true"
            my:show_right_arrow="true"
            my:left_icon="@drawable/ic_history_black_24dp"
            my:edt_content="用户名"
            my:edt_text_size="8dp"
            android:background="@color/sys_common_bg">
        </com.zhao.myreader.custom.ItemGroup>

        <com.zhao.myreader.custom.ItemGroup
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:id="@+id/xingbie"
            my:icon="@mipmap/s"
            my:isEditable="true"
            my:show_right_arrow="true"
            my:edt_content="性别"
            my:edt_text_size="8dp"
            android:background="@color/sys_common_bg"
            >
        </com.zhao.myreader.custom.ItemGroup>

        <com.zhao.myreader.custom.ItemGroup
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:id="@+id/passedit"
            my:icon="@mipmap/r4"
            my:isEditable="true"
            my:show_right_arrow="true"
            my:edt_content="修改密码"
            my:edt_text_size="8dp"
            android:background="@color/sys_common_bg"
            >
        </com.zhao.myreader.custom.ItemGroup>
        <com.zhao.myreader.custom.ItemGroup
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:id="@+id/about"
            my:icon="@drawable/setting_circle"
            my:isEditable="true"
            my:show_right_arrow="true"
            my:edt_content="关于"
            my:edt_text_size="8dp"
            android:background="@color/sys_common_bg"
            >
        </com.zhao.myreader.custom.ItemGroup>

    </LinearLayout>
我想要达到的结果

img

点击每一行都能弹出对话框,有的可以修改,谢谢!

用adapter,OnItemClick