Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/220.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Firebase RecycleView与Edittext同时进行多项更改_Java_Android_Firebase_Android Edittext - Fatal编程技术网

Java Firebase RecycleView与Edittext同时进行多项更改

Java Firebase RecycleView与Edittext同时进行多项更改,java,android,firebase,android-edittext,Java,Android,Firebase,Android Edittext,我有一个图像列表,由firebase recyclerView和edittext填充以对其进行评级 当我把评级数字放在某张图片上时,它会同时复制到另一张图片上。 我在这里看到了一些答案,但它们都与Firebase版本无关,请帮助我: 我的 } 以及所有各方\u img\u layout.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.c

我有一个图像列表,由firebase recyclerView和edittext填充以对其进行评级

当我把评级数字放在某张图片上时,它会同时复制到另一张图片上。

我在这里看到了一些答案,但它们都与Firebase版本无关,请帮助我:

我的

}

以及所有各方\u img\u layout.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="80dp"
    android:orientation="horizontal"
    android:background="@color/white"
    android:weightSum="3"
    android:layout_margin="2dp">



    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="2">
        <ImageView
            android:id="@+id/_image"
            android:layout_width="90dp"
            android:layout_height="45dp"
            android:layout_marginLeft="20dp"
            android:src="@mipmap/ic_loading"
            android:layout_gravity="center"
            />
    </LinearLayout>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:orientation="horizontal"
        android:weightSum="4">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1">

            <ImageView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                />
        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="3"
            >
            <EditText
                android:id="@+id/mandatim"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:inputType="number"
                android:layout_gravity="center"
                android:textColor="@color/black"
                />


        </LinearLayout>


    </LinearLayout>


此代码中的哪些内容没有按您期望的方式工作?除此之外,如果你遇到问题,最好在发帖时创建一个链接。您为此问题发布了200多行代码。对于人们来说,在线解析和调试是非常困难的。请编辑您的问题并隔离问题,这样您就增加了获得帮助的机会。那些了解问题所在的人-知道确切的位置。没有办法减少代码,因为这里的每件事都很重要……这段代码中到底有什么东西没有按您期望的方式工作?除此之外,如果你遇到问题,最好在发帖时创建一个链接。您为此问题发布了200多行代码。对于人们来说,在线解析和调试是非常困难的。请编辑您的问题并隔离问题,这样您就增加了获得帮助的机会。那些了解问题所在的人-知道确切的位置。没有办法减少代码,因为这里的一切都很重要。。。
public class PartiesImgViewHolder extends RecyclerView.ViewHolder {
View mView;

AppCompatButton btn_delete;
EditText mandatim;

public PartiesImgViewHolder(View itemView) {
    super(itemView);
    mView = itemView;

    btn_delete=(AppCompatButton) mView.findViewById(R.id.btn_delete);
    mandatim=(EditText) mView.findViewById(R.id.mandatim);



}


public void setParty_image(String party_image) {
    ImageView _image = (ImageView) mView.findViewById(R.id._image);
    Picasso.get().load(party_image).into(_image);
}

public void setMandatim(String mandatim) {
    EditText _mandatim = (EditText) mView.findViewById(R.id.mandatim);
    _mandatim.setText(mandatim);
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="80dp"
    android:orientation="horizontal"
    android:background="@color/white"
    android:weightSum="3"
    android:layout_margin="2dp">



    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="2">
        <ImageView
            android:id="@+id/_image"
            android:layout_width="90dp"
            android:layout_height="45dp"
            android:layout_marginLeft="20dp"
            android:src="@mipmap/ic_loading"
            android:layout_gravity="center"
            />
    </LinearLayout>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:orientation="horizontal"
        android:weightSum="4">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1">

            <ImageView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                />
        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="3"
            >
            <EditText
                android:id="@+id/mandatim"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:inputType="number"
                android:layout_gravity="center"
                android:textColor="@color/black"
                />


        </LinearLayout>


    </LinearLayout>