ExpandableTextView icon indicating copy to clipboard operation
ExpandableTextView copied to clipboard

replaced TextView with HtmlTextView, collapse not working

Open emadbagheri96 opened this issue 9 years ago • 1 comments

hi i just replaced the TextView in the lib with this HtmlTextView which extends TextView itself. expanding works fine but collapsig wont work. where is the problem? thanks in advance

emadbagheri96 avatar Sep 25 '16 09:09 emadbagheri96

String strHtml = "<b>"content with html</b>" Spanned spanned = Html.fromHtml(strHtml );

// sample code snippet to set the text content on the ExpandableTextView ExpandableTextView expTv1 = (ExpandableTextView) view.findViewById(R.id.expand_text_view) .findViewById(R.id.expand_text_view);

// IMPORTANT - call setText on the ExpandableTextView to set the text content to display expTv1.setText(Html.fromHtml(String.valueOf(spanned)));

Hope to help you. @

momokosa avatar Dec 18 '17 07:12 momokosa