FairEmail/app/src/main/res/layout/fragment_messages.xml

269 lines
13 KiB
XML
Raw Normal View History

2018-08-02 13:33:06 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-09-08 19:54:20 +00:00
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-08-02 13:33:06 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ActivityView">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swipeRefresh"
2018-09-08 19:54:20 +00:00
android:layout_width="match_parent"
2018-10-24 12:38:51 +00:00
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
2018-10-24 12:38:51 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tvSupport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="6dp"
android:text="@string/title_pro_support"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorPrimary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<View
android:id="@+id/vSeparatorSupport"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/colorSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvSupport" />
<TextView
android:id="@+id/tvHintSupport"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="33dp"
android:padding="6dp"
android:text="@string/title_hint_support"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorPrimary"
app:layout_constraintEnd_toStartOf="@+id/ibHintSupport"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/vSeparatorSupport" />
<ImageButton
android:id="@+id/ibHintSupport"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-04-18 12:34:09 +00:00
android:contentDescription="@string/title_legend_close_hint"
android:src="@drawable/baseline_close_24"
app:layout_constraintBottom_toBottomOf="@id/tvHintSupport"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tvHintSupport" />
<View
android:id="@+id/vSeparatorHintSupport"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/colorSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/ibHintSupport" />
<TextView
android:id="@+id/tvHintSwipe"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="33dp"
android:padding="6dp"
android:text="@string/title_hint_message_actions"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorPrimary"
app:layout_constraintEnd_toStartOf="@+id/ibHintSwipe"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/vSeparatorHintSupport" />
<ImageButton
android:id="@+id/ibHintSwipe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-04-18 12:34:09 +00:00
android:contentDescription="@string/title_legend_close_hint"
android:src="@drawable/baseline_close_24"
app:layout_constraintBottom_toBottomOf="@id/tvHintSwipe"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tvHintSwipe" />
<View
android:id="@+id/vSeparatorHintSwipe"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/colorSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvHintSwipe" />
<TextView
android:id="@+id/tvHintSelect"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="33dp"
android:padding="6dp"
android:text="@string/title_hint_message_selection"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorPrimary"
app:layout_constraintEnd_toStartOf="@+id/ibHintSelect"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/vSeparatorHintSwipe" />
<ImageButton
android:id="@+id/ibHintSelect"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-04-18 12:34:09 +00:00
android:contentDescription="@string/title_legend_close_hint"
android:src="@drawable/baseline_close_24"
app:layout_constraintBottom_toBottomOf="@id/tvHintSelect"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tvHintSelect" />
<View
android:id="@+id/vSeparatorHintSelect"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/colorSeparator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/ibHintSelect" />
<TextView
android:id="@+id/tvNoEmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_no_messages"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
2019-02-02 12:58:28 +00:00
app:layout_constraintBottom_toTopOf="@+id/seekBar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2019-01-15 17:39:12 +00:00
app:layout_constraintTop_toBottomOf="@id/vSeparatorHintSelect" />
<eu.faircode.email.FixedRecyclerView
android:id="@+id/rvMessage"
android:layout_width="0dp"
android:layout_height="0dp"
2019-05-08 06:59:57 +00:00
android:clipToPadding="false"
android:paddingBottom="90dp"
android:scrollbarStyle="outsideOverlay"
2019-05-09 17:47:12 +00:00
android:scrollbars="none"
2019-05-08 09:45:36 +00:00
app:fastScrollEnabled="true"
app:fastScrollHorizontalThumbDrawable="@drawable/fast_scroll_thumb"
app:fastScrollHorizontalTrackDrawable="@drawable/fast_scroll_track"
app:fastScrollVerticalThumbDrawable="@drawable/fast_scroll_thumb"
app:fastScrollVerticalTrackDrawable="@drawable/fast_scroll_track"
2019-05-07 20:18:30 +00:00
app:layout_constraintBottom_toTopOf="@+id/bottom_navigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2019-01-15 17:39:12 +00:00
app:layout_constraintTop_toBottomOf="@id/vSeparatorHintSelect" />
2018-12-27 12:31:02 +00:00
<eu.faircode.email.ContentLoadingProgressBar
android:id="@+id/pbWait"
style="@style/Base.Widget.AppCompat.ProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true"
2019-05-07 20:18:30 +00:00
app:layout_constraintBottom_toTopOf="@+id/bottom_navigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/vSeparatorHintSelect" />
2019-02-02 12:58:28 +00:00
<SeekBar
android:id="@+id/seekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@+id/bottom_navigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
2019-05-09 14:25:12 +00:00
<ImageButton
android:id="@+id/ibUp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:src="@drawable/baseline_home_24"
app:layout_constraintBottom_toTopOf="@id/seekBar"
app:layout_constraintEnd_toEndOf="@id/seekBar" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="36dp"
android:background="?android:attr/colorPrimary"
2019-01-10 10:04:44 +00:00
app:itemIconTint="@color/bottomnav_foreground"
app:itemTextColor="@color/bottomnav_foreground"
app:labelVisibilityMode="unlabeled"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:menu="@menu/action_messages" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpSupport"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="tvSupport,vSeparatorSupport" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpHintSupport"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="tvHintSupport,ibHintSupport,vSeparatorHintSupport" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpHintSwipe"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="tvHintSwipe,ibHintSwipe,vSeparatorHintSwipe" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpHintSelect"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="tvHintSelect,ibHintSelect,vSeparatorHintSelect" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpReady"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="rvMessage" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
2018-08-02 13:33:06 +00:00
2018-10-24 15:18:01 +00:00
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fabMore"
2018-10-24 15:18:01 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|center_vertical"
2018-11-13 10:05:01 +00:00
android:layout_margin="@dimen/fab_padding"
android:src="@drawable/baseline_more_vert_24"
2018-10-24 15:18:01 +00:00
android:tint="@color/colorActionForeground"
2019-01-25 17:56:34 +00:00
app:backgroundTint="?attr/colorAccent" />
2018-10-24 15:18:01 +00:00
2018-08-08 06:55:47 +00:00
<com.google.android.material.floatingactionbutton.FloatingActionButton
2018-08-02 13:33:06 +00:00
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-05-08 06:59:57 +00:00
android:layout_gravity="end|bottom"
2018-11-13 10:05:01 +00:00
android:layout_margin="@dimen/fab_padding"
2018-08-02 13:33:06 +00:00
android:src="@drawable/baseline_edit_24"
android:tint="@color/colorActionForeground"
2019-01-13 13:56:39 +00:00
android:tooltipText="@string/title_compose"
2018-10-24 12:06:04 +00:00
app:backgroundTint="?attr/colorAccent" />
2019-05-05 09:45:41 +00:00
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fabError"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-05-08 06:59:57 +00:00
android:layout_gravity="center_horizontal|bottom"
2019-05-05 09:45:41 +00:00
android:layout_margin="@dimen/fab_padding"
android:src="@drawable/baseline_warning_24"
android:tint="@color/colorActionForeground"
android:tooltipText="@string/title_compose"
app:backgroundTint="@color/lightColorWarning" />
2018-09-08 19:54:20 +00:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>