194 lines
8.3 KiB
XML
194 lines
8.3 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/profileRoot"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/colorBackground"
|
|
tools:context=".ProfileDashboardActivity">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnVoltar"
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:text="← Voltar"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/colorTextSecondary"
|
|
android:textSize="16sp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/txtProfileTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="O seu Perfil"
|
|
android:textColor="@color/colorTextPrimary"
|
|
android:textSize="28sp"
|
|
android:fontFamily="sans-serif-medium"
|
|
app:layout_constraintTop_toBottomOf="@id/btnVoltar"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:layout_marginTop="20dp" />
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/cardProfileBig"
|
|
android:layout_width="110dp"
|
|
android:layout_height="110dp"
|
|
android:layout_marginTop="32dp"
|
|
app:cardCornerRadius="55dp"
|
|
app:cardElevation="6dp"
|
|
app:layout_constraintTop_toBottomOf="@id/txtProfileTitle"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
<ImageView
|
|
android:id="@+id/imgProfile"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/circle_bg" />
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="24dp"
|
|
app:layout_constraintTop_toBottomOf="@id/cardProfileBig"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingHorizontal="32dp"
|
|
android:paddingBottom="40dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Nome de Exibição"
|
|
android:textColor="@color/colorTextSecondary"
|
|
android:textSize="14sp" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
app:boxCornerRadiusTopStart="12dp"
|
|
app:boxCornerRadiusTopEnd="12dp"
|
|
app:boxCornerRadiusBottomStart="12dp"
|
|
app:boxCornerRadiusBottomEnd="12dp"
|
|
app:boxStrokeWidth="0dp"
|
|
app:boxBackgroundColor="@color/colorSurface">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/inputProfileName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="54dp"
|
|
android:paddingHorizontal="16dp"
|
|
android:hint="O seu nome" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:text="Telemóvel"
|
|
android:textColor="@color/colorTextSecondary"
|
|
android:textSize="14sp" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
app:boxCornerRadiusTopStart="12dp"
|
|
app:boxCornerRadiusTopEnd="12dp"
|
|
app:boxCornerRadiusBottomStart="12dp"
|
|
app:boxCornerRadiusBottomEnd="12dp"
|
|
app:boxStrokeWidth="0dp"
|
|
app:boxBackgroundColor="@color/colorSurface">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/inputProfilePhone"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="54dp"
|
|
android:hint="O seu número"
|
|
android:inputType="phone"
|
|
android:paddingHorizontal="16dp" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:text="Email"
|
|
android:textColor="@color/colorTextSecondary"
|
|
android:textSize="14sp" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="6dp"
|
|
app:boxCornerRadiusTopStart="12dp"
|
|
app:boxCornerRadiusTopEnd="12dp"
|
|
app:boxCornerRadiusBottomStart="12dp"
|
|
app:boxCornerRadiusBottomEnd="12dp"
|
|
app:boxStrokeWidth="0dp"
|
|
app:boxBackgroundColor="@color/colorSurface">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/inputProfileEmail"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="54dp"
|
|
android:hint="O seu email"
|
|
android:inputType="textEmailAddress"
|
|
android:paddingHorizontal="16dp" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnSaveProfile"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:layout_marginTop="32dp"
|
|
app:cornerRadius="14dp"
|
|
app:backgroundTint="@color/colorPrimary"
|
|
android:text="Guardar Alterações"
|
|
android:textAllCaps="false"
|
|
android:textSize="16sp"
|
|
android:textColor="@color/white" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginVertical="32dp"
|
|
android:background="@color/colorDivider" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnFavoritos"
|
|
style="@style/Widget.Material3.Button.TonalButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
app:cornerRadius="14dp"
|
|
android:text="Os meus Favoritos"
|
|
android:textAllCaps="false"
|
|
android:textSize="16sp"
|
|
android:layout_marginBottom="12dp" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnMinhasReservas"
|
|
style="@style/Widget.Material3.Button.TonalButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
app:cornerRadius="14dp"
|
|
android:text="Histórico de Reservas"
|
|
android:textAllCaps="false"
|
|
android:textSize="16sp" />
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|