Open shagorjhon opened 2 years ago
There is show only text and formatted text, but the image not showing. please fix this or suggest me. thank you
viewModel.getListLiveData().observe(this, new Observer<List<ModelClass>>() { @Override public void onChanged(List<ModelClass> modelClasses) { titleShow.setText(modelClasses.get(position).getTitle()); areTextView.setText(Html.fromHtml(modelClasses.get(position).getContent())); id = modelClasses.get(position).getId(); } });
`@Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == EDIT_NOTE_REQUEST_CODE && data!=null ){ String titleTxt = data.getStringExtra(EditNote.EDIT_NOTE_TITLE); String contentTxt = data.getStringExtra(EditNote.EDIT_NOTE_CONTENT); String dateTxt = data.getStringExtra(EditNote.EDIT_NOTE_DATE);
ModelClass modelClass = new ModelClass(titleTxt,contentTxt,dateTxt); modelClass.setId(id); viewModel.update(modelClass); } }`
Hi @shagorjhon , regarding this RP, are you fixing the issue you ran into or, you'd like me to look into the issue and release a new version?
There is show only text and formatted text, but the image not showing. please fix this or suggest me. thank you
viewModel.getListLiveData().observe(this, new Observer<List<ModelClass>>() { @Override public void onChanged(List<ModelClass> modelClasses) { titleShow.setText(modelClasses.get(position).getTitle()); areTextView.setText(Html.fromHtml(modelClasses.get(position).getContent())); id = modelClasses.get(position).getId(); } });
`@Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == EDIT_NOTE_REQUEST_CODE && data!=null ){ String titleTxt = data.getStringExtra(EditNote.EDIT_NOTE_TITLE); String contentTxt = data.getStringExtra(EditNote.EDIT_NOTE_CONTENT); String dateTxt = data.getStringExtra(EditNote.EDIT_NOTE_DATE);