chenges buttons and text inputs attributes.
This commit is contained in:
10
app/src/main/res/drawable/pannel_button.xml
Normal file
10
app/src/main/res/drawable/pannel_button.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<solid android:color="@color/card_blue_app" />
|
||||||
|
<corners android:radius="20dp" />
|
||||||
|
<stroke android:color="@color/red" android:width="1dp" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</selector>
|
||||||
@@ -26,121 +26,113 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<GridLayout
|
||||||
<Button
|
|
||||||
android:id="@+id/btn_submit"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginHorizontal="16dp"
|
|
||||||
android:layout_marginTop="24dp"
|
|
||||||
android:clickable="false"
|
|
||||||
android:text="@string/check_buffer"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
app:cornerRadius="16dp"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/tv_subtitle4" />
|
|
||||||
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/btn_diagnostics"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginHorizontal="16dp"
|
|
||||||
android:layout_marginTop="24dp"
|
|
||||||
android:clickable="false"
|
|
||||||
android:text="@string/diagnostics"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
app:cornerRadius="16dp"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/btn_submit" />
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/btn_auto_dac"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginHorizontal="16dp"
|
|
||||||
android:layout_marginTop="24dp"
|
|
||||||
android:clickable="false"
|
|
||||||
android:text="@string/auto_dac"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
app:cornerRadius="16dp"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/btn_diagnostics" />
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/btn_calibration"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginHorizontal="16dp"
|
|
||||||
android:layout_marginTop="24dp"
|
|
||||||
android:clickable="false"
|
|
||||||
android:text="@string/calibration"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
app:cornerRadius="16dp"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/btn_auto_dac" />
|
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/btn_deviceInfo"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginHorizontal="16dp"
|
|
||||||
android:layout_marginTop="24dp"
|
|
||||||
android:clickable="false"
|
|
||||||
android:text="@string/deviceinfo"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
app:cornerRadius="16dp"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/btn_calibration" />
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/btn_deviceProvision"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="600dp"
|
||||||
android:visibility="visible"
|
android:layout_margin="10sp"
|
||||||
android:layout_marginHorizontal="16dp"
|
android:columnCount="2"
|
||||||
android:layout_marginTop="24dp"
|
android:rowCount="4"
|
||||||
android:clickable="false"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:text="@string/deviceProvision"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
app:cornerRadius="16dp"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/btn_deviceInfo" />
|
app:layout_constraintTop_toBottomOf="@+id/tv_subtitle4"
|
||||||
|
app:layout_constraintVertical_bias="0.471">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
|
||||||
android:id="@+id/btn_firefox"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginHorizontal="16dp"
|
|
||||||
android:layout_marginTop="24dp"
|
|
||||||
android:clickable="false"
|
|
||||||
android:text="@string/Firefox"
|
|
||||||
android:textColor="@color/white"
|
|
||||||
app:cornerRadius="16dp"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/btn_deviceProvision" />
|
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/btn_files"
|
android:id="@+id/btn_submit"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="150dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="130dp"
|
||||||
android:layout_marginHorizontal="16dp"
|
android:layout_margin="15sp"
|
||||||
android:layout_marginTop="24dp"
|
android:clickable="false"
|
||||||
android:clickable="false"
|
android:background="@drawable/pannel_button"
|
||||||
android:text="@string/Files"
|
android:text="@string/check_buffer"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/blue_text_color" />
|
||||||
app:cornerRadius="16dp"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/btn_firefox" />
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/btn_diagnostics"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="130dp"
|
||||||
|
android:layout_margin="15sp"
|
||||||
|
android:clickable="false"
|
||||||
|
android:text="@string/diagnostics"
|
||||||
|
android:background="@drawable/pannel_button"
|
||||||
|
android:textColor="@color/blue_text_color"
|
||||||
|
app:cornerRadius="16dp" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/btn_auto_dac"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="130dp"
|
||||||
|
android:layout_margin="15sp"
|
||||||
|
android:clickable="false"
|
||||||
|
android:text="@string/auto_dac"
|
||||||
|
android:background="@drawable/pannel_button"
|
||||||
|
android:textColor="@color/blue_text_color"
|
||||||
|
app:cornerRadius="16dp" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/btn_calibration"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="130dp"
|
||||||
|
android:layout_margin="15sp"
|
||||||
|
android:clickable="false"
|
||||||
|
android:text="@string/calibration"
|
||||||
|
android:background="@drawable/pannel_button"
|
||||||
|
android:textColor="@color/blue_text_color"
|
||||||
|
app:cornerRadius="16dp" />
|
||||||
|
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/btn_deviceInfo"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="130dp"
|
||||||
|
android:layout_margin="15sp"
|
||||||
|
android:clickable="false"
|
||||||
|
android:text="@string/deviceinfo"
|
||||||
|
android:background="@drawable/pannel_button"
|
||||||
|
android:textColor="@color/blue_text_color"
|
||||||
|
app:cornerRadius="16dp" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/btn_deviceProvision"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="130dp"
|
||||||
|
android:layout_margin="15sp"
|
||||||
|
android:text="@string/deviceProvision"
|
||||||
|
android:background="@drawable/pannel_button"
|
||||||
|
android:textColor="@color/blue_text_color"
|
||||||
|
android:visibility="visible"
|
||||||
|
app:cornerRadius="16dp" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/btn_firefox"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="130dp"
|
||||||
|
android:layout_margin="15sp"
|
||||||
|
android:clickable="false"
|
||||||
|
android:text="@string/Firefox"
|
||||||
|
android:background="@drawable/pannel_button"
|
||||||
|
android:textColor="@color/blue_text_color"
|
||||||
|
app:cornerRadius="16dp" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/btn_files"
|
||||||
|
android:layout_width="150dp"
|
||||||
|
android:layout_height="130dp"
|
||||||
|
android:layout_margin="15sp"
|
||||||
|
android:clickable="false"
|
||||||
|
android:text="@string/Files"
|
||||||
|
android:background="@drawable/pannel_button"
|
||||||
|
android:textColor="@color/blue_text_color"
|
||||||
|
app:cornerRadius="16dp"
|
||||||
|
tools:layout_editor_absoluteX="208dp"
|
||||||
|
tools:layout_editor_absoluteY="240dp" />
|
||||||
|
|
||||||
|
|
||||||
|
</GridLayout>
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
@@ -137,15 +137,6 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/til_careof">
|
app:layout_constraintTop_toBottomOf="@id/til_careof">
|
||||||
|
|
||||||
<AutoCompleteTextView
|
|
||||||
android:id="@+id/et_is_married"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:hint="@string/is_patient_married_yes_no"
|
|
||||||
android:inputType="none"
|
|
||||||
android:labelFor="@id/til_is_married"
|
|
||||||
app:simpleItems="@array/yes_no" />
|
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
@@ -168,6 +159,15 @@
|
|||||||
android:labelFor="@id/til_category"
|
android:labelFor="@id/til_category"
|
||||||
app:simpleItems="@array/category" />
|
app:simpleItems="@array/category" />
|
||||||
|
|
||||||
|
<AutoCompleteTextView
|
||||||
|
android:id="@+id/et_is_married"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:hint="@string/is_patient_married_yes_no"
|
||||||
|
android:inputType="none"
|
||||||
|
android:labelFor="@id/til_is_married"
|
||||||
|
app:simpleItems="@array/yes_no" />
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
android:id="@+id/userImage"
|
android:id="@+id/userImage"
|
||||||
android:layout_width="100dp"
|
android:layout_width="100dp"
|
||||||
android:layout_height="100dp"
|
android:layout_height="100dp"
|
||||||
|
android:layout_marginLeft="10dp"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:src="@drawable/ic_launcher_foreground" />
|
tools:src="@drawable/ic_launcher_foreground" />
|
||||||
@@ -91,8 +92,8 @@
|
|||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:layout_marginEnd="60dp"
|
android:layout_marginEnd="60dp"
|
||||||
android:background="@drawable/bloodgroup_button"
|
android:background="@drawable/bloodgroup_button"
|
||||||
android:paddingLeft="10dp"
|
android:paddingLeft="15dp"
|
||||||
android:paddingRight="10dp"
|
android:paddingRight="15dp"
|
||||||
android:text="@string/blood_group"
|
android:text="@string/blood_group"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/btn_startIncubation"
|
app:layout_constraintEnd_toStartOf="@+id/btn_startIncubation"
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
<color name="red">#FF0000</color>
|
<color name="red">#FF0000</color>
|
||||||
<color name="red_light">#88FF0000</color>
|
<color name="red_light">#88FF0000</color>
|
||||||
<color name="blue_app">#4daaff</color>
|
<color name="blue_app">#4daaff</color>
|
||||||
|
<color name="card_blue_app">#6600A3E0</color>
|
||||||
<color name="blue_app_dark">#005db3</color>
|
<color name="blue_app_dark">#005db3</color>
|
||||||
<color name="blue_app_light">#e5f3ff</color>
|
<color name="blue_app_light">#e5f3ff</color>
|
||||||
<color name="new_blue">#A2C3FA</color>
|
<color name="new_blue">#A2C3FA</color>
|
||||||
|
|||||||
Reference in New Issue
Block a user