Skip to content

Commit a5758cc

Browse files
author
duy
committed
Add a scrollview to error message label
1 parent cd61d1b commit a5758cc

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

modules/programming/src/main/res/layout/symja_prgm_programming_include_input.xml

+17-10
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,24 @@
187187
android:clickable="true"
188188
android:focusable="true">
189189

190-
<com.google.android.material.textview.MaterialTextView
191-
android:id="@+id/txt_error_message"
190+
<ScrollView
192191
android:layout_width="0dp"
193192
android:layout_height="match_parent"
194193
android:layout_weight="1"
195-
android:gravity="center_vertical"
196-
android:paddingStart="8dp"
197-
android:paddingEnd="8dp"
198-
android:singleLine="false"
199-
android:textColor="?colorError"
200-
tools:text="Error in factor at character: ' ' (Token:0 \u0020) Error in factor at character: ' ' (Token:0 \u0020)" />
194+
android:fillViewport="true">
195+
196+
<com.google.android.material.textview.MaterialTextView
197+
android:id="@+id/txt_error_message"
198+
android:layout_width="match_parent"
199+
android:layout_height="wrap_content"
200+
android:gravity="center_vertical"
201+
android:paddingStart="8dp"
202+
android:paddingEnd="8dp"
203+
android:singleLine="false"
204+
android:textColor="?colorError"
205+
tools:text="Error in factor at character: ' ' (Token:0 \u0020) Error in factor at character: ' ' (Token:0 \u0020)\nNewLine\nNewline" />
206+
207+
</ScrollView>
201208

202209
<androidx.appcompat.widget.AppCompatImageView
203210
android:id="@+id/btn_close_error_message"
@@ -239,8 +246,8 @@
239246
android:focusable="true"
240247
app:textSize="20dp"
241248
tools:alpha="0.3"
242-
tools:showIn="@layout/symja_prgm_fragment_programming_console"
243-
tools:ignore="SpUsage">
249+
tools:ignore="SpUsage"
250+
tools:showIn="@layout/symja_prgm_fragment_programming_console">
244251

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

0 commit comments

Comments
 (0)