mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Allow vertically scrolling of message text
This commit is contained in:
parent
1423e0bb4b
commit
c11216c6be
2 changed files with 50 additions and 36 deletions
|
@ -657,21 +657,28 @@
|
|||
app:barrierDirection="bottom"
|
||||
app:constraint_referenced_ids="btnHtml,ibQuotes,ibImages" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvBody"
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/scroll"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:fontFamily="monospace"
|
||||
android:minHeight="60dp"
|
||||
android:text="Body"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textIsSelectable="true"
|
||||
android:fillViewport="true"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/barrier_body" />
|
||||
app:layout_constraintTop_toBottomOf="@id/barrier_body">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvBody"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="monospace"
|
||||
android:minHeight="60dp"
|
||||
android:text="Body"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textIsSelectable="true" />
|
||||
</HorizontalScrollView>
|
||||
|
||||
<eu.faircode.email.ContentLoadingProgressBar
|
||||
android:id="@+id/pbBody"
|
||||
|
@ -679,10 +686,10 @@
|
|||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:indeterminate="true"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvBody"
|
||||
app:layout_constraintEnd_toEndOf="@id/tvBody"
|
||||
app:layout_constraintStart_toStartOf="@id/tvBody"
|
||||
app:layout_constraintTop_toTopOf="@id/tvBody" />
|
||||
app:layout_constraintBottom_toBottomOf="@id/scroll"
|
||||
app:layout_constraintEnd_toEndOf="@id/scroll"
|
||||
app:layout_constraintStart_toStartOf="@id/scroll"
|
||||
app:layout_constraintTop_toTopOf="@id/scroll" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvNoInternetBody"
|
||||
|
@ -690,10 +697,10 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:text="@string/title_no_internet"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvBody"
|
||||
app:layout_constraintEnd_toEndOf="@id/tvBody"
|
||||
app:layout_constraintStart_toStartOf="@id/tvBody"
|
||||
app:layout_constraintTop_toTopOf="@id/tvBody" />
|
||||
app:layout_constraintBottom_toBottomOf="@id/scroll"
|
||||
app:layout_constraintEnd_toEndOf="@id/scroll"
|
||||
app:layout_constraintStart_toStartOf="@id/scroll"
|
||||
app:layout_constraintTop_toTopOf="@id/scroll" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvImage"
|
||||
|
@ -702,7 +709,7 @@
|
|||
android:layout_marginTop="3dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvBody" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/scroll" />
|
||||
|
||||
<View
|
||||
android:id="@+id/vSeparator"
|
||||
|
@ -734,6 +741,6 @@
|
|||
android:id="@+id/grpExpanded"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:constraint_referenced_ids="vSeparatorAddress,ivExpanderAddress,tvBody" />
|
||||
app:constraint_referenced_ids="vSeparatorAddress,ivExpanderAddress,scroll" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</FrameLayout>
|
||||
|
|
|
@ -647,21 +647,28 @@
|
|||
app:barrierDirection="bottom"
|
||||
app:constraint_referenced_ids="btnHtml,ibQuotes,ibImages" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvBody"
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/scroll"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginTop="3dp"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:fontFamily="monospace"
|
||||
android:minHeight="60dp"
|
||||
android:text="Body"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||
android:textIsSelectable="true"
|
||||
android:fillViewport="true"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/barrier_body" />
|
||||
app:layout_constraintTop_toBottomOf="@id/barrier_body">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvBody"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="monospace"
|
||||
android:minHeight="60dp"
|
||||
android:text="Body"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||
android:textIsSelectable="true" />
|
||||
</HorizontalScrollView>
|
||||
|
||||
<eu.faircode.email.ContentLoadingProgressBar
|
||||
android:id="@+id/pbBody"
|
||||
|
@ -669,10 +676,10 @@
|
|||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:indeterminate="true"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvBody"
|
||||
app:layout_constraintEnd_toEndOf="@id/tvBody"
|
||||
app:layout_constraintStart_toStartOf="@id/tvBody"
|
||||
app:layout_constraintTop_toTopOf="@id/tvBody" />
|
||||
app:layout_constraintBottom_toBottomOf="@id/scroll"
|
||||
app:layout_constraintEnd_toEndOf="@id/scroll"
|
||||
app:layout_constraintStart_toStartOf="@id/scroll"
|
||||
app:layout_constraintTop_toTopOf="@id/scroll" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvNoInternetBody"
|
||||
|
@ -680,10 +687,10 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:text="@string/title_no_internet"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvBody"
|
||||
app:layout_constraintEnd_toEndOf="@id/tvBody"
|
||||
app:layout_constraintStart_toStartOf="@id/tvBody"
|
||||
app:layout_constraintTop_toTopOf="@id/tvBody" />
|
||||
app:layout_constraintBottom_toBottomOf="@id/scroll"
|
||||
app:layout_constraintEnd_toEndOf="@id/scroll"
|
||||
app:layout_constraintStart_toStartOf="@id/scroll"
|
||||
app:layout_constraintTop_toTopOf="@id/scroll" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvImage"
|
||||
|
@ -692,7 +699,7 @@
|
|||
android:layout_marginTop="3dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvBody" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/scroll" />
|
||||
|
||||
<View
|
||||
android:id="@+id/vSeparator"
|
||||
|
@ -724,6 +731,6 @@
|
|||
android:id="@+id/grpExpanded"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:constraint_referenced_ids="vSeparatorAddress,ivExpanderAddress,tvBody" />
|
||||
app:constraint_referenced_ids="vSeparatorAddress,ivExpanderAddress,scroll" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</FrameLayout>
|
||||
|
|
Loading…
Reference in a new issue