Skip to content

Commit

Permalink
Makes long Shell output completely visible. (#22)
Browse files Browse the repository at this point in the history
Wrap Textview inside Scrolllview to enable seeing long shell output completely.
  • Loading branch information
Joni-Salminen authored and d4rken committed Mar 22, 2018
1 parent f99f2c0 commit eb32be2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions example/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
app:layout_constraintTop_toTopOf="parent"
tools:ignore="HardcodedText"/>

<TextView
android:id="@+id/output"
<ScrollView
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginBottom="8dp"
Expand All @@ -45,7 +44,14 @@
app:layout_constraintBottom_toTopOf="@+id/check_root"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/execute"/>
app:layout_constraintTop_toBottomOf="@+id/execute">

<TextView
android:id="@+id/output"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

</ScrollView>

<Button
android:id="@+id/check_root"
Expand Down

0 comments on commit eb32be2

Please sign in to comment.