mirror of https://github.com/M66B/FairEmail.git
Use fixed RecyclerView everywhere
This commit is contained in:
parent
b9513b0552
commit
a18652b655
|
@ -59,6 +59,17 @@ public class FixedRecyclerView extends RecyclerView {
|
|||
.getDrawable(androidx.recyclerview.R.styleable.RecyclerView_fastScrollHorizontalThumbDrawable);
|
||||
Drawable horizontalTrackDrawable = a
|
||||
.getDrawable(androidx.recyclerview.R.styleable.RecyclerView_fastScrollHorizontalTrackDrawable);
|
||||
|
||||
if (verticalThumbDrawable == null)
|
||||
verticalThumbDrawable = (StateListDrawable) context.getDrawable(R.drawable.scroll_thumb);
|
||||
if (verticalTrackDrawable == null)
|
||||
verticalTrackDrawable = context.getDrawable(R.drawable.scroll_track);
|
||||
|
||||
if (horizontalThumbDrawable == null)
|
||||
horizontalThumbDrawable = (StateListDrawable) context.getDrawable(R.drawable.scroll_thumb);
|
||||
if (horizontalTrackDrawable == null)
|
||||
horizontalTrackDrawable = context.getDrawable(R.drawable.scroll_track);
|
||||
|
||||
Resources resources = getContext().getResources();
|
||||
new FastScrollerEx(this, verticalThumbDrawable, verticalTrackDrawable,
|
||||
horizontalThumbDrawable, horizontalTrackDrawable,
|
||||
|
|
|
@ -227,7 +227,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvSubject" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvAttachment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
android:layout_gravity="start"
|
||||
android:background="?attr/colorDrawerBackground">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvMenu"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:padding="12dp">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvKeyword"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvMessage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvLabel" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvScan"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvHintActions" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvAccount"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvAnswer"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvCertificate"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -262,7 +262,7 @@
|
|||
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments"
|
||||
app:srcCompat="@drawable/twotone_delete_24" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvAttachment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvContacts"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvIdentity"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
android:layout_marginHorizontal="3dp"
|
||||
tools:context="eu.faircode.email.ActivityView">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvLog"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvOperation"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -751,7 +751,7 @@
|
|||
app:layout_constraintTop_toBottomOf="@+id/swDisconnectLinks"
|
||||
app:switchPadding="12dp" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvDisconnect"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -240,7 +240,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvPollHint" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvExempted"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -1158,7 +1158,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvUseBlocklistPopHint" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvBlocklist"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
android:layout_height="match_parent"
|
||||
tools:context="eu.faircode.email.ActivitySetup">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvOrder"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvRule"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
app:barrierDirection="bottom"
|
||||
app:constraint_referenced_ids="cbInline,ibSaveAttachments,ibDownloadAttachments" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvAttachment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
app:layout_constraintTop_toBottomOf="@+id/vSeparatorImages"
|
||||
app:srcCompat="@drawable/twotone_share_24" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvImage"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
app:layout_constraintTop_toBottomOf="@id/vSeparatorOptions"
|
||||
app:srcCompat="@drawable/expander3" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvAccount"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -139,7 +139,7 @@
|
|||
app:layout_constraintTop_toBottomOf="@id/vSeparatorAccount"
|
||||
app:srcCompat="@drawable/expander" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvUnified"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -169,7 +169,7 @@
|
|||
app:layout_constraintTop_toBottomOf="@id/vSeparatorUnified"
|
||||
app:srcCompat="@drawable/expander" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvSearch"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -199,7 +199,7 @@
|
|||
app:layout_constraintTop_toBottomOf="@id/vSeparatorSearch"
|
||||
app:srcCompat="@drawable/expander" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvMenu"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -229,7 +229,7 @@
|
|||
app:layout_constraintTop_toBottomOf="@id/vSeparatorMenu"
|
||||
app:srcCompat="@drawable/expander" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
<eu.faircode.email.FixedRecyclerView
|
||||
android:id="@+id/rvMenuExtra"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
Loading…
Reference in New Issue