<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c) 2018-2020 DJI
  ~
  ~ Permission is hereby granted, free of charge, to any person obtaining a copy
  ~ of this software and associated documentation files (the "Software"), to deal
  ~ in the Software without restriction, including without limitation the rights
  ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  ~ copies of the Software, and to permit persons to whom the Software is
  ~ furnished to do so, subject to the following conditions:
  ~
  ~ The above copyright notice and this permission notice shall be included in all
  ~ copies or substantial portions of the Software.
  ~
  ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  ~ SOFTWARE.
  ~
  -->

<merge 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="match_parent"
    tools:parentTag="dji.v5.ux.core.widget.useraccount.UserAccountLoginWidget">

    <ImageView
        android:id="@+id/imageview_widget_status"
        android:layout_width="24dp"
        android:layout_height="24dp"
        android:layout_margin="3dp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toLeftOf="@+id/widget_divider"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/uxsdk_ic_person_log_out"
        tools:ignore="ContentDescription" />

    <View
        android:id="@+id/widget_divider"
        android:layout_width="1dp"
        android:layout_height="0dp"
        android:layout_margin="3dp"
        android:background="@color/uxsdk_white_80_percent"
        app:layout_constraintBottom_toBottomOf="@+id/imageview_widget_status"
        app:layout_constraintLeft_toRightOf="@+id/imageview_widget_status"
        app:layout_constraintRight_toLeftOf="@+id/imageview_widget_user"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageView
        android:id="@+id/imageview_widget_user"
        android:layout_width="24dp"
        android:layout_height="24dp"
        android:layout_margin="3dp"
        app:layout_constraintBottom_toBottomOf="@+id/imageview_widget_status"
        app:layout_constraintLeft_toRightOf="@+id/widget_divider"
        app:layout_constraintRight_toLeftOf="@+id/textview_widget_status"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/uxsdk_ic_person"
        tools:ignore="ContentDescription" />

    <androidx.appcompat.widget.AppCompatTextView
        android:id="@+id/textview_widget_status"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_margin="3dp"
        android:gravity="center_vertical"
        android:minWidth="100dp"
        android:paddingLeft="2dp"
        android:paddingRight="2dp"
        android:text="@string/uxsdk_user_login_widget_login"
        android:textColor="@color/uxsdk_white_80_percent"
        app:layout_constraintBottom_toBottomOf="@+id/imageview_widget_status"
        app:layout_constraintHorizontal_weight="0.8"
        app:layout_constraintLeft_toRightOf="@+id/imageview_widget_user"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <androidx.appcompat.widget.AppCompatTextView
        android:id="@+id/textview_widget_message"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_margin="3dp"
        android:gravity="center_vertical"
        android:maxLines="1"
        android:paddingLeft="2dp"
        android:paddingRight="2dp"
        android:textColor="@color/uxsdk_green"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/imageview_widget_status"
        tools:text="TEXT GOES HERE"
        tools:visibility="visible" />
</merge>