chinalwb / Android-Rich-text-Editor

Android Rich Text Editor With customized spans - 富文本编辑器 - Don't miss this one :)
Apache License 2.0
845 stars 166 forks source link

How Can I Show Image with text in AreTextView, PLease #150

Open shagorjhon opened 2 years ago

shagorjhon commented 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);
    }
}`
chinalwb commented 2 years ago

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?