112 lines
4.3 KiB
XML
112 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="24dp">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/layout_med_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:hint="Nome do Medicamento"
|
|
android:layout_marginBottom="8dp">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edit_med_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textCapWords" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:layout_marginBottom="4dp">
|
|
|
|
<TextView
|
|
android:text="Horários"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:textSize="14sp"/>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_add_time"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Adicionar"
|
|
android:padding="0dp"
|
|
android:minWidth="0dp"
|
|
android:minHeight="0dp"/>
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/chip_group_times"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp"
|
|
android:padding="4dp"/>
|
|
|
|
|
|
<TextView
|
|
android:text="Via de Administração"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:layout_marginBottom="4dp"/>
|
|
|
|
<RadioGroup
|
|
android:id="@+id/radio_group_route"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dp">
|
|
|
|
<RadioButton
|
|
android:id="@+id/radio_oral"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Via Oral (Pela boca)" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/radio_topical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Via Tópica (Na pele)" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/radio_inhalatory"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Via Inalatória (Pelo nariz/boca)" />
|
|
</RadioGroup>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="Notas (Opcional)"
|
|
android:layout_marginBottom="16dp">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/edit_med_notes"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textMultiLine"
|
|
android:minLines="2"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</LinearLayout>
|