|
@@ -4,11 +4,13 @@
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
+ android:background="@color/white"
|
|
|
tools:context=".ui.dashboard.DashboardFragment">
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
@@ -19,101 +21,134 @@
|
|
|
android:layout_height="match_parent"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/name"
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ style="@style/ThemeOverlay.Material3.AutoCompleteTextView.OutlinedBox"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="15dp"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
android:layout_marginEnd="15dp"
|
|
|
android:hint="@string/sender_s_name_or_number"
|
|
|
- android:lines="2" />
|
|
|
+ app:endIconMode="clear_text">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/name"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
- <EditText
|
|
|
- android:id="@+id/message"
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ style="@style/ThemeOverlay.Material3.AutoCompleteTextView.OutlinedBox"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
android:layout_marginEnd="15dp"
|
|
|
- android:gravity="top|start"
|
|
|
android:hint="@string/sms_content"
|
|
|
- android:inputType="textMultiLine"
|
|
|
- android:maxLines="20"
|
|
|
- android:minLines="10"
|
|
|
- android:scrollbars="vertical" />
|
|
|
+ app:endIconMode="clear_text">
|
|
|
|
|
|
- <TextView
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/message"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center|start"
|
|
|
+ android:inputType="textMultiLine"
|
|
|
+ android:maxLines="20"
|
|
|
+ android:minLines="10"
|
|
|
+ android:scrollbars="vertical" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.materialswitch.MaterialSwitch
|
|
|
+ android:id="@+id/read"
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
android:layout_marginEnd="15dp"
|
|
|
- android:text="@string/has_the_message_been_read"
|
|
|
- android:textColor="#000000"
|
|
|
- android:textSize="13sp" />
|
|
|
+ android:text="@string/has_the_message_been_read" />
|
|
|
|
|
|
- <RadioGroup
|
|
|
- android:id="@+id/radioGroup"
|
|
|
+ <com.google.android.material.button.MaterialSplitButton
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="15dp"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
- android:layout_marginEnd="15dp"
|
|
|
- android:orientation="horizontal">
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:layout_marginEnd="15dp">
|
|
|
|
|
|
- <RadioButton
|
|
|
- android:id="@+id/radioButton1"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <Button
|
|
|
+ android:id="@+id/selectTime"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:checked="true"
|
|
|
- android:tag="1"
|
|
|
- android:text="@string/read"
|
|
|
- android:textColor="#000000" />
|
|
|
+ android:gravity="start|center"
|
|
|
+ android:text="@string/sms_sending_time"
|
|
|
+ app:icon="@drawable/twotone_timer_24" />
|
|
|
|
|
|
|
|
|
- <RadioButton
|
|
|
- android:id="@+id/radioButton2"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="20dp"
|
|
|
- android:tag="0"
|
|
|
- android:text="@string/unread"
|
|
|
- android:textColor="#000000" />
|
|
|
- </RadioGroup>
|
|
|
+ </com.google.android.material.button.MaterialSplitButton>
|
|
|
+
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
- android:orientation="horizontal">
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/time"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="15dp"
|
|
|
- android:layout_marginEnd="10dp"
|
|
|
- android:enabled="false"
|
|
|
- android:focusable="false"
|
|
|
- android:hint="@string/sms_sending_time"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintEnd_toStartOf="@+id/selectTime"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/selectTime"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginEnd="15dp"
|
|
|
- android:layout_marginBottom="10dp"
|
|
|
- android:text="@string/select_time"
|
|
|
- android:textColor="#ffffff"
|
|
|
- android:textSize="13sp"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ android:layout_margin="15dp"
|
|
|
+
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="100dp"
|
|
|
+ android:layout_margin="15dp">
|
|
|
+
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:id="@+id/materialTextView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:drawableStart="@drawable/twotone_email_24"
|
|
|
+ android:drawablePadding="5dp"
|
|
|
+ android:gravity="center|start"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/materialTextView2"
|
|
|
+ app:layout_constraintHorizontal_bias="0.5"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:text="Sender" />
|
|
|
+
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:id="@+id/materialTextView2"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/materialTextView"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintHorizontal_bias="0.5"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/materialTextView"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:text="Time" />
|
|
|
+
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+
|
|
|
+ android:id="@+id/show_msg"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:layout_marginBottom="4dp"
|
|
|
+ android:textStyle="italic"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/materialTextView3"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintHorizontal_bias="0.153"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/materialTextView"
|
|
|
+ tools:text="Message" />
|
|
|
+
|
|
|
+ <com.google.android.material.textview.MaterialTextView
|
|
|
+ android:id="@+id/materialTextView3"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ tools:text="Read" />
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
<Button
|
|
|
android:id="@+id/insert_mms"
|
|
@@ -137,7 +172,8 @@
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:visibility="gone" />
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|