DESIGN JOGADORES

This commit is contained in:
2026-03-10 16:51:53 +00:00
parent 3733e027ae
commit cc868d0d4e

View File

@@ -1,95 +1,155 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
<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="#FAFAFA"
android:fillViewport="true"
android:background="@color/white"
tools:context=".ui.clubs.PlayerDetailFragment">
<LinearLayout
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal"
android:padding="24dp">
<ImageView
android:id="@+id/image_detail_player_photo"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_marginTop="24dp"
android:contentDescription="Player Photo"
android:src="@drawable/ic_menu_camera"
android:scaleType="centerCrop" />
<!-- Player Photo (Circular) -->
<androidx.cardview.widget.CardView
android:id="@+id/cardLogo"
android:layout_width="200dp"
android:layout_height="200dp"
app:cardCornerRadius="100dp"
app:cardElevation="8dp"
app:cardBackgroundColor="@color/white"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="16dp">
<ImageView
android:id="@+id/image_detail_player_photo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:padding="0dp"
tools:src="@drawable/ic_menu_camera"/>
</androidx.cardview.widget.CardView>
<!-- JOGADOR Label -->
<TextView
android:id="@+id/text_detail_player_name"
android:id="@+id/label_player"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Player Name"
android:textAlignment="center"
android:textColor="@color/black"
android:textSize="24sp"
android:textStyle="bold" />
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="JOGADOR:"
android:textSize="14sp"
android:textColor="#616161"
android:layout_marginTop="32dp"
app:cardCornerRadius="12dp"
app:cardElevation="2dp"
app:cardUseCompatPadding="true">
app:layout_constraintTop_toBottomOf="@id/cardLogo"
app:layout_constraintStart_toStartOf="parent"/>
<!-- Player Name -->
<TextView
android:id="@+id/text_detail_player_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
tools:text="João Carlos Pinto Castro"
android:textSize="28sp"
android:textStyle="bold"
android:textColor="#0D47A1"
android:layout_marginTop="4dp"
app:layout_constraintTop_toBottomOf="@id/label_player"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
<!-- Birthplace Section -->
<LinearLayout
android:id="@+id/layout_birthplace"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginTop="24dp"
app:layout_constraintTop_toBottomOf="@id/text_detail_player_name"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/ic_location"
app:tint="#455A64"
android:background="@drawable/circle_edit_background"
android:backgroundTint="#ECEFF1"
android:padding="8dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
android:layout_marginStart="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Data de Nascimento"
android:textColor="#888888"
android:textSize="14sp" />
<TextView
android:id="@+id/text_detail_birthdate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="N/D"
android:textColor="@color/black"
android:textSize="16sp" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:background="#EEEEEE" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Naturalidade"
android:textColor="#888888"
android:textSize="14sp" />
android:text="NATURALIDADE:"
android:textSize="12sp"
android:textColor="#616161"/>
<TextView
android:id="@+id/text_detail_birthplace"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="N/D"
android:textColor="@color/black"
android:textSize="16sp" />
tools:text="Vila do Conde"
android:textSize="16sp"
android:textColor="#263238"
android:textStyle="bold"/>
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
</LinearLayout>
<!-- Birth Date Section -->
<LinearLayout
android:id="@+id/layout_birthdate"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginTop="16dp"
app:layout_constraintTop_toBottomOf="@id/layout_birthplace"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
</ScrollView>
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/ic_calendar"
app:tint="#455A64"
android:background="@drawable/circle_edit_background"
android:backgroundTint="#ECEFF1"
android:padding="8dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginStart="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="DATA DE NASCIMENTO:"
android:textSize="12sp"
android:textColor="#616161"/>
<TextView
android:id="@+id/text_detail_birthdate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="1993-03-17"
android:textSize="16sp"
android:textColor="#263238"
android:textStyle="bold"/>
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>