284 lines
12 KiB
XML
284 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView 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"
|
|
android:background="#F5F7FB"
|
|
android:paddingBottom="96dp"
|
|
tools:context=".ui.zones.ZonesFragment">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="24dp">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="190dp">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="190dp"
|
|
android:background="@drawable/bg_header_top" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/zones_header_title"
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="26sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
android:text="@string/zones_header_subtitle"
|
|
android:textColor="#E1EAFF"
|
|
android:textSize="14sp" />
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_marginTop="-40dp"
|
|
android:layout_marginEnd="24dp"
|
|
android:background="@drawable/bg_safe_banner"
|
|
android:orientation="vertical"
|
|
android:padding="18dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/zones_summary_title"
|
|
android:textColor="#0B6635"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:text="@string/zones_summary_desc"
|
|
android:textColor="#0B6635" />
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/addZoneButton"
|
|
style="@style/Widget.MaterialComponents.Button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginEnd="24dp"
|
|
android:backgroundTint="#1F6AEF"
|
|
app:cornerRadius="16dp"
|
|
app:icon="@drawable/ic_add"
|
|
app:iconTint="#FFFFFF"
|
|
android:text="@string/zones_add_button"
|
|
android:textAllCaps="false"
|
|
android:textColor="#FFFFFF"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/zoneList"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:orientation="vertical"
|
|
android:paddingStart="20dp"
|
|
android:paddingEnd="20dp">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
app:cardBackgroundColor="#FFFFFF"
|
|
app:cardCornerRadius="24dp"
|
|
app:strokeColor="#E1E5EF"
|
|
app:strokeWidth="1dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<FrameLayout
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:background="@drawable/bg_zone_icon_primary">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:text="@string/zone_school_icon"
|
|
android:textSize="24sp" />
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/zones_school_name"
|
|
android:textColor="#0F172A"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:text="@string/zones_school_desc"
|
|
android:textColor="#6B7280" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_chip_success"
|
|
android:text="@string/zones_status_safe"
|
|
android:textColor="#0F7A45"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="14dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_chip_muted"
|
|
android:text="@string/zones_chip_entry"
|
|
android:textColor="#4B5563" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/zones_last_update"
|
|
android:textColor="#9CA3AF" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
app:cardBackgroundColor="#FFFFFF"
|
|
app:cardCornerRadius="24dp"
|
|
app:strokeColor="#E1E5EF"
|
|
app:strokeWidth="1dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<FrameLayout
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:background="@drawable/bg_zone_icon_secondary">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:text="@string/zone_home_icon"
|
|
android:textSize="24sp" />
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/zones_home_name"
|
|
android:textColor="#0F172A"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:text="@string/zones_home_desc"
|
|
android:textColor="#6B7280" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_chip_warning"
|
|
android:text="@string/zones_status_attention"
|
|
android:textColor="#B45309"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="14dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bg_chip_muted"
|
|
android:text="@string/zones_chip_exit"
|
|
android:textColor="#4B5563" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/zones_home_update"
|
|
android:textColor="#F97316"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|