Skip to content

Commit

Permalink
Add a scrollview to error message label
Browse files Browse the repository at this point in the history
  • Loading branch information
duy committed Oct 28, 2024
1 parent cd61d1b commit a5758cc
Showing 1 changed file with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,24 @@
android:clickable="true"
android:focusable="true">

<com.google.android.material.textview.MaterialTextView
android:id="@+id/txt_error_message"
<ScrollView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:singleLine="false"
android:textColor="?colorError"
tools:text="Error in factor at character: ' ' (Token:0 \u0020) Error in factor at character: ' ' (Token:0 \u0020)" />
android:fillViewport="true">

<com.google.android.material.textview.MaterialTextView
android:id="@+id/txt_error_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:singleLine="false"
android:textColor="?colorError"
tools:text="Error in factor at character: ' ' (Token:0 \u0020) Error in factor at character: ' ' (Token:0 \u0020)\nNewLine\nNewline" />

</ScrollView>

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/btn_close_error_message"
Expand Down Expand Up @@ -239,8 +246,8 @@
android:focusable="true"
app:textSize="20dp"
tools:alpha="0.3"
tools:showIn="@layout/symja_prgm_fragment_programming_console"
tools:ignore="SpUsage">
tools:ignore="SpUsage"
tools:showIn="@layout/symja_prgm_fragment_programming_console">

</com.symja.programming.view.dragbutton.DragButton>

Expand Down

0 comments on commit a5758cc

Please sign in to comment.