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

<!--
 This file is part of TinyWeatherForecastGermany.

 Copyright (c) 2020, 2021, 2022, 2023, 2024 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" xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/chartwidget_maincontainer"
        android:layout_height="match_parent"
        android:layout_width="match_parent">

    <ImageView android:id="@android:id/background"
               android:layout_width="match_parent"
               android:layout_height="match_parent"/>

    <TextView android:id="@+id/widget_reference_text"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_centerHorizontal="true"
              android:layout_marginLeft="8dp"
              android:layout_marginRight="8dp"
              android:gravity="center_horizontal"
              android:textColor="@color/colorTextWidget"
              android:textSize="@dimen/widget_textsize_small"
              android:visibility="visible"
              android:text="@string/dwd_notice_app"/>

    <ImageView
            android:id="@+id/chartwidget_chart"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="fitXY"
            android:layout_margin="6dp"
            android:layout_above="@id/widget_reference_text"
            android:layout_alignWithParentIfMissing="true"/>

</RelativeLayout>
