64 lines
2.7 KiB
XML
64 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<data>
|
|
<variable name="textLocation" type="String"/>
|
|
</data>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:padding="@dimen/default_padding"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="120dp">
|
|
<ImageView
|
|
android:adjustViewBounds="true"
|
|
android:padding="0dp"
|
|
android:scaleType="fitCenter"
|
|
android:id="@+id/imageView"
|
|
android:layout_width="wrap_content"
|
|
android:visibility="gone"
|
|
android:layout_height="0dp"
|
|
android:contentDescription="시계 아이콘"
|
|
app:srcCompat="@drawable/ico_time"
|
|
tools:ignore="ImageContrastCheck"
|
|
app:tint="@android:color/white"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="@id/textView2"
|
|
app:layout_constraintTop_toTopOf="@id/textView2" />
|
|
|
|
<TextView
|
|
android:id="@+id/textView2"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/default_layout_margin"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:gravity="left|center_vertical"
|
|
android:text="시간별 예보"
|
|
style="@style/normal"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="@dimen/_14sp"
|
|
app:layout_constraintRight_toLeftOf="@id/textViewLocation"
|
|
app:layout_constraintLeft_toRightOf="@id/imageView"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/textViewLocation"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="sans-serif-medium"
|
|
android:text="@{textLocation}"
|
|
android:textColor="@android:color/white"
|
|
android:gravity="center_vertical|right"
|
|
android:textSize="@dimen/_12sp"
|
|
style="@style/normal"
|
|
android:layout_marginRight="@dimen/default_layout_margin"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/weatherViewPager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="90dp"
|
|
app:layout_constraintTop_toBottomOf="@+id/textView2" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout>
|