<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:license="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=".LicenseActivity">

    <include
        android:id="@+id/includedToolbar"
        layout="@layout/toolbar_basic" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_behavior="@string/appbar_scrolling_view_behavior">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:clipChildren="false"
            android:orientation="vertical"
            android:textDirection="anyRtl"
            android:paddingBottom="12dp">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginEnd="18dp"
                android:layout_marginStart="18dp"
                android:layout_marginTop="12dp"
                android:gravity="center_vertical"
                android:lineSpacingMultiplier="1.1"
                android:text="@string/license_description" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://kotlinlang.org/"
                license:name="Kotlin" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://developer.android.com/jetpack/androidx"
                license:name="AndroidX" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://github.com/material-components/material-components-android"
                license:name="Material Components for Android" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://square.github.io/okhttp/"
                license:name="OkHttp" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://github.com/google/conscrypt"
                license:name="Conscrypt" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://square.github.io/retrofit/"
                license:name="Retrofit" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://bumptech.github.io/glide/"
                license:name="Glide" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://google.github.io/dagger/"
                license:name="Dagger 2" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://github.com/ReactiveX/RxJava"
                license:name="RxJava" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://github.com/uber/AutoDispose"
                license:name="AutoDispose" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://github.com/mikepenz/MaterialDrawer"
                license:name="MaterialDrawer" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://github.com/connyduck/SparkButton"
                license:name="SparkButton" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://github.com/chrisbanes/PhotoView"
                license:name="PhotoView" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://github.com/CanHub/Android-Image-Cropper"
                license:name="Android Image Cropper" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_apache_2"
                license:link="https://github.com/C1710/FileMojiCompat"
                license:name="FileMojiCompat" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_cc_by_4"
                license:link="https://twemoji.twitter.com/"
                license:name="Twemoji" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_cc_by_4"
                license:link="https://github.com/c1710/blobmoji"
                license:name="Blobmoji" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_cc_by_sa_4"
                license:link="https://github.com/tuskyapp/artwork"
                license:name="Tusky elephant artwork" />

            <com.keylesspalace.tusky.view.LicenseCard
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="12dp"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                license:license="@string/license_mit"
                license:link="https://github.com/accelforce/AccelForceEaster"
                license:name="AccelForce Easter View" />

            <TextView
                android:id="@+id/licenseApacheTextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="18dp"
                android:layout_marginStart="18dp"
                android:layout_marginTop="12dp"
                android:textSize="12sp" />

            <TextView
                android:id="@+id/licenseMitTextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginEnd="18dp"
                android:layout_marginStart="18dp"
                android:layout_marginTop="12dp"
                android:textSize="12sp" />


        </LinearLayout>

    </ScrollView>

    <include layout="@layout/item_status_bottom_sheet" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>
