Веб-просмотр не отображает полный текст - PullRequest
0 голосов
/ 29 апреля 2020

У меня есть следующий код

var body = "<style type=\"text/css\">body { font-size: 18px; line-height: 28px; } h1 { font-size: 34px; text-align: left; margin-bottom: 12px; line-height: 1.3;  } h2 { font-size: 26px; font-weight: 700; padding: 0; margin-bottom: 10px; text-align: left; line-height: 34.5px; letter-spacing: -0.45px; } p, i, a { margin-top: 21px; font-size: 20px; letter-spacing: -0.03px; line-height: 1.57; }</style>";
body += intent.getStringExtra("body")

webview.loadData(body, "text/html", "UTF-8");

Веб-просмотр не отображает весь контент в "теле". Может кто-нибудь, пожалуйста, помогите? Пожалуйста, посмотрите мою деятельность

 <WebView
        android:id="@+id/webview"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="20dp"
        android:layout_marginTop="20dp"
        android:layout_marginEnd="20dp"
        android:layout_marginBottom="1dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...