fragment_info.xml 6.68 KB
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto">


    <ImageView
        android:id="@+id/fragmentInfoWeatherMiniIcon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_weather_mini"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        android:layout_marginTop="40dp"
        android:layout_marginStart="32dp"
        />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="16sp"
        android:text="날씨"
        android:textColor="#424241"
        app:layout_constraintTop_toTopOf="@+id/fragmentInfoWeatherMiniIcon"
        app:layout_constraintBottom_toBottomOf="@+id/fragmentInfoWeatherMiniIcon"
        app:layout_constraintLeft_toLeftOf="parent"
        android:layout_marginStart="65dp"
        />
    
    <View
        android:id="@+id/fragmentInfoWeatherView"
        android:layout_width="0dp"
        android:layout_height="100dp"
        android:background="@drawable/fragment_info_view_holder"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        android:layout_marginTop="75dp"
        android:layout_marginLeft="25dp"
        android:layout_marginRight="25dp"
        />

    <ImageView
        android:id="@+id/fragmentInfoWeatherIcon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintLeft_toLeftOf="@+id/fragmentInfoWeatherView"
        app:layout_constraintTop_toTopOf="@+id/fragmentInfoWeatherView"
        app:layout_constraintBottom_toBottomOf="@+id/fragmentInfoWeatherView"
        android:layout_marginStart="16dp"
        android:src="@drawable/ic_weather_cloud"
        />

    <TextView
            android:id="@+id/fragmentInfoWeatherLocale"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="수원시"
        app:layout_constraintLeft_toLeftOf="@+id/fragmentInfoWeatherView"
        app:layout_constraintTop_toTopOf="@+id/fragmentInfoWeatherView"
        android:layout_marginTop="18dp"
        android:layout_marginStart="90dp"
        android:textColor="#FC6828"
        android:textSize="20dp"
        />

    <TextView
        android:id="@+id/fragmentInfoCloudAmount"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="흐림"
        android:textSize="14sp"
        android:textColor="#95989A"
        app:layout_constraintLeft_toLeftOf="@+id/fragmentInfoWeatherView"
        app:layout_constraintTop_toTopOf="@+id/fragmentInfoWeatherView"
        android:layout_marginTop="50dp"
        android:layout_marginStart="90dp"
        />

    <TextView
        android:id="@+id/fragmentInfoRainPercent"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="강수확률 : 10%"
        android:textSize="14sp"
        android:textColor="#95989A"
        app:layout_constraintLeft_toLeftOf="@+id/fragmentInfoWeatherView"
        app:layout_constraintTop_toTopOf="@+id/fragmentInfoWeatherView"
        android:layout_marginTop="65dp"
        android:layout_marginStart="90dp"
        />

    <TextView
        android:id="@+id/fragmentInfoCurrentTemparature"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="#FC6928"
        android:textSize="40dp"
        android:textStyle="bold"
        android:text= "21℃"
        app:layout_constraintTop_toTopOf="@+id/fragmentInfoWeatherView"
        app:layout_constraintRight_toRightOf="@+id/fragmentInfoWeatherView"
        android:layout_marginTop="15dp"
        android:layout_marginEnd="17dp"
        />

    <TextView
        android:id="@+id/fragmentInfoCurrentMaxMinTemparature"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="11℃ / 22℃"
        android:textSize="14sp"
        android:textColor="#95989A"
        app:layout_constraintTop_toTopOf="@+id/fragmentInfoWeatherView"
        app:layout_constraintRight_toRightOf="@+id/fragmentInfoWeatherView"
        android:layout_marginTop="64dp"
        android:layout_marginEnd="22dp"
        />

    <ImageView
        android:id="@+id/imageViewminiAlarm"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_alarm_mini"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        android:layout_marginStart="32dp"
        android:layout_marginTop="210dp"
        />
    
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="오늘의 일정"
        android:textSize="16sp"
        android:textColor="#424241"
        android:layout_marginStart="65dp"
        app:layout_constraintTop_toTopOf="@+id/imageViewminiAlarm"
        app:layout_constraintBottom_toBottomOf="@+id/imageViewminiAlarm"
        app:layout_constraintLeft_toLeftOf="parent"
        />

    <View
        android:layout_width="0dp"
        android:layout_height="2dp"
        android:background="#95989A"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/imageViewminiAlarm"
        android:layout_marginTop="12dp"
        android:layout_marginLeft="25dp"
        android:layout_marginRight="25dp"
        />

    <TextView
        android:id="@+id/infoDateTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="7월 30일 일요일"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/imageViewminiAlarm"
        android:layout_marginStart="27dp"
        android:layout_marginTop="28dp"
        />


    <android.support.v7.widget.RecyclerView
        android:id="@+id/schedularRecyclerView"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/imageViewminiAlarm"
        android:layout_marginTop="60dp"
        >
    </android.support.v7.widget.RecyclerView>


</android.support.constraint.ConstraintLayout>