What is the best element to generate quotes of this type?

enter image description here

This whole thing is formed in html div blocks.

UPDATE:

A few examples of blocks with a quote in html

<div class="js-no-prevent news-comment__speech news-comment__speech_base" id="message_5022370"> <div class="news-comment__cite"> <div class="news-comment__inside"> <div class="news-comment__speech news-comment__speech_small"> <div class="news-comment__cite"> <div class="news-comment__inside"> <div class="news-comment__speech news-comment__speech_small"> <div class="news-comment__cite"> <div class="news-comment__inside"> <div class="news-comment__speech news-comment__speech_small">водитель быдло не глядя ни на что</div> <div class="news-comment__subtitle news-comment__subtitle_small"> <div class="news-comment__flex"> <div class="news-comment__part news-comment__part_1"> <div class="news-comment__name">marsupilami</div> </div> <div class="news-comment__part news-comment__part_2"></div> </div> </div> </div> </div> <p>Не, - не читал...<br /> Человек мля,проблему затронул на всеобщее обозрение. </div> <div class="news-comment__subtitle news-comment__subtitle_small"> <div class="news-comment__flex"> <div class="news-comment__part news-comment__part_1"> <div class="news-comment__name">1994837</div> </div> <div class="news-comment__part news-comment__part_2"></div> </div> </div> </div> </div> <p>он проблему затронул быдловатым поведением?? так решать проблемы нельзя </div> <div class="news-comment__subtitle news-comment__subtitle_small"> <div class="news-comment__flex"> <div class="news-comment__part news-comment__part_1"> <div class="news-comment__name">marsupilami</div> </div> <div class="news-comment__part news-comment__part_2"></div> </div> </div> </div> </div> <p>А как? Милицию вызывать?</p> </div> 

How it looks like: enter image description here

Now what is:

  1. Added ListView
  2. An adapter has been made for it.

The adapter has already done everything with regard to the name, date, like, and so on, only the markup for the comment is not provided where there are quotes as shown in the screenshot.

Interested in how it is better (and correct) to build such a display, mb must be inherited from TextView and there is something to redo?

  • you mean what to display? If this data is initially in the form of html, then you can try to do it via webview - Eugen
  • Yes, it should build a ListView where the elements will be such here quotes - user_21
  • Well, you yourself and answered your question. Must be formed in a ListView where some more ListView will be recursively. ListView - JVic
  • user_21 I think it is worth using RecyclerView, create a separate xml layout file for the cap [cat photo, nickname, time] and the layout file for nested elements (full height picture with gray background and narrow width - imitation of a gray bar, on the right LinearLayout with vertical orientation, contents : empty LinearLayout (so that you can load a past message into it), the text of the current message, a nickname). - Eugen
  • one
    user_21, I don’t know how you will receive data, maybe you will create your structure and transfer the list of such structures to the adapter, you will retrieve data in the adapter and form the Finite Elements - Eugen

0