<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:tools="http://schemas.android.com/tools"
    android:background="@color/black">

    <ImageButton
        android:id="@+id/button_back"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:contentDescription="@string/cd_button_back"
        android:padding="10dp"
        android:scaleType="fitCenter"
        app:srcCompat="@drawable/ic_back_thin_white_16dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent" />

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent">

        <ImageView
            android:id="@+id/image_polycentric"
            android:layout_width="30dp"
            android:layout_height="30dp"
            app:srcCompat="@drawable/neopass"
            android:layout_marginTop="10dp"/>

        <TextView
            android:id="@+id/text_polycentric"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/polycentric"
            android:fontFamily="@font/inter_light"
            android:textSize="32dp"
            android:layout_marginLeft="16dp"/>
    </LinearLayout>

    <LinearLayout
        android:id="@+id/text_description"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:animateLayoutChanges="true"
        android:orientation="vertical"
        android:background="@drawable/background_videodetail_description"
        android:layout_marginLeft="14dp"
        android:layout_marginRight="14dp"
        android:layout_marginTop="14dp"
        android:layout_marginBottom="14dp"
        android:paddingTop="3dp"
        android:paddingBottom="5dp"
        android:paddingLeft="12dp"
        android:paddingRight="12dp"
        app:layout_constraintTop_toBottomOf="@id/button_back"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintBottom_toTopOf="@id/layout_buttons">

        <ScrollView
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <com.futo.platformplayer.views.behavior.NonScrollingTextView
                android:id="@+id/videodetail_description"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingTop="5dp"
                android:paddingBottom="5dp"
                android:textColor="@color/white"
                android:fontFamily="@font/inter_light"
                android:background="@color/transparent"
                android:textSize="14sp"
                android:text="@string/polycentric_explanation" />
        </ScrollView>
    </LinearLayout>

    <LinearLayout
        android:id="@+id/layout_buttons"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_marginStart="20dp"
        android:layout_marginEnd="20dp"
        android:layout_marginTop="20dp"
        android:layout_marginBottom="20dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent">

        <com.futo.platformplayer.views.buttons.BigButton
            android:id="@+id/button_video"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:buttonText="@string/video"
            app:buttonSubText="@string/view_a_more_in_depth_video"
            app:buttonIcon="@drawable/ic_smart_display" />

        <com.futo.platformplayer.views.buttons.BigButton
            android:id="@+id/button_technical"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:buttonText="@string/technical_documentation"
            app:buttonSubText="@string/view_the_technical_documentation"
            app:buttonIcon="@drawable/ic_wrench"
            android:layout_marginTop="8dp" />
    </LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>