mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-23 00:17:34 +00:00
263 lines
10 KiB
XML
263 lines
10 KiB
XML
<?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/rootView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:clipChildren="false"
|
|
app:contentInsetStart="4dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:clipChildren="false">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/homeButtonContainer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:background="@drawable/conversation_home_touch_highlight"
|
|
android:clickable="true"
|
|
android:focusable="true">
|
|
|
|
<ImageView
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:src="@drawable/ic_baseline_arrow_back_compact_24"
|
|
android:layout_marginRight="-2dp"
|
|
android:layout_marginLeft="8dp" />
|
|
|
|
<org.thoughtcrime.securesms.loki.views.ProfilePictureView
|
|
android:id="@+id/profilePictureView"
|
|
android:layout_width="@dimen/medium_profile_picture_size"
|
|
android:layout_height="@dimen/medium_profile_picture_size" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/medium_spacing"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/titleTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:text="Conversation"
|
|
android:textColor="@color/text"
|
|
android:textSize="@dimen/large_font_size"
|
|
android:fontFamily="sans-serif-medium" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/muteIndicatorImageView"
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/ic_outline_notifications_off_24"
|
|
android:layout_marginRight="6dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"/>
|
|
|
|
<TextView
|
|
android:id="@+id/subtitleTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:text="26 members"
|
|
android:textColor="@color/text"
|
|
android:textSize="@dimen/small_font_size" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
<org.thoughtcrime.securesms.components.InputAwareLayout
|
|
android:id="@+id/layout_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/conversation_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:gravity="bottom"
|
|
android:orientation="vertical"
|
|
android:paddingTop="?attr/actionBarSize">
|
|
|
|
<ProgressBar
|
|
android:id="@+id/messageStatusProgressBar"
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/accent_line_thickness"
|
|
android:paddingLeft="-2dp"
|
|
android:paddingRight="-2dp"
|
|
android:progressTint="@color/accent"
|
|
android:progressBackgroundTint="@color/transparent"
|
|
android:alpha="0"
|
|
android:indeterminate="false"
|
|
android:progress="0" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="?android:dividerHorizontal"
|
|
android:elevation="1dp" />
|
|
|
|
<org.thoughtcrime.securesms.loki.views.SessionRestoreBannerView
|
|
android:id="@+id/sessionRestoreBannerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<ViewStub
|
|
android:id="@+id/group_share_profile_view_stub"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inflatedId="@+id/group_share_profile_view"
|
|
android:layout="@layout/conversation_activity_group_share_profile_stub" />
|
|
|
|
<ViewStub
|
|
android:id="@+id/unverified_banner_stub"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inflatedId="@+id/unverified_banner"
|
|
android:layout="@layout/conversation_activity_unverified_banner_stub" />
|
|
|
|
<ViewStub
|
|
android:id="@+id/reminder_stub"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inflatedId="@+id/reminder"
|
|
android:layout="@layout/conversation_activity_reminderview_stub" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/fragment_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1" />
|
|
|
|
<ViewStub
|
|
android:id="@+id/attachment_editor_stub"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inflatedId="@+id/attachment_editor"
|
|
android:layout="@layout/conversation_activity_attachment_editor_stub" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/mentionCandidateSelectionViewContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="?android:dividerHorizontal" />
|
|
|
|
<include layout="@layout/view_mention_candidate_selection" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="?android:dividerHorizontal" />
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false">
|
|
|
|
<include layout="@layout/conversation_input_panel" />
|
|
|
|
<include layout="@layout/conversation_search_nav" />
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/register_button"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="20dp"
|
|
android:text="@string/conversation_activity__enable_signal_messages"
|
|
android:visibility="gone" />
|
|
|
|
<Button
|
|
android:id="@+id/unblock_button"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="20dp"
|
|
android:text="@string/ConversationActivity_unblock"
|
|
android:visibility="gone" />
|
|
|
|
<Button
|
|
android:id="@+id/make_default_sms_button"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="20dp"
|
|
android:text="@string/conversation_activity__enable_signal_for_sms"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/space_left"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:attr/windowBackground"
|
|
android:paddingStart="5dip"
|
|
android:text="160/160 (1)"
|
|
android:visibility="gone" />
|
|
|
|
<ViewStub
|
|
android:id="@+id/emoji_drawer_stub"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inflatedId="@+id/emoji_drawer"
|
|
android:layout="@layout/conversation_activity_emojidrawer_stub" />
|
|
|
|
</LinearLayout>
|
|
|
|
</org.thoughtcrime.securesms.components.InputAwareLayout>
|
|
|
|
</FrameLayout>
|