ImageView don't load second image
Clash Royale CLAN TAG #URR8PPP ImageView don't load second image I try to dynamically add and remove xml view. When add one view it works fine, but when add another view ImageView don't load image and button doesn't work. LinearLayout.LayoutParams vp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT); vp.gravity= Gravity.CENTER; LayoutInflater ltInflater = getLayoutInflater(); View view = ltInflater.inflate(R.layout.publication_image, linearLayout, true); ImageView iv = view.findViewById(R.id.publicationImageView); ImageButton deleteButton = view.findViewById(R.id.deleteButton); deleteButton.setOnClickListener(deleteClickListener); iv.setImageURI(fileUri); listView.add(view); listDeletButton.add(deleteButton); EditText editText = new EditText(this); editText.setLayoutParams(vp); editText.setHint("Введите текст"); editText.setTextSize(15)...