Removed unused resources

refactoring
unread messages view
unread counter
avatar in toolbar
This commit is contained in:
2021-09-12 03:39:28 +03:00
parent f7c8d6e1c8
commit da21035fba
210 changed files with 803 additions and 6736 deletions
@@ -1,33 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/toolbar" />
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/refreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="?actionBarSize">
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</androidx.core.widget.NestedScrollView>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
@@ -1,23 +0,0 @@
<?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="match_parent"
android:orientation="vertical"
android:padding="16dp">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/customDataUserId"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/user_id"
android:inputType="number"
android:singleLine="true" />
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/customDataToken"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/token"
android:singleLine="true" />
</LinearLayout>
@@ -1,50 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:id="@+id/headerRoot"
android:layout_height="80dp">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/headerAvatar"
android:layout_width="44dp"
android:layout_height="44dp"
android:layout_centerVertical="true"
android:layout_marginStart="14dp"
android:src="?colorAccent" />
<TextView
android:id="@+id/headerName"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_alignTop="@+id/headerAvatar"
android:layout_marginStart="14dp"
android:layout_marginEnd="14dp"
android:layout_toEndOf="@+id/headerAvatar"
android:gravity="center_vertical"
android:maxLines="1"
android:singleLine="true"
android:text="@string/drawer_name_surname"
android:textColor="?android:textColorPrimary"
android:textSize="16sp" />
<TextView
android:id="@+id/headerStatus"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_alignStart="@+id/headerName"
android:layout_alignBottom="@+id/headerAvatar"
android:layout_marginEnd="14dp"
android:layout_toEndOf="@+id/headerAvatar"
android:gravity="center_vertical"
android:maxLines="1"
android:singleLine="true"
android:text="@string/drawer_status"
android:textColor="?android:textColorSecondary" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_alignParentBottom="true"
android:background="?dividerHorizontal" />
</RelativeLayout>
@@ -1,124 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
layout="@layout/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="?actionBarSize" />
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:gravity="center_vertical"
app:contentInsetStart="0dp"
app:contentInsetStartWithNavigation="0dp">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/chatAvatar"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_marginStart="0dp"
android:layout_marginEnd="10dp"
android:src="?colorAccent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingStart="0dp"
android:paddingEnd="12dp">
<TextView
android:id="@+id/chatTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/tt_commons_medium"
android:singleLine="true"
android:textAppearance="?android:textAppearanceLarge"
android:textColor="?colorAccent"
tools:text="Title" />
<TextView
android:id="@+id/chatInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="?android:textAppearanceSmall"
android:textColor="?textColorSecondary"
tools:text="Offline"
tools:visibility="visible" />
</LinearLayout>
</androidx.appcompat.widget.Toolbar>
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
tools:visibility="gone" />
<LinearLayout
android:id="@+id/chatPanel"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_gravity="bottom"
android:layout_margin="8dp"
android:background="@drawable/chat_panel_background"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="12dp"
android:paddingEnd="12dp">
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/chatMessage"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:layout_marginEnd="4dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:ems="10"
android:gravity="center_vertical"
android:hint="@string/chat_message_hint"
android:inputType="text|textCapSentences"
android:minHeight="44dp" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/chatSend"
android:layout_width="42dp"
android:layout_height="42dp"
android:background="?selectableItemBackgroundBorderless"
android:src="@drawable/ic_mic"
android:tint="?colorAccent" />
</LinearLayout>
<include
layout="@layout/no_items_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<include
layout="@layout/no_internet_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<include
layout="@layout/error_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/toolbar" />
<FrameLayout
android:id="@+id/fragmentContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/toolbar" />
</RelativeLayout>
@@ -1,84 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:background="?colorAccent">
<ImageView
android:layout_width="match_parent"
android:layout_height="290dp"
android:layout_alignParentBottom="true"
android:alpha="0.15"
android:scaleType="fitXY"
android:src="@drawable/ic_start_bottom" />
<FrameLayout
android:id="@+id/startLogo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="64dp">
<com.meloda.fast.widget.CircleImageView
android:layout_width="128dp"
android:layout_height="128dp"
android:layout_gravity="center"
android:src="@android:color/white" />
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_gravity="center"
android:src="@drawable/ic_vkm" />
</FrameLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/startLogo"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"
android:fontFamily="@font/tt_commons_bold"
android:text="@string/project_vkm"
android:textAppearance="?android:textAppearanceLarge"
android:textColor="@android:color/white"
android:textSize="36sp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/startLoginSettings"
style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/startEnter"
android:layout_centerHorizontal="true"
android:text="@string/start_screen_login_settings"
android:textAppearance="?android:textAppearanceLarge"
android:textColor="@android:color/white"
app:backgroundTint="@android:color/transparent"
app:icon="@drawable/ic_settings"
app:iconPadding="4dp"
app:iconTint="@android:color/white"
app:rippleColor="@android:color/white" />
<com.google.android.material.button.MaterialButton
android:id="@+id/startEnter"
android:layout_width="match_parent"
android:layout_height="70dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_margin="16dp"
android:fontFamily="@font/tt_commons_medium"
android:gravity="start|center"
android:text="@string/enter"
android:textAppearance="?android:textAppearanceLarge"
android:textColor="?colorAccent"
app:backgroundTint="@android:color/white"
app:cornerRadius="28dp"
app:icon="@drawable/ic_arrow_end"
app:iconGravity="end"
app:iconTint="?colorAccent" />
</RelativeLayout>
@@ -1,95 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="80dp"
android:src="@drawable/ic_system_update"
app:tint="?colorAccent" />
<TextView
android:id="@+id/updateState"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="12dp"
android:text="@string/update_state_no_updates"
android:textAppearance="?android:textAppearanceLarge" />
<LinearLayout
android:id="@+id/updateInfoLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:visibility="visible">
<TextView
android:id="@+id/updateVersion"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="36dp"
android:textColor="?android:textColorPrimary"
tools:text="@string/update_current_version" />
<TextView
android:id="@+id/updateInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:textColor="?android:textColorPrimary"
tools:text="@string/update_last_check_time" />
</LinearLayout>
<LinearLayout
android:id="@+id/updateProgress"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:visibility="gone">
<!-- <com.github.rahatarmanahmed.cpv.CircularProgressView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:layout_margin="128dp"-->
<!-- app:cpv_animAutostart="true"-->
<!-- app:cpv_indeterminate="true"-->
<!-- app:cpv_startAngle="0" />-->
</LinearLayout>
</LinearLayout>
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
android:id="@+id/updateCheckUpdates"
android:layout_width="wrap_content"
android:layout_height="60dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="16dp"
android:layout_marginBottom="16dp"
android:text="@string/update_check_updates"
android:textAppearance="?android:textAppearanceMedium"
android:textColor="?android:textColorPrimaryInverse"
app:backgroundTint="?colorAccent"
app:cornerRadius="24dp"
app:elevation="12dp"
app:icon="@drawable/ic_refresh"
app:iconPadding="12dp"
app:iconTint="?android:textColorPrimaryInverse" />
</LinearLayout>
@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/toolbar" />
<include
layout="@layout/activity_main_drawer_header"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_below="@+id/toolbar" />
<include
layout="@layout/recycler_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/headerRoot"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp" />
</RelativeLayout>
+4 -9
View File
@@ -25,7 +25,6 @@
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/captchaImage"
style="@style/AppTheme.Login.EditText.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -34,7 +33,6 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/captchaLayout"
style="@style/Widget.TextInputLayout.NoError.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content">
@@ -65,10 +63,9 @@
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_weight="1"
android:backgroundTint="@color/a1_600"
android:text="@android:string/cancel"
android:textColor="?colorAction"
app:elevation="0dp"
app:rippleColor="?colorActionRipple" />
app:elevation="0dp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/ok"
@@ -76,11 +73,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:backgroundTint="?colorAction"
android:backgroundTint="@color/a3_200"
android:text="@android:string/ok"
android:textColor="?colorActionContentPrimary"
app:elevation="0dp"
app:rippleColor="?colorActionRipple" />
app:elevation="0dp" />
</LinearLayout>
@@ -1,46 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/profileRoot"
style="?attr/bottomSheetStyle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
app:behavior_fitToContents="true"
app:behavior_hideable="true"
app:behavior_peekHeight="30dp"
app:layout_behavior="@string/bottom_sheet_behavior">
<TextView
android:id="@+id/profileTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:fontFamily="@font/tt_commons_medium"
android:gravity="center"
android:singleLine="true"
android:textColor="?colorAccent"
android:textSize="14pt"
tools:text="Some title" />
<TextView
android:id="@+id/profileSubtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:gravity="center"
android:textAppearance="?android:textAppearanceMedium"
tools:text="\@somescreenname \· Online" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/profileItemMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:paddingBottom="16dp" />
</LinearLayout>
+5 -11
View File
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
@@ -18,7 +17,6 @@
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/codeImage"
style="@style/AppTheme.Login.EditText.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -27,7 +25,6 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/codeLayout"
style="@style/Widget.TextInputLayout.NoError.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content">
@@ -59,10 +56,9 @@
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_weight="1"
android:backgroundTint="@color/n1_900"
android:text="@android:string/cancel"
android:textColor="?colorAction"
app:elevation="0dp"
app:rippleColor="?colorActionRipple" />
app:elevation="0dp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/ok"
@@ -70,11 +66,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:backgroundTint="?colorAction"
android:backgroundTint="@color/a3_200"
android:text="@android:string/ok"
android:textColor="?colorActionContentPrimary"
app:elevation="0dp"
app:rippleColor="?colorActionRipple" />
app:elevation="0dp" />
</LinearLayout>
-50
View File
@@ -1,50 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/errorView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:windowBackground"
android:gravity="center"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="match_parent"
android:layout_height="128dp"
android:src="@drawable/ic_error" />
<TextView
android:id="@+id/errorText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="48dp"
android:fontFamily="@font/tt_commons_regular"
android:text="@string/error_default_text"
android:textAppearance="?android:textAppearanceMedium"
android:textSize="18sp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/errorViewRefresh"
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:fontFamily="@font/roboto_regular"
android:letterSpacing="0"
android:paddingStart="12dp"
android:paddingTop="6dp"
android:paddingEnd="14dp"
android:paddingBottom="6dp"
android:text="@string/refresh"
android:textAllCaps="false"
android:textColor="?android:textColorPrimary"
app:backgroundTint="@android:color/transparent"
app:cornerRadius="24dp"
app:icon="@drawable/ic_refresh"
app:iconTint="?colorAccent"
app:rippleColor="?colorAccent"
app:strokeWidth="1dp" />
</LinearLayout>
@@ -5,10 +5,68 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:elevation="0dp">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="0dp"
app:collapsedTitleTextAppearance="@style/CollapsingToolbarCollapsedTitle"
app:expandedTitleTextAppearance="@style/CollapsingToolbarTitle"
app:layout_scrollFlags="scroll|enterAlways|snap"
app:title="Messages">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:background="@color/n1_50"
android:elevation="0dp"
app:layout_collapseMode="pin"
app:menu="@menu/fragment_conversations" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/expandedImage"
android:layout_width="match_parent"
android:layout_height="140dp"
android:elevation="0dp" />
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="30dp"
android:orientation="horizontal">
<androidx.appcompat.widget.AppCompatImageButton
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginEnd="16dp"
android:background="?selectableItemBackgroundBorderless"
android:src="@drawable/ic_search"
android:tint="@color/a1_500" />
<com.meloda.fast.widget.CircleImageView
android:id="@+id/avatar"
android:layout_width="30dp"
android:layout_height="30dp"
tools:src="@tools:sample/avatars" />
</androidx.appcompat.widget.LinearLayoutCompat>
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/refreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
@@ -17,7 +75,7 @@
android:orientation="vertical"
android:scrollbars="vertical"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_conversation_old" />
tools:listitem="@layout/item_conversation" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
@@ -29,4 +87,20 @@
android:visibility="gone"
tools:visibility="visible" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/createChat"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_gravity="end|bottom"
android:layout_margin="16dp"
android:src="@drawable/ic_baseline_create_24"
app:backgroundTint="@color/a2_200"
app:elevation="3dp"
app:fabSize="normal"
app:layout_behavior="com.google.android.material.behavior.HideBottomViewOnScrollBehavior"
app:pressedTranslationZ="1dp"
app:shapeAppearanceOverlay="@style/RoundedView.56"
app:tint="@color/a2_700"
tools:ignore="ContentDescription" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
@@ -1,60 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="friends" />
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:background="@android:color/transparent"
app:elevation="0dp">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@drawable/toolbar_background"
app:layout_scrollFlags="scroll|enterAlways">
<include layout="@layout/toolbar" />
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
<include layout="@layout/recycler_view" />
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
<include
layout="@layout/no_items_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<include
layout="@layout/no_internet_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<include
layout="@layout/error_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="important" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
+3 -12
View File
@@ -26,8 +26,7 @@
android:id="@+id/logoContainer"
android:layout_width="140dp"
android:layout_height="140dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/ic_logo_fast_border">
android:layout_gravity="center_horizontal">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/logoImage"
@@ -56,7 +55,6 @@
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/loginImage"
style="@style/AppTheme.Login.EditText.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -65,7 +63,6 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/loginLayout"
style="@style/Widget.TextInputLayout.NoError.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:boxStrokeErrorColor="@android:color/transparent">
@@ -91,7 +88,6 @@
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/passwordImage"
style="@style/AppTheme.Login.EditText.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@@ -100,7 +96,6 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/passwordLayout"
style="@style/Widget.TextInputLayout.NoError.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:boxStrokeErrorColor="@android:color/transparent"
@@ -122,25 +117,21 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/auth"
style="@style/Widget.MaterialButton"
android:layout_width="wrap_content"
android:layout_height="60dp"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginTop="12dp"
android:backgroundTint="@color/a1_600"
android:fontFamily="@font/google_sans_medium"
android:letterSpacing="0"
android:paddingStart="24dp"
android:paddingEnd="16dp"
android:text="@string/log_in"
android:textColor="?colorActionContentPrimary"
android:textSize="14sp"
app:backgroundTint="?colorAction"
app:cornerRadius="50dp"
app:elevation="16dp"
app:icon="@drawable/ic_arrow_end"
app:iconGravity="end"
app:iconTint="?colorActionContentPrimary"
app:rippleColor="?colorActionRipple" />
app:iconGravity="end" />
</LinearLayout>
@@ -19,8 +19,6 @@
android:visibility="gone"
app:backgroundTint="?colorSurface"
app:elevation="0.5dp"
app:itemIconTint="@drawable/navigation_view_items_colors"
app:itemTextColor="@drawable/navigation_view_items_colors"
app:labelVisibilityMode="unlabeled"
app:menu="@menu/activity_main_bottom" />
+194 -72
View File
@@ -3,101 +3,223 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<androidx.appcompat.widget.LinearLayoutCompat
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="24dp"
android:layout_marginVertical="10dp"
android:orientation="horizontal">
android:background="?selectableItemBackground"
android:orientation="horizontal"
android:paddingVertical="4dp">
<FrameLayout
android:layout_width="56dp"
android:layout_height="56dp">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/avatar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="#ff0000" />
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:backgroundTint="@color/n1_100"
android:orientation="horizontal"
android:paddingVertical="8dp"
android:paddingStart="8dp"
android:paddingEnd="12dp"
tools:background="@drawable/ic_message_unread">
<FrameLayout
android:id="@+id/online"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="end|bottom">
android:layout_width="56dp"
android:layout_height="56dp">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/avatar"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:src="@tools:sample/avatars"
tools:visibility="gone" />
<FrameLayout
android:id="@+id/avatarPlaceholder"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.meloda.fast.widget.CircleImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@color/n1_50" />
<com.meloda.fast.widget.CircleImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/ic_account_circle_cut"
app:tint="@color/n2_500" />
</FrameLayout>
<FrameLayout
android:id="@+id/service"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center"
android:src="@color/background" />
android:layout_gravity="end|top"
android:visibility="gone"
tools:visibility="visible">
<com.meloda.fast.widget.CircleImageView
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_gravity="center"
android:background="@drawable/ic_back"
android:backgroundTint="@color/n2_500"
android:elevation="0.5dp" />
<com.meloda.fast.widget.CircleImageView
android:id="@+id/phantomIcon"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_gravity="center"
android:elevation="1dp"
android:src="@drawable/ic_phantom"
android:visibility="gone"
app:tint="@color/n2_10"
tools:visibility="visible" />
<com.meloda.fast.widget.CircleImageView
android:id="@+id/callIcon"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_gravity="center"
android:elevation="1dp"
android:src="@drawable/ic_attachment_group_call"
android:visibility="gone"
app:tint="@color/n2_0" />
</FrameLayout>
<FrameLayout
android:id="@+id/online"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="end|bottom"
android:visibility="gone"
tools:visibility="visible">
<com.meloda.fast.widget.CircleImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center"
android:src="@color/n1_50" />
<com.meloda.fast.widget.CircleImageView
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_gravity="center"
android:src="@drawable/ic_online_pc"
app:tint="@color/a3_200" />
</FrameLayout>
<com.meloda.fast.widget.CircleImageView
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_gravity="center"
android:src="@drawable/ic_online_pc"
app:tint="@color/online" />
</FrameLayout>
</FrameLayout>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:orientation="vertical">
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:layout_marginStart="24dp"
android:orientation="vertical">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/date"
android:orientation="horizontal">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="@font/google_sans_regular"
android:maxLines="2"
android:textColor="@color/n1_900"
android:textSize="22sp"
tools:text="Title" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/counter"
android:layout_width="wrap_content"
android:layout_height="18dp"
android:layout_marginStart="8dp"
android:layout_marginTop="-4dp"
android:layout_weight="0"
android:background="@drawable/ic_back"
android:backgroundTint="@color/a1_600"
android:gravity="center"
android:minWidth="18dp"
android:textColor="@color/a1_0"
android:textSize="10sp"
android:visibility="gone"
tools:text="12"
tools:visibility="visible" />
</androidx.appcompat.widget.LinearLayoutCompat>
<com.google.android.material.textview.MaterialTextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginStart="8dp"
android:layout_marginTop="6dp"
android:alpha="0.5"
android:fontFamily="@font/roboto_regular"
android:gravity="end|center_vertical"
android:textColor="@color/n2_500"
tools:text="20:00" />
</RelativeLayout>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="gone">
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="@font/google_sans_regular"
android:maxLines="2"
android:textColor="#201A1A"
android:textSize="22sp"
tools:text="Title" />
android:orientation="horizontal">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/textAttachment"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_marginTop="2dp"
android:layout_marginEnd="4dp"
android:src="@drawable/ic_baseline_attach_file_24"
android:visibility="gone"
app:tint="@color/n2_500"
tools:visibility="visible" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.7"
android:fontFamily="@font/roboto_regular"
android:maxLines="2"
android:textColor="@color/n1_900"
android:textSize="16sp"
tools:text="Message" />
</androidx.appcompat.widget.LinearLayoutCompat>
<com.google.android.material.textview.MaterialTextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="-4dp"
android:alpha="0.5"
android:fontFamily="@font/roboto_regular"
android:textColor="@color/date"
tools:text="20:00" />
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.7"
android:fontFamily="@font/roboto_regular"
android:maxLines="2"
android:textColor="@color/message"
android:textSize="16sp"
tools:text="Message" />
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>
</FrameLayout>
</layout>
@@ -1,106 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?selectableItemBackground"
android:padding="12dp">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/conversationAvatar"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_centerVertical="true"
tools:src="?colorAccent" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/conversationUserOnline"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_alignEnd="@+id/conversationAvatar"
android:layout_alignBottom="@+id/conversationAvatar"
android:layout_margin="4dp"
tools:src="@drawable/ic_online_pc" />
<TextView
android:id="@+id/conversationTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/conversationAvatar"
android:layout_marginStart="12dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="12dp"
android:layout_toStartOf="@+id/conversationOutCounter"
android:layout_toEndOf="@+id/conversationAvatar"
android:fontFamily="@font/tt_commons_medium"
android:singleLine="true"
android:textColor="?itemTitleColor"
android:textSize="20sp"
tools:text="Very long title" />
<TextView
android:id="@+id/conversationText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/conversationTitle"
android:layout_alignStart="@+id/conversationTitle"
android:layout_marginEnd="12dp"
android:layout_toStartOf="@+id/conversationOutCounter"
android:textColor="?android:textColorPrimary"
tools:text="Message" />
<FrameLayout
android:id="@+id/conversationOutCounter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="30dp"
android:minWidth="30dp"
android:layout_alignTop="@+id/conversationAvatar"
android:layout_alignParentEnd="true"
android:layout_marginTop="6dp"
android:layout_marginEnd="12dp">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/conversationOut"
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_gravity="center"
android:src="?colorAccent"
android:visibility="gone"
tools:visibility="visible" />
<TextView
android:id="@+id/conversationCounter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/ic_conversations_counter_background"
android:backgroundTint="?colorAccent"
android:backgroundTintMode="multiply"
android:minWidth="25dp"
android:minHeight="20dp"
android:padding="4dp"
android:gravity="center"
android:textColor="?android:textColorPrimaryInverse"
android:textSize="12sp"
tools:text="12"
tools:visibility="gone" />
</FrameLayout>
<TextView
android:id="@+id/conversationDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/conversationOutCounter"
android:layout_alignParentEnd="true"
android:layout_marginEnd="6dp"
android:gravity="center"
android:maxLines="1"
android:minWidth="30dp"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
tools:text="сейчас" />
</RelativeLayout>
@@ -1,186 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingTop="2dp"
android:paddingBottom="2dp">
<LinearLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="6dp"
android:baselineAligned="false"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="6dp">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/peerAvatar"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_gravity="bottom|end"
app:shapeAppearanceOverlay="@style/CircleImageView.56"
tools:src="?colorAccent" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/peerOnline"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_gravity="bottom|end"
tools:src="@drawable/ic_online_pc" />
</FrameLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:orientation="horizontal">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/type"
android:layout_width="20dp"
android:layout_height="match_parent"
android:layout_marginStart="4dp"
android:paddingStart="2dp"
android:paddingEnd="0dp"
android:tint="@color/conversationTitle"
android:visibility="gone"
tools:src="@drawable/ic_dialog_type_conversation" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:fontFamily="@font/tt_commons_medium"
android:singleLine="true"
android:textColor="#ff0000"
android:textSize="20sp"
tools:text="Title" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="2dp"
android:layout_marginTop="2dp"
android:gravity="center_vertical"
android:minHeight="26dp"
android:orientation="horizontal">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/fromAvatar"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="6dp"
app:shapeAppearanceOverlay="@style/CircleImageView.24"
tools:src="?colorAccent"
tools:visibility="visible" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/textAttachment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginTop="1.5dp"
android:tint="?colorAccent"
android:visibility="gone"
tools:src="@drawable/ic_message_attachment_camera"
tools:visibility="visible" />
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="16dp"
android:baselineAligned="false"
android:gravity="center_vertical"
android:singleLine="true"
android:textColor="?android:textColorPrimary"
android:textSize="14sp"
tools:text="Message" />
</LinearLayout>
</LinearLayout>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:minHeight="50dp"
android:paddingStart="6dp"
android:paddingEnd="6dp">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/out"
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_gravity="bottom"
android:layout_marginBottom="8dp"
android:src="?colorAccent"
android:visibility="gone"
tools:visibility="gone" />
</FrameLayout>
</LinearLayout>
<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|top"
android:layout_margin="8dp"
android:gravity="center"
android:maxLines="1"
android:minWidth="30dp"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
tools:text="now" />
<TextView
android:id="@+id/counter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginTop="36dp"
android:layout_marginEnd="14dp"
android:background="@drawable/ic_conversations_counter_background"
android:backgroundTint="?colorAccent"
android:backgroundTintMode="multiply"
android:fontFamily="@font/google_sans_medium"
android:gravity="center"
android:minWidth="28dp"
android:minHeight="28dp"
android:padding="6dp"
android:textColor="?android:textColorPrimaryInverse"
android:textSize="12sp"
tools:text="12"
tools:visibility="visible" />
</FrameLayout>
-73
View File
@@ -1,73 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/messageRoot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="invisible"
tools:gravity="end"
tools:visibility="visible">
<LinearLayout
android:id="@+id/messageContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/messageAvatar"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
tools:src="?colorAccent" />
<com.meloda.fast.widget.BoundedLinearLayout
android:id="@+id/messageBubble"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="4dp"
android:minHeight="40dp"
android:orientation="vertical"
tools:background="@drawable/ic_message_bubble_out_simple">
<com.meloda.fast.widget.WrapTextView
android:id="@+id/messageText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:autoLink="all"
android:gravity="start|center"
android:linksClickable="true"
android:paddingStart="14dp"
android:paddingTop="10dp"
android:paddingEnd="14dp"
android:paddingBottom="10dp"
tools:gravity="end"
tools:text="Some text"
tools:textColor="?android:textColorPrimary" />
</com.meloda.fast.widget.BoundedLinearLayout>
</LinearLayout>
<TextView
android:id="@+id/messageDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:textColor="?android:textColorSecondary"
android:textSize="9sp"
tools:ignore="SmallSp"
tools:text="10:15"
tools:visibility="visible" />
</LinearLayout>
@@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/messageAction"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:textAppearance="?android:textAppearanceSmall"
android:textColor="?colorAccent"
android:visibility="invisible"
tools:text="Some action"
tools:visibility="visible" />
@@ -1,71 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/messageRoot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:orientation="horizontal">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/messageAvatar"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
tools:src="?colorAccent" />
<com.meloda.fast.widget.BoundedLinearLayout
android:id="@+id/messageBubble"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="4dp"
android:minHeight="40dp"
android:orientation="vertical"
tools:background="@drawable/ic_message_bubble_out_simple">
<com.meloda.fast.widget.WrapTextView
android:id="@+id/messageText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:autoLink="all"
android:gravity="start|center"
android:linksClickable="true"
android:paddingStart="14dp"
android:paddingTop="10dp"
android:paddingEnd="14dp"
android:paddingBottom="10dp"
app:fixWrap="true"
tools:gravity="end"
tools:text="Some text"
tools:textColor="?android:textColorPrimary" />
</com.meloda.fast.widget.BoundedLinearLayout>
<LinearLayout
android:id="@+id/messageAttachments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
tools:ignore="Orientation" />
<TextView
android:id="@+id/messageDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginEnd="8dp"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
tools:ignore="SmallSp"
tools:text="10:15"
tools:visibility="visible" />
</LinearLayout>
@@ -1,73 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/messageRoot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:orientation="horizontal">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/messageAvatar"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:visibility="gone"
tools:src="?colorAccent" />
<TextView
android:id="@+id/messageDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="8dp"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
tools:ignore="SmallSp"
tools:text="10:15"
tools:visibility="visible" />
<com.meloda.fast.widget.BoundedLinearLayout
android:id="@+id/messageBubble"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="4dp"
android:minHeight="40dp"
android:orientation="vertical"
tools:background="@drawable/ic_message_bubble_out_simple">
<com.meloda.fast.widget.WrapTextView
android:id="@+id/messageText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:autoLink="all"
android:gravity="start|center"
android:linksClickable="true"
android:paddingStart="14dp"
android:paddingTop="10dp"
android:paddingEnd="14dp"
android:paddingBottom="10dp"
app:fixWrap="true"
tools:gravity="end"
tools:text="Some text"
tools:textColor="?android:textColorPrimary" />
</com.meloda.fast.widget.BoundedLinearLayout>
<LinearLayout
android:id="@+id/messageAttachments"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
tools:ignore="Orientation" />
</LinearLayout>
@@ -1,87 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/messageRoot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:orientation="vertical">
<com.meloda.fast.widget.BoundedLinearLayout
android:id="@+id/messageBubble"
android:layout_width="0dp"
android:layout_height="0dp"
android:orientation="vertical"
android:visibility="gone" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="4dp"
android:paddingBottom="4dp">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/messageAvatar"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_marginStart="14dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="14dp"
tools:src="?colorAccent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/channelTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="?colorAccent"
android:textSize="18sp"
android:textStyle="bold"
tools:text="Some title" />
<TextView
android:id="@+id/messageText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="all"
android:gravity="start|center"
android:linksClickable="true"
android:textColor="?android:textColorPrimary"
android:textColorLink="?colorAccent"
tools:text="Some text" />
</LinearLayout>
<TextView
android:id="@+id/messageDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="14dp"
android:layout_marginEnd="14dp"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
tools:ignore="SmallSp"
tools:text="10:15"
tools:visibility="visible" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
@@ -1,64 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/messageRoot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:orientation="horizontal">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/messageAvatar"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
tools:src="?colorAccent" />
<com.meloda.fast.widget.BoundedLinearLayout
android:id="@+id/messageBubble"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:minHeight="40dp"
android:orientation="vertical">
<com.meloda.fast.widget.WrapTextView
android:id="@+id/messageText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:autoLink="all"
android:background="@drawable/ic_message_bubble_in_simple"
android:gravity="start|center"
android:linksClickable="true"
android:paddingStart="14dp"
android:paddingTop="10dp"
android:paddingEnd="14dp"
android:paddingBottom="10dp"
android:textColor="@android:color/white"
android:textColorLink="@android:color/white"
app:fixWrap="true"
tools:text="Some text " />
</com.meloda.fast.widget.BoundedLinearLayout>
<TextView
android:id="@+id/messageDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginEnd="8dp"
android:layout_marginBottom="4dp"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
android:visibility="gone"
tools:ignore="SmallSp"
tools:text="10:15"
tools:visibility="visible" />
</LinearLayout>
@@ -1,68 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/messageRoot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:orientation="horizontal">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/messageAvatar"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:visibility="gone"
tools:src="?colorAccent" />
<TextView
android:id="@+id/messageDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginStart="8dp"
android:layout_marginBottom="4dp"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
android:visibility="gone"
tools:ignore="SmallSp"
tools:text="10:15"
tools:visibility="visible" />
<com.meloda.fast.widget.BoundedLinearLayout
android:id="@+id/messageBubble"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="4dp"
android:minHeight="40dp"
android:orientation="vertical">
<com.meloda.fast.widget.WrapTextView
android:id="@+id/messageText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:autoLink="all"
android:background="@drawable/ic_message_bubble_out_simple"
android:gravity="start|center"
android:linksClickable="true"
android:paddingStart="14dp"
android:paddingTop="10dp"
android:paddingEnd="14dp"
android:paddingBottom="10dp"
android:textColor="?android:textColorPrimary"
android:textColorLink="?colorAccent"
app:fixWrap="true"
tools:text="Some text" />
</com.meloda.fast.widget.BoundedLinearLayout>
</LinearLayout>
@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:padding="4dp"
android:visibility="invisible"
tools:visibility="visible">
<TextView
android:id="@+id/messageTimeStamp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_message_timestamp"
android:paddingStart="22dp"
android:paddingTop="6dp"
android:paddingEnd="22dp"
android:paddingBottom="6dp"
android:textColor="?colorAccent"
tools:text="22 may" />
</LinearLayout>
@@ -1,30 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingEnd="16dp">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/profileItemIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:tint="?colorAccent"
tools:src="@drawable/ic_search" />
<TextView
android:id="@+id/profileItemTitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_weight="1"
android:textAppearance="?android:textAppearanceMedium"
android:textColor="?android:textColorPrimary"
tools:text="Search" />
</LinearLayout>
-86
View File
@@ -1,86 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/userContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="6dp"
android:baselineAligned="false"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="6dp">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0">
<com.meloda.fast.widget.CircleImageView
android:id="@+id/userAvatar"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="bottom|end"
tools:src="?colorAccent" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/userOnline"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_gravity="bottom|end"
android:layout_margin="3dp"
tools:src="@drawable/ic_online_pc" />
</FrameLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:orientation="horizontal">
<TextView
android:id="@+id/userName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:fontFamily="@font/tt_commons_medium"
android:singleLine="true"
android:textColor="?itemTitleColor"
android:textSize="20sp"
tools:text="Unidevs" />
</LinearLayout>
<TextView
android:id="@+id/userOnlineText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:baselineAligned="false"
android:gravity="center_vertical"
android:textColor="?android:textColorPrimary"
tools:text="Message" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
@@ -1,49 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/noInternetView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:windowBackground"
android:clickable="false"
android:gravity="center"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_no_internet" />
<TextView
android:id="@+id/noInternetText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:fontFamily="@font/tt_commons_regular"
android:textAppearance="?android:textAppearanceMedium"
android:textSize="24sp"
android:text="@string/no_internet_default_text" />
<com.google.android.material.button.MaterialButton
android:id="@+id/noItemsRefresh"
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:fontFamily="@font/roboto_regular"
android:letterSpacing="0"
android:paddingStart="12dp"
android:paddingTop="6dp"
android:paddingEnd="14dp"
android:paddingBottom="6dp"
android:text="@string/refresh"
android:textAllCaps="false"
android:textColor="?android:textColorPrimary"
app:backgroundTint="@android:color/transparent"
app:cornerRadius="24dp"
app:icon="@drawable/ic_refresh"
app:iconTint="?colorAccent"
app:rippleColor="?colorAccent"
app:strokeWidth="1dp" />
</LinearLayout>
-48
View File
@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/noItemsView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:windowBackground"
android:gravity="center"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_no_items" />
<TextView
android:id="@+id/noItemsText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:fontFamily="@font/tt_commons_regular"
android:textAppearance="?android:textAppearanceMedium"
android:textSize="18sp"
android:text="@string/no_items_default_text" />
<com.google.android.material.button.MaterialButton
android:id="@+id/noItemsRefresh"
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:fontFamily="@font/roboto_regular"
android:letterSpacing="0"
android:paddingStart="12dp"
android:paddingTop="6dp"
android:paddingEnd="14dp"
android:paddingBottom="6dp"
android:text="@string/refresh"
android:textAllCaps="false"
android:textColor="?android:textColorPrimary"
app:backgroundTint="@android:color/transparent"
app:cornerRadius="24dp"
app:icon="@drawable/ic_refresh"
app:iconTint="?colorAccent"
app:rippleColor="?colorAccent"
app:strokeWidth="1dp" />
</LinearLayout>
-17
View File
@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/refreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
tools:itemCount="100" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
-66
View File
@@ -1,66 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.appbar.MaterialToolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="52dp"
app:contentInsetStart="0dp"
app:layout_collapseMode="pin">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/toolbar_background_ripple"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/toolbarNavigation"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_centerVertical="true"
android:layout_marginStart="12dp"
android:background="?selectableItemBackgroundBorderless"
android:gravity="center">
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/toolbarNavigationIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:clickable="false"
android:focusable="false"
android:tint="?android:textColorPrimary"
tools:src="@drawable/ic_search" />
</LinearLayout>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/toolbarTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_toStartOf="@+id/toolbarAvatar"
android:layout_toEndOf="@+id/toolbarNavigation"
android:clickable="false"
android:focusable="false"
android:fontFamily="@font/google_sans_medium"
android:gravity="center"
android:paddingStart="12dp"
android:paddingEnd="12dp"
android:textAppearance="?android:textAppearanceLarge"
android:textColor="?colorAccent"
tools:text="Some title" />
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/toolbarAvatar"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="12dp"
android:src="?colorAccent" />
</RelativeLayout>
</com.google.android.material.appbar.MaterialToolbar>
@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.appbar.CollapsingToolbarLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="52dp"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:background="@drawable/toolbar_background"
android:backgroundTint="?colorSurface"
android:elevation="3dp"
app:layout_scrollFlags="scroll|enterAlways">
<include layout="@layout/toolbar" />
</com.google.android.material.appbar.CollapsingToolbarLayout>