summaryrefslogtreecommitdiffstats
path: root/mobile/android/fenix/app/src/main/res/layout/component_exceptions.xml
blob: d8ef30e2a32fa546e6e9f0d2d76158efa0083b4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/exceptions_wrapper"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/exceptions_empty_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="@dimen/exceptions_description_margin">

        <TextView
            android:id="@+id/exceptions_empty_message"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="4dp"
            android:text="@string/exceptions_empty_message_description"
            android:textAlignment="viewStart"
            android:textColor="?attr/textSecondary"
            android:textSize="16sp"
            android:visibility="visible"
            app:layout_constraintTop_toTopOf="parent" />

        <org.mozilla.fenix.utils.LinkTextView
            android:id="@+id/exceptions_learn_more"
            android:layout_width="match_parent"
            android:layout_height="@dimen/component_exceptions_learn_more_height"
            android:padding="4dp"
            android:text="@string/exceptions_empty_message_learn_more_link"
            android:textAlignment="viewStart"
            android:textColor="?attr/textSecondary"
            android:textSize="16sp"
            android:visibility="visible"
            app:layout_constraintTop_toBottomOf="@id/exceptions_empty_message" />
    </androidx.constraintlayout.widget.ConstraintLayout>

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/exceptions_list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone"
        tools:listheader="@layout/exceptions_description"
        tools:listitem="@layout/exception_item"
        tools:listfooter="@layout/delete_exceptions_button" />
</FrameLayout>