110 lines
4.1 KiB
XML
110 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/cardRankingUser"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="0dp"
|
|
app:cardBackgroundColor="@color/white">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="12dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tvRankPosition"
|
|
android:layout_width="32dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="#1"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/text_primary"
|
|
android:textSize="14sp" />
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginStart="8dp"
|
|
app:cardCornerRadius="20dp"
|
|
app:cardElevation="0dp">
|
|
<com.fluxup.app.AvatarView
|
|
android:id="@+id/ivRankingAvatar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="12dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvRankingName"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Nome do Utilizador"
|
|
android:textColor="@color/text_primary"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
<TextView
|
|
android:id="@+id/tvRankingStreak"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="🔥 7"
|
|
android:textColor="@color/streak_orange"
|
|
android:textSize="11sp"
|
|
android:textStyle="bold"
|
|
android:layout_marginEnd="8dp"/>
|
|
<TextView
|
|
android:id="@+id/tvRankingLabelTu"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Tu"
|
|
android:textColor="@color/primary_purple"
|
|
android:textSize="10sp"
|
|
android:textStyle="bold"
|
|
android:visibility="gone" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tvRankingXP"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="1250 XP"
|
|
android:textColor="@color/primary_purple"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:id="@+id/ivRankingTrophy"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_marginStart="6dp"
|
|
android:src="@drawable/ic_trophy_bronze"
|
|
android:visibility="gone" />
|
|
|
|
<ImageView
|
|
android:id="@+id/ivRankingTrend"
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginStart="8dp"
|
|
android:src="@drawable/ic_trend_up"
|
|
android:visibility="gone"
|
|
app:tint="@color/success_green" />
|
|
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|