<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright 2023 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     https://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/root"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <ScrollView
        android:id="@+id/scroll"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

        <TextView
            android:id="@+id/paragraphs"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hyphenationFrequency="fullFast"
            android:justificationMode="inter_word"
            android:paddingHorizontal="@dimen/spacing_large"
            android:paddingVertical="@dimen/spacing_medium"
            android:text="@string/english_paragraph"
            android:textSize="18sp"
            tools:targetApi="26" />

    </ScrollView>

    <LinearLayout
        android:id="@+id/control"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="?android:attr/windowBackground"
        android:elevation="4dp"
        android:orientation="horizontal"
        android:paddingHorizontal="@dimen/spacing_medium">

        <TextView
            android:id="@+id/hyphenation_frequency_label"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/hyphenation_frequency"
            android:textSize="16sp" />

        <Spinner
            android:id="@+id/hyphenation_frequency"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:padding="@dimen/spacing_small"
            tools:listitem="@android:layout/simple_spinner_item" />

    </LinearLayout>

</LinearLayout>
