178 lines
7.6 KiB
XML
178 lines
7.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true"
|
|
android:background="@color/background_color">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingTop="32dp"
|
|
android:paddingBottom="40dp"
|
|
android:paddingHorizontal="24dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/btn_voltar"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_arrow_back"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
app:tint="?attr/colorPrimary"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Editar Dados Pessoais"
|
|
android:textSize="28sp"
|
|
android:fontFamily="sans-serif-black"
|
|
android:textColor="@color/text_primary"
|
|
android:layout_marginTop="24dp"
|
|
android:layout_marginBottom="32dp"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="32dp">
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
android:id="@+id/img_perfil_edit"
|
|
android:layout_width="120dp"
|
|
android:layout_height="120dp"
|
|
android:src="@drawable/ic_user"
|
|
android:padding="2dp"
|
|
android:scaleType="centerCrop"
|
|
app:shapeAppearanceOverlay="@style/CircleImageView"/>
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/fab_edit_photo"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignEnd="@id/img_perfil_edit"
|
|
android:layout_alignBottom="@id/img_perfil_edit"
|
|
android:src="@drawable/ic_camera"
|
|
app:fabSize="mini"
|
|
app:backgroundTint="?attr/colorPrimary"
|
|
app:tint="@color/white"
|
|
android:contentDescription="Editar foto"/>
|
|
</RelativeLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edit_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="Nome"
|
|
android:inputType="textPersonName"
|
|
android:imeOptions="actionNext"
|
|
android:maxLines="1" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edit_specialty"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="Especialidade"
|
|
android:inputType="text"
|
|
android:imeOptions="actionNext"
|
|
android:maxLines="1" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
android:hint="Sexo">
|
|
|
|
<AutoCompleteTextView
|
|
android:id="@+id/edit_gender"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="none" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginBottom="16dp">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginEnd="8dp"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edit_horario_inicio"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="Início"
|
|
android:focusable="false"
|
|
android:clickable="true"
|
|
android:inputType="none" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="8dp"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edit_horario_fim"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="Fim"
|
|
android:focusable="false"
|
|
android:clickable="true"
|
|
android:inputType="none" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="32dp"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edit_email"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:enabled="false"
|
|
android:hint="Email (Não editável)"
|
|
android:inputType="textEmailAddress" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_guardar_alteracoes"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:text="GUARDAR ALTERAÇÕES"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold"
|
|
app:cornerRadius="30dp"
|
|
app:backgroundTint="?attr/colorPrimary"
|
|
android:textColor="@color/white"/>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|