<?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/. -->
<ScrollView 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:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="6dp"
    android:layout_marginBottom="6dp">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:paddingStart="?android:attr/listPreferredItemPaddingStart"
        android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">

        <TextView
            android:id="@+id/details"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="?primaryText"
            android:textColorLink="?aboutLink"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:text="@tools:sample/lorem/random" />

        <TextView
            android:id="@+id/author_label"
            style="@style/AboutHeaderContentText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:text="@string/mozac_feature_addons_authors"
            app:layout_constraintEnd_toStartOf="@+id/author_text"
            app:layout_constraintHorizontal_chainStyle="spread_inside"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/details" />

        <TextView
            android:id="@+id/author_text"
            style="@style/AboutHeaderContentText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_marginTop="20dp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/author_label"
            app:layout_constraintTop_toBottomOf="@+id/details"
            tools:text="@tools:sample/full_names" />

        <View
            android:id="@+id/author_divider"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginTop="10dp"
            android:background="?android:attr/listDivider"
            android:importantForAccessibility="no"
            app:layout_constraintTop_toBottomOf="@id/author_text"
            tools:layout_editor_absoluteX="16dp" />

        <TextView
            android:id="@+id/version_label"
            style="@style/AboutHeaderContentText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:text="@string/mozac_feature_addons_version"
            app:layout_constraintEnd_toStartOf="@+id/version_text"
            app:layout_constraintHorizontal_chainStyle="spread_inside"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/author_divider"
            tools:layout_editor_absoluteY="52dp" />

        <TextView
            android:id="@+id/version_text"
            style="@style/AboutHeaderContentText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/version_label"
            app:layout_constraintTop_toBottomOf="@+id/author_divider"
            tools:text="1.2.3" />

        <View
            android:id="@+id/version_divider"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginTop="10dp"
            android:layout_marginBottom="10dp"
            android:background="?android:attr/listDivider"
            android:importantForAccessibility="no"
            app:layout_constraintTop_toBottomOf="@+id/version_text" />

        <TextView
            android:id="@+id/last_updated_label"
            style="@style/AboutHeaderContentText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:text="@string/mozac_feature_addons_last_updated"
            app:layout_constraintEnd_toStartOf="@+id/last_updated_text"
            app:layout_constraintHorizontal_chainStyle="spread_inside"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/version_divider" />

        <TextView
            android:id="@+id/last_updated_text"
            style="@style/AboutHeaderContentText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/last_updated_label"
            app:layout_constraintTop_toBottomOf="@+id/version_divider"
            tools:text="Oct 16, 2019" />

        <View
            android:id="@+id/last_updated_divider"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginTop="10dp"
            android:background="?android:attr/listDivider"
            android:importantForAccessibility="no"
            app:layout_constraintTop_toBottomOf="@+id/last_updated_text" />

        <TextView
            android:id="@+id/home_page_label"
            style="@style/AboutHeaderContentText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:text="@string/mozac_feature_addons_home_page"
            android:textColor="?aboutLink"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/last_updated_divider" />

        <View
            android:id="@+id/home_page_divider"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginTop="10dp"
            android:background="?android:attr/listDivider"
            android:importantForAccessibility="no"
            app:layout_constraintTop_toBottomOf="@+id/home_page_label" />

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            app:layout_constraintTop_toBottomOf="@+id/home_page_divider">

            <TextView
                android:id="@+id/rating_label"
                style="@style/AboutHeaderContentText"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/mozac_feature_addons_rating"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <RatingBar
                android:id="@+id/rating_view"
                style="@style/Widget.AppCompat.RatingBar.Small"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/addon_details_rating_view_margin_start"
                android:layout_marginEnd="@dimen/addon_details_rating_view_margin_end"
                android:isIndicator="true"
                android:numStars="5"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toStartOf="@+id/users_count"
                app:layout_constraintHorizontal_bias="1"
                app:layout_constraintHorizontal_chainStyle="packed"
                app:layout_constraintStart_toEndOf="@+id/rating_label"
                app:layout_constraintTop_toTopOf="parent" />

            <TextView
                android:id="@+id/users_count"
                style="@style/AboutHeaderContentText"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toEndOf="@+id/rating_view"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintWidth_default="wrap"
                tools:text="591,642" />

        </androidx.constraintlayout.widget.ConstraintLayout>

    </androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
