|
@@ -22,8 +22,8 @@
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_height="match_parent"
|
|
- android:layout_margin="@dimen/standard_margin"
|
|
|
|
- android:orientation="vertical">
|
|
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:padding="@dimen/standard_padding">
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
android:id="@+id/onlineStatusView"
|
|
android:id="@+id/onlineStatusView"
|
|
@@ -56,17 +56,21 @@
|
|
<com.google.android.material.card.MaterialCardView
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/onlineStatus"
|
|
android:id="@+id/onlineStatus"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="@dimen/account_item_layout_height"
|
|
|
|
|
|
+ android:layout_height="@dimen/online_status_item_height"
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="@dimen/standard_half_margin"
|
|
android:layout_marginEnd="@dimen/standard_half_margin"
|
|
android:layout_weight="1"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
app:cardBackgroundColor="@color/grey_200"
|
|
app:cardBackgroundColor="@color/grey_200"
|
|
|
|
+ app:strokeWidth="2dp"
|
|
app:cardElevation="0dp">
|
|
app:cardElevation="0dp">
|
|
|
|
|
|
<RelativeLayout
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="match_parent"
|
|
|
|
- android:layout_margin="@dimen/standard_margin"
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
+ android:layout_marginStart="@dimen/standard_margin"
|
|
|
|
+ android:layout_marginEnd="@dimen/standard_margin"
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UnusedAttribute">
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
|
|
@@ -86,7 +90,6 @@
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerInParent="true"
|
|
- android:layout_marginEnd="@dimen/standard_margin"
|
|
|
|
android:layout_toEndOf="@id/online_icon"
|
|
android:layout_toEndOf="@id/online_icon"
|
|
android:orientation="vertical">
|
|
android:orientation="vertical">
|
|
|
|
|
|
@@ -121,17 +124,21 @@
|
|
<com.google.android.material.card.MaterialCardView
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/awayStatus"
|
|
android:id="@+id/awayStatus"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="@dimen/account_item_layout_height"
|
|
|
|
|
|
+ android:layout_height="@dimen/online_status_item_height"
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="@dimen/standard_half_margin"
|
|
android:layout_marginStart="@dimen/standard_half_margin"
|
|
android:layout_weight="1"
|
|
android:layout_weight="1"
|
|
|
|
+ app:strokeWidth="2dp"
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
app:cardBackgroundColor="@color/grey_200"
|
|
app:cardBackgroundColor="@color/grey_200"
|
|
app:cardElevation="0dp">
|
|
app:cardElevation="0dp">
|
|
|
|
|
|
<RelativeLayout
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="match_parent"
|
|
|
|
- android:layout_margin="@dimen/standard_margin"
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
+ android:layout_marginStart="@dimen/standard_margin"
|
|
|
|
+ android:layout_marginEnd="@dimen/standard_margin"
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UnusedAttribute">
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
|
|
@@ -151,7 +158,6 @@
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerInParent="true"
|
|
- android:layout_marginEnd="@dimen/standard_margin"
|
|
|
|
android:layout_toEndOf="@id/away_icon"
|
|
android:layout_toEndOf="@id/away_icon"
|
|
android:orientation="vertical">
|
|
android:orientation="vertical">
|
|
|
|
|
|
@@ -195,17 +201,21 @@
|
|
<com.google.android.material.card.MaterialCardView
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/dndStatus"
|
|
android:id="@+id/dndStatus"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="@dimen/account_item_layout_height"
|
|
|
|
|
|
+ android:layout_height="@dimen/online_status_item_height"
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="@dimen/standard_half_margin"
|
|
android:layout_marginEnd="@dimen/standard_half_margin"
|
|
android:layout_weight="1"
|
|
android:layout_weight="1"
|
|
|
|
+ app:strokeWidth="2dp"
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
app:cardBackgroundColor="@color/grey_200"
|
|
app:cardBackgroundColor="@color/grey_200"
|
|
app:cardElevation="0dp">
|
|
app:cardElevation="0dp">
|
|
|
|
|
|
<RelativeLayout
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="match_parent"
|
|
|
|
- android:layout_margin="@dimen/standard_margin"
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
+ android:layout_marginStart="@dimen/standard_margin"
|
|
|
|
+ android:layout_marginEnd="@dimen/standard_margin"
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UnusedAttribute">
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
|
|
@@ -237,16 +247,6 @@
|
|
android:text="@string/dnd"
|
|
android:text="@string/dnd"
|
|
android:textAppearance="?android:attr/textAppearanceListItem" />
|
|
android:textAppearance="?android:attr/textAppearanceListItem" />
|
|
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/dnd_text"
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:ellipsize="end"
|
|
|
|
- android:gravity="top"
|
|
|
|
- android:maxLines="1"
|
|
|
|
- android:text="Mute notifications"
|
|
|
|
- android:textColor="?android:attr/textColorSecondary" />
|
|
|
|
-
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
@@ -256,8 +256,10 @@
|
|
<com.google.android.material.card.MaterialCardView
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/invisibleStatus"
|
|
android:id="@+id/invisibleStatus"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="@dimen/account_item_layout_height"
|
|
|
|
|
|
+ android:layout_height="@dimen/online_status_item_height"
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="@dimen/standard_half_margin"
|
|
android:layout_marginStart="@dimen/standard_half_margin"
|
|
|
|
+
|
|
android:layout_weight="1"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
app:cardBackgroundColor="@color/grey_200"
|
|
app:cardBackgroundColor="@color/grey_200"
|
|
@@ -265,8 +267,10 @@
|
|
|
|
|
|
<RelativeLayout
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="match_parent"
|
|
|
|
- android:layout_margin="@dimen/standard_margin"
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
+ android:layout_marginStart="@dimen/standard_margin"
|
|
|
|
+ android:layout_marginEnd="@dimen/standard_margin"
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UnusedAttribute">
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
|
|
@@ -285,7 +289,6 @@
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerInParent="true"
|
|
- android:layout_marginEnd="@dimen/standard_margin"
|
|
|
|
android:layout_toEndOf="@id/invisible_icon"
|
|
android:layout_toEndOf="@id/invisible_icon"
|
|
android:orientation="vertical">
|
|
android:orientation="vertical">
|
|
|
|
|
|
@@ -299,16 +302,6 @@
|
|
android:text="@string/invisible"
|
|
android:text="@string/invisible"
|
|
android:textAppearance="?android:attr/textAppearanceListItem" />
|
|
android:textAppearance="?android:attr/textAppearanceListItem" />
|
|
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/invisible_text"
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:ellipsize="end"
|
|
|
|
- android:gravity="top"
|
|
|
|
- android:maxLines="1"
|
|
|
|
- android:text="Appear offline"
|
|
|
|
- android:textColor="?android:attr/textColorSecondary" />
|
|
|
|
-
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
@@ -329,57 +322,74 @@
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/statusView" />
|
|
app:layout_constraintTop_toBottomOf="@id/statusView" />
|
|
|
|
|
|
- <TextView
|
|
|
|
- android:id="@+id/statusMessage"
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:layout_marginBottom="@dimen/standard_half_margin"
|
|
|
|
- android:text="@string/status_message"
|
|
|
|
- android:textColor="@color/text_color"
|
|
|
|
- android:textSize="@dimen/activity_list_item_title_header_text_size"
|
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/statusView" />
|
|
|
|
-
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
|
+ android:id="@+id/fragment_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="48dp"
|
|
|
|
- android:orientation="horizontal"
|
|
|
|
- tools:layout_editor_absoluteX="201dp"
|
|
|
|
- tools:layout_editor_absoluteY="141dp">
|
|
|
|
-
|
|
|
|
- <com.vanniktech.emoji.EmojiEditText
|
|
|
|
- android:id="@+id/emoji"
|
|
|
|
- android:layout_width="48dp"
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
- android:textSize="25sp"
|
|
|
|
- android:gravity="center"
|
|
|
|
- android:cursorVisible="false"
|
|
|
|
- app:maxEmojiCount="1"
|
|
|
|
- android:background="@color/grey_200"
|
|
|
|
- tools:text="☁️" />
|
|
|
|
-
|
|
|
|
- <EditText
|
|
|
|
- android:id="@+id/customStatusInput"
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
- android:layout_weight="1"
|
|
|
|
- android:hint="@string/whats_your_status"
|
|
|
|
- android:importantForAutofill="no"
|
|
|
|
- android:inputType="textAutoCorrect" />
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <androidx.recyclerview.widget.RecyclerView
|
|
|
|
- android:id="@+id/predefinedStatusList"
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
- tools:itemCount="5"
|
|
|
|
- tools:listitem="@layout/predefined_status">
|
|
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/statusMessage"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginBottom="@dimen/standard_half_margin"
|
|
|
|
+ android:text="@string/status_message"
|
|
|
|
+ android:textColor="@color/text_color"
|
|
|
|
+ android:textSize="@dimen/activity_list_item_title_header_text_size"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/statusView" />
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="@dimen/activity_row_layout_height"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
|
+ android:id="@+id/emojiCard"
|
|
|
|
+ android:layout_width="@dimen/activity_row_layout_height"
|
|
|
|
+ android:layout_height="@dimen/activity_row_layout_height"
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
+ android:layout_marginEnd="@dimen/standard_half_margin"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ app:cardBackgroundColor="@color/grey_200"
|
|
|
|
+ app:cardElevation="0dp">
|
|
|
|
+
|
|
|
|
+ <com.vanniktech.emoji.EmojiEditText
|
|
|
|
+ android:id="@+id/emoji"
|
|
|
|
+ android:layout_width="@dimen/activity_row_layout_height"
|
|
|
|
+ android:layout_height="@dimen/activity_row_layout_height"
|
|
|
|
+ android:background="@color/grey_200"
|
|
|
|
+ android:cursorVisible="false"
|
|
|
|
+ android:gravity="center"
|
|
|
|
+ android:text="@string/default_emoji"
|
|
|
|
+ android:textSize="25sp"
|
|
|
|
+ app:maxEmojiCount="1" />
|
|
|
|
+
|
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
|
+
|
|
|
|
+ <EditText
|
|
|
|
+ android:id="@+id/customStatusInput"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:hint="@string/whats_your_status"
|
|
|
|
+ android:importantForAutofill="no"
|
|
|
|
+ android:inputType="textAutoCorrect" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
|
+ android:id="@+id/predefinedStatusList"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ tools:itemCount="5"
|
|
|
|
+ tools:listitem="@layout/predefined_status" />
|
|
|
|
|
|
- </androidx.recyclerview.widget.RecyclerView>
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_marginTop="@dimen/standard_margin"
|
|
|
|
|
|
+ android:layout_marginTop="@dimen/standard_half_margin"
|
|
android:orientation="horizontal">
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
@@ -399,7 +409,7 @@
|
|
<LinearLayout
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_marginTop="@dimen/standard_margin"
|
|
|
|
|
|
+ android:layout_marginTop="@dimen/standard_half_margin"
|
|
android:orientation="horizontal">
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
<com.google.android.material.button.MaterialButton
|