65 lines
2.7 KiB
XML
65 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/background_color"
|
|
tools:context=".dashboard.TemperatureActivity">
|
|
<LinearLayout
|
|
android:id="@+id/top_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
android:background="@color/white"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="10dp"
|
|
android:layout_marginVertical="20dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:id="@+id/image_back"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:src="@mipmap/go_back"
|
|
android:padding="13dp"
|
|
/>
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/temperatures"
|
|
android:textStyle="normal"
|
|
android:layout_marginStart="5dp"
|
|
style="@style/TextHeavy20"/>
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="1dp"
|
|
/>
|
|
<ImageView
|
|
android:id="@+id/image_tool"
|
|
android:layout_width="18dp"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="7dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:src="@mipmap/more_point"/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="#BFBFBF"/>
|
|
</LinearLayout>
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_temperature"
|
|
app:layout_constraintTop_toBottomOf="@+id/top_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="13dp"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |