2019-12-17 14:27:59 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-01-06 12:07:55 +11:00
|
|
|
<LinearLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-08-20 16:47:15 +10:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-01-08 10:50:11 +11:00
|
|
|
android:id="@+id/contentView"
|
2019-12-17 14:27:59 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-01-06 12:07:55 +11:00
|
|
|
android:orientation="vertical"
|
2020-08-20 16:47:15 +10:00
|
|
|
tools:context="org.thoughtcrime.securesms.loki.activities.HomeActivity">
|
2019-12-17 14:27:59 +01:00
|
|
|
|
2020-08-19 10:06:26 +10:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
2020-01-06 12:07:55 +11:00
|
|
|
android:id="@+id/toolbar"
|
2019-12-17 14:27:59 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-08-25 23:52:42 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?colorPrimary"
|
2020-08-26 15:24:56 +10:00
|
|
|
android:elevation="1dp"
|
|
|
|
app:contentInsetStart="0dp">
|
2019-12-17 14:27:59 +01:00
|
|
|
|
2020-08-25 23:52:42 +10:00
|
|
|
<LinearLayout
|
2020-01-06 12:07:55 +11:00
|
|
|
android:layout_width="match_parent"
|
2020-08-25 23:52:42 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
2020-01-06 12:07:55 +11:00
|
|
|
|
2020-08-25 23:52:42 +10:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginRight="20dp">
|
2020-01-06 12:07:55 +11:00
|
|
|
|
2020-08-25 23:52:42 +10:00
|
|
|
<org.thoughtcrime.securesms.loki.views.ProfilePictureView
|
|
|
|
android:id="@+id/profileButton"
|
|
|
|
android:layout_width="@dimen/small_profile_picture_size"
|
|
|
|
android:layout_height="@dimen/small_profile_picture_size"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginLeft="9dp" />
|
2020-01-06 12:07:55 +11:00
|
|
|
|
2020-08-25 23:52:42 +10:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginLeft="64dp"
|
|
|
|
android:fontFamily="sans-serif-medium"
|
|
|
|
android:text="Session"
|
|
|
|
android:textColor="@color/text"
|
|
|
|
android:textSize="@dimen/very_large_font_size" />
|
2020-05-29 11:16:52 +10:00
|
|
|
|
2020-08-25 23:52:42 +10:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/pathStatusViewContainer"
|
|
|
|
android:layout_width="@dimen/small_profile_picture_size"
|
|
|
|
android:layout_height="@dimen/small_profile_picture_size"
|
2020-05-29 11:16:52 +10:00
|
|
|
android:layout_alignParentRight="true"
|
2020-08-25 23:52:42 +10:00
|
|
|
android:layout_centerVertical="true">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.loki.views.PathStatusView
|
|
|
|
android:layout_width="@dimen/path_status_view_size"
|
|
|
|
android:layout_height="@dimen/path_status_view_size"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginRight="8dp" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
2020-05-29 11:16:52 +10:00
|
|
|
|
|
|
|
</RelativeLayout>
|
2020-05-28 16:43:37 +10:00
|
|
|
|
2020-08-25 23:52:42 +10:00
|
|
|
<org.thoughtcrime.securesms.loki.views.SeedReminderView
|
|
|
|
android:id="@+id/seedReminderView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2020-01-06 12:07:55 +11:00
|
|
|
|
2020-08-25 23:52:42 +10:00
|
|
|
</LinearLayout>
|
2019-12-17 14:27:59 +01:00
|
|
|
|
2020-08-25 23:52:42 +10:00
|
|
|
</androidx.appcompat.widget.Toolbar>
|
2020-01-09 11:35:43 +11:00
|
|
|
|
2019-12-17 14:27:59 +01:00
|
|
|
<RelativeLayout
|
2020-01-06 12:07:55 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2020-08-19 10:06:26 +10:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2020-01-06 12:07:55 +11:00
|
|
|
android:id="@+id/recyclerView"
|
|
|
|
android:layout_width="match_parent"
|
2020-03-17 09:54:58 +11:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:paddingBottom="172dp"
|
2020-08-24 16:46:12 +10:00
|
|
|
android:clipToPadding="false"
|
|
|
|
tools:listitem="@layout/view_conversation"/>
|
2020-01-06 12:07:55 +11:00
|
|
|
|
2020-03-16 15:35:14 +11:00
|
|
|
<View
|
|
|
|
android:id="@+id/gradientView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@drawable/home_activity_gradient" />
|
|
|
|
|
2020-05-11 16:19:26 +10:00
|
|
|
<org.thoughtcrime.securesms.loki.views.NewConversationButtonSetView
|
2020-03-12 15:57:53 +11:00
|
|
|
android:id="@+id/newConversationButtonSet"
|
|
|
|
android:layout_width="252dp"
|
2020-03-16 10:08:08 +11:00
|
|
|
android:layout_height="212dp"
|
2020-01-06 12:07:55 +11:00
|
|
|
android:layout_centerHorizontal="true"
|
2020-03-16 10:08:08 +11:00
|
|
|
android:layout_alignParentBottom="true" />
|
2019-12-17 14:27:59 +01:00
|
|
|
|
2020-04-20 11:54:56 +10:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/emptyStateContainer"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingBottom="32dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_centerInParent="true">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textSize="@dimen/medium_font_size"
|
|
|
|
android:textColor="@color/text"
|
2020-05-25 15:46:53 +10:00
|
|
|
android:text="@string/activity_home_empty_state_message" />
|
2020-04-20 11:54:56 +10:00
|
|
|
|
|
|
|
<Button
|
2020-08-24 16:46:12 +10:00
|
|
|
style="@style/Widget.Session.Button.Common.ProminentOutline"
|
2020-08-14 15:23:06 +10:00
|
|
|
android:id="@+id/btnCreateNewPrivateChat"
|
2020-04-20 11:54:56 +10:00
|
|
|
android:layout_width="196dp"
|
|
|
|
android:layout_height="@dimen/medium_button_height"
|
|
|
|
android:layout_marginTop="@dimen/medium_spacing"
|
2020-05-25 15:46:53 +10:00
|
|
|
android:text="@string/activity_home_empty_state_button_title" />
|
2020-04-20 11:54:56 +10:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2019-12-17 14:27:59 +01:00
|
|
|
</RelativeLayout>
|
|
|
|
|
2020-01-06 12:07:55 +11:00
|
|
|
</LinearLayout>
|