196 lines
7.1 KiB
XML
196 lines
7.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/widget_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/widget_background"
|
|
android:orientation="vertical"
|
|
android:padding="12dp">
|
|
|
|
<!-- Header -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:layout_marginBottom="12dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:src="@drawable/ic_mountains"
|
|
android:tint="@color/widget_primary"
|
|
android:layout_marginEnd="8dp" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="OpenClimb"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/widget_text_primary" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Climbing Stats"
|
|
android:textSize="12sp"
|
|
android:textColor="@color/widget_text_secondary" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Stats Grid -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:gravity="center">
|
|
|
|
<!-- Top Row -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal"
|
|
android:layout_marginBottom="8dp">
|
|
|
|
<!-- Sessions Card -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:background="@drawable/widget_stat_card_background"
|
|
android:layout_marginEnd="4dp"
|
|
android:padding="12dp">
|
|
|
|
<TextView
|
|
android:id="@+id/widget_total_sessions"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="0"
|
|
android:textSize="22sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/widget_primary" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Sessions"
|
|
android:textSize="12sp"
|
|
android:textColor="@color/widget_text_secondary"
|
|
android:layout_marginTop="2dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Problems Card -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:background="@drawable/widget_stat_card_background"
|
|
android:layout_marginStart="4dp"
|
|
android:padding="12dp">
|
|
|
|
<TextView
|
|
android:id="@+id/widget_problems_completed"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="0"
|
|
android:textSize="22sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/widget_primary" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Completed"
|
|
android:textSize="12sp"
|
|
android:textColor="@color/widget_text_secondary"
|
|
android:layout_marginTop="2dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Bottom Row -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<!-- Success Rate Card -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:background="@drawable/widget_stat_card_background"
|
|
android:layout_marginEnd="4dp"
|
|
android:padding="12dp">
|
|
|
|
<TextView
|
|
android:id="@+id/widget_total_problems"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="0"
|
|
android:textSize="22sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/widget_secondary" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Problems"
|
|
android:textSize="12sp"
|
|
android:textColor="@color/widget_text_secondary"
|
|
android:layout_marginTop="2dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- Favorite Gym Card -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:background="@drawable/widget_stat_card_background"
|
|
android:layout_marginStart="4dp"
|
|
android:padding="12dp">
|
|
|
|
<TextView
|
|
android:id="@+id/widget_favorite_gym"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="No gyms"
|
|
android:textSize="13sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/widget_accent"
|
|
android:gravity="center"
|
|
android:maxLines="2"
|
|
android:ellipsize="end" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Favorite"
|
|
android:textSize="12sp"
|
|
android:textColor="@color/widget_text_secondary"
|
|
android:layout_marginTop="2dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|