GrenderG / MarkdownView

WebView implementation supporting Markdown rendering.
GNU Lesser General Public License v3.0
56 stars 8 forks source link

Shaking problem #3

Open savasadar opened 5 years ago

savasadar commented 5 years ago

Hello,

I am using your library for show markdown text content in my app. But I am living a weird problem and I don't know how to solve this.

MarkdownView shaking when loading and returns to normal. But sometimes It states in shaking loop and never stop shaking.

MarkdownView markdown_view = view.findViewById(R.id.markdown_view); markdown_view.loadFromText(question.text);

<android.support.v7.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:cardCornerRadius="15dp"
        android:layout_margin="16dp"
        app:cardElevation="8dp">
<LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="16dp"
            android:orientation="vertical">

            <TextView
                android:id="@+id/questionNumberTV"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="16sp"
                android:textColor="#000"
                android:text="1)"/>

            <es.dmoral.markdownview.MarkdownView
                android:id="@+id/markdown_view"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                />
        </LinearLayout>

    </android.support.v7.widget.CardView>

Capture1 Capture2

GrenderG commented 5 years ago

Hum, that's very weird, never experienced that issue. Can you provide a video and tell me your device and Android version?