asd
This commit is contained in:
@@ -28,7 +28,35 @@
|
||||
android:textStyle="bold"
|
||||
android:textColor="#000000"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="32dp"/>
|
||||
android:layout_marginBottom="24dp"/>
|
||||
|
||||
<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_nav_inicio"
|
||||
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"
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/lay_top"
|
||||
android:layout_above="@id/bottom_navigation">
|
||||
|
||||
<!-- AGENDA VIEW -->
|
||||
<LinearLayout
|
||||
android:id="@+id/view_agenda"
|
||||
@@ -60,16 +59,6 @@
|
||||
android:background="@color/white" />
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_agenda_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="As tuas consultas planeadas"
|
||||
android:textStyle="bold"
|
||||
android:textSize="20sp"
|
||||
android:paddingVertical="12dp"
|
||||
android:textColor="@color/text_primary"/>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
@@ -134,42 +123,114 @@
|
||||
android:paddingBottom="16dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- ACEITES VIEW -->
|
||||
<!-- ACEITES VIEW (CONSULTAS) -->
|
||||
<LinearLayout
|
||||
android:id="@+id/view_aceites"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="24dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Consultas"
|
||||
android:text="Histórico de Consultas"
|
||||
android:textStyle="bold"
|
||||
android:textSize="26sp"
|
||||
android:fontFamily="sans-serif-black"
|
||||
android:paddingVertical="24dp"
|
||||
android:paddingHorizontal="24dp"
|
||||
android:textColor="@color/text_primary"/>
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
app:cardCornerRadius="24dp"
|
||||
app:cardElevation="2dp"
|
||||
app:strokeWidth="0dp"
|
||||
app:cardBackgroundColor="@color/white">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:padding="12dp"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_prev_day_hist"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/ic_arrow_back"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
app:tint="?attr/colorPrimary" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/btn_select_date_hist"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:padding="8dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_agenda_info_hist"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Selecionar Dia"
|
||||
android:textStyle="bold"
|
||||
android:textSize="18sp"
|
||||
android:textColor="?attr/colorPrimary"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_selected_date_full_hist"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Data Selecionada"
|
||||
android:textSize="14sp"
|
||||
android:textColor="@color/text_secondary"/>
|
||||
</LinearLayout>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_next_day_hist"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/ic_arrow_back"
|
||||
android:rotation="180"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
app:tint="?attr/colorPrimary" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_go_today_icon_hist"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/ic_nav_inicio"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
app:tint="?attr/colorPrimary"
|
||||
android:visibility="gone"/>
|
||||
</LinearLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_aceites_empty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="Nenhuma consulta encontrada."
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Nenhuma consulta encontrada para este dia."
|
||||
android:gravity="center"
|
||||
android:visibility="gone"
|
||||
android:textSize="18sp"
|
||||
android:textColor="@color/text_secondary" />
|
||||
android:textColor="@color/text_secondary"
|
||||
android:paddingVertical="32dp"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_aceites"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="16dp" />
|
||||
android:paddingBottom="80dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- PERFIL VIEW -->
|
||||
@@ -184,14 +245,15 @@
|
||||
android:background="@color/background_color"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/img_perfil_main"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="120dp"
|
||||
android:src="@drawable/ic_user"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:background="@drawable/circle_bg_large"
|
||||
android:padding="24dp"
|
||||
app:tint="?attr/colorPrimary"/>
|
||||
android:scaleType="centerCrop"
|
||||
app:shapeAppearanceOverlay="@style/CircleImageView"
|
||||
android:padding="2dp"/>
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -42,6 +42,9 @@
|
||||
<string name="title_medication">Medicação</string>
|
||||
<string name="title_profile">Perfil</string>
|
||||
<string name="title_sns24">SNS 24</string>
|
||||
<style name="CircleImageView" parent="">
|
||||
<item name="cornerSize">50%</item>
|
||||
</style>
|
||||
<style name="ShapeAppearanceOverlay.App.CornerSize50Percent" parent="">
|
||||
<item name="cornerSize">50%</item>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user