<?xml version="1.0" encoding="utf-8"?>

<!--
 This file is part of TinyWeatherForecastGermany.

 Copyright (c) 2020, 2021 Pawel Dube

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:id="@+id/dl_maincontainer"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

    <TextView
            android:id="@+id/dl_heading"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_marginBottom="3dp"
            android:textAlignment="center"
            android:layout_alignParentTop="true"
            android:textColor="?attr/colorTextLight"
            android:textSize="@dimen/fcmain_textsize_xl"/>

    <LinearLayout
            android:id="@+id/dl_linearlayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:minHeight="24dp"
            android:layout_below="@id/dl_heading"
            android:weightSum="10"
            android:layout_marginBottom="5dp"
            android:orientation="horizontal">

            <ImageView
                    android:id="@+id/dl_icon"
                    android:layout_width="0dp"
                    android:layout_weight="1"
                    android:layout_height="22dp"
                    android:layout_gravity="center"
                    android:gravity="center"/>

            <TextView
                    android:id="@+id/dl_value"
                    android:layout_width="0dp"
                    android:layout_weight="2"
                    android:layout_height="wrap_content"
                    android:textColor="?attr/colorTextLight"
                    android:textSize="@dimen/fcmain_textsize_large"
                    android:paddingRight="2dp"
                    android:gravity="center"
                    android:layout_gravity="center"
                    android:textAlignment="center"/>

            <TextView
                    android:id="@+id/dl_label"
                    android:layout_width="0dp"
                    android:layout_weight="7"
                    android:layout_height="wrap_content"
                    android:textColor="?attr/colorTextLight"
                    android:textSize="@dimen/fcmain_textsize_large"
                    android:layout_gravity="center"
                    android:gravity="start"
                    android:textAlignment="textStart"/>

    </LinearLayout>

</RelativeLayout>