Updated
This commit is contained in:
@@ -18,17 +18,37 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:title="">
|
||||
app:title=""
|
||||
app:titleTextAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
|
||||
|
||||
<!-- Logo Block -->
|
||||
<ImageView
|
||||
android:id="@+id/logoImageView"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:contentDescription="Medical Control Logo"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@mipmap/ic_launcher"/>
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/logoImageView"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:contentDescription="Medical Control Logo"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:tint="@android:color/white"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:text="Medical Control"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
android:fontFamily="sans-serif-medium"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Menu Button -->
|
||||
<ImageButton
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
android:layout_height="120dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:contentDescription="User Avatar - Click to change"
|
||||
android:contentDescription="User Avatar"
|
||||
android:scaleType="centerCrop"
|
||||
android:background="@drawable/message_input_background"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
@@ -58,18 +58,6 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/avatarHintTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="Нажмите на аватарку, чтобы изменить"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/avatarImageView" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- First Name Input -->
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:padding="16dp">
|
||||
android:padding="8dp">
|
||||
|
||||
<!-- Chat Avatar -->
|
||||
<ImageView
|
||||
android:id="@+id/chatAvatarImageView"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@drawable/circle_background"
|
||||
android:padding="2dp"
|
||||
android:scaleType="centerInside"
|
||||
@@ -34,12 +34,12 @@
|
||||
android:id="@+id/chatNameTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="16sp"
|
||||
android:textSize="13sp"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintEnd_toStartOf="@id/unreadCountBadge"
|
||||
app:layout_constraintStart_toEndOf="@id/chatAvatarImageView"
|
||||
@@ -51,13 +51,13 @@
|
||||
android:id="@+id/lastMessageTextView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="14sp"
|
||||
android:textSize="11sp"
|
||||
app:layout_constraintEnd_toStartOf="@id/lastMessageTimeTextView"
|
||||
app:layout_constraintStart_toEndOf="@id/chatAvatarImageView"
|
||||
app:layout_constraintTop_toBottomOf="@id/chatNameTextView"
|
||||
|
||||
@@ -159,6 +159,22 @@
|
||||
android:textSize="16sp"
|
||||
tools:text="This is a sent message" />
|
||||
|
||||
<!-- Reactions for Sent Messages -->
|
||||
<LinearLayout
|
||||
android:id="@+id/sentReactionsContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<!-- Reactions will be added dynamically -->
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
@@ -279,6 +295,22 @@
|
||||
android:textSize="16sp"
|
||||
tools:text="This is a received message" />
|
||||
|
||||
<!-- Reactions for Received Messages -->
|
||||
<LinearLayout
|
||||
android:id="@+id/receivedReactionsContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<!-- Reactions will be added dynamically -->
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="background">#121212</color>
|
||||
<color name="background_color">#121212</color>
|
||||
<color name="background_dark">#000000</color>
|
||||
<color name="black">#FFFFFFFF</color>
|
||||
<color name="error">#CF6679</color>
|
||||
@@ -10,6 +11,7 @@
|
||||
<color name="message_sent">#2D2D2D</color>
|
||||
<color name="message_sent_text">#FFFFFF</color>
|
||||
<color name="primary">#9E9E9E</color>
|
||||
<color name="primary_color">#9E9E9E</color>
|
||||
<color name="primary_dark">#616161</color>
|
||||
<color name="primary_light">#BDBDBD</color>
|
||||
<color name="reply_background">#2D3748</color>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<resources xmlns:ns1="http://schemas.android.com/tools">
|
||||
<color name="attachment_background">#E3F2FD</color>
|
||||
<color name="background">#FAFAFA</color>
|
||||
<color name="background_color">#FAFAFA</color>
|
||||
<color name="background_dark">#F5F5F5</color>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="error">#B00020</color>
|
||||
@@ -11,6 +12,7 @@
|
||||
<color name="message_sent">#E3F2FD</color>
|
||||
<color name="message_sent_text">#1976D2</color>
|
||||
<color name="primary">#1976D2</color>
|
||||
<color name="primary_color">#1976D2</color>
|
||||
<color name="primary_dark">#1565C0</color>
|
||||
<color name="primary_light">#BBDEFB</color>
|
||||
<color name="reply_background">#E8F5E8</color>
|
||||
|
||||
Reference in New Issue
Block a user