46 lines
13 KiB
XML
46 lines
13 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/call_container" android:background="@color/black" android:layout_width="match_parent" android:layout_height="match_parent" style="@style/UiKit_ViewGroup_Page">
|
|
<androidx.fragment.app.FragmentContainerView android:name="com.discord.widgets.status.WidgetGlobalStatusIndicator" android:id="@+id/widget_global_status" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toTopOf="0" style="@style/UiKit_ViewGroup"/>
|
|
<androidx.constraintlayout.widget.Barrier android:id="@+id/top_of_ui" android:layout_width="wrap_content" android:layout_height="wrap_content" app:barrierDirection="3" app:constraint_referenced_ids="widget_global_status"/>
|
|
<androidx.recyclerview.widget.RecyclerView android:id="@+id/call_video_recycler" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/top_of_ui"/>
|
|
<androidx.recyclerview.widget.RecyclerView android:id="@+id/call_stage_recycler" android:paddingTop="92dp" android:clipToPadding="false" android:layout_width="0dp" android:layout_height="0dp" android:paddingStart="12dp" android:paddingEnd="12dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/top_of_ui"/>
|
|
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@+id/call_participants_hidden" android:background="@color/black" android:visibility="gone" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/top_of_ui">
|
|
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:src="@drawable/video_call_illustration" android:importantForAccessibility="no"/>
|
|
<TextView android:textColor="@color/white" android:paddingLeft="64dp" android:paddingRight="64dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:text="@string/mobile_stream_participants_hidden" android:textAlignment="center" style="@style/UiKit_TextAppearance_Semibold"/>
|
|
<com.google.android.material.button.MaterialButton android:id="@+id/call_participants_show_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/stream_show_all_participants" android:backgroundTint="@color/primary_500" app:cornerRadius="100dp" style="@style/UiKit_Material_Button"/>
|
|
</LinearLayout>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/call_non_video_container" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/top_of_ui">
|
|
<include android:id="@+id/private_call" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toTopOf="@+id/action_bar_toolbar_layout" layout="@layout/widget_call_fullscreen_private_call"/>
|
|
<RelativeLayout android:id="@+id/action_bar_underlay" android:background="@drawable/drawable_black_underlay_gradient" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintTop_toTopOf="0">
|
|
<View android:layout_width="match_parent" android:layout_height="?attr/actionBarSize"/>
|
|
</RelativeLayout>
|
|
<com.google.android.material.appbar.AppBarLayout android:id="@+id/action_bar_toolbar_layout" android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="0" style="@style/AppTheme_AppBarLayout_Flat_Transparent">
|
|
<androidx.appcompat.widget.Toolbar android:id="@+id/action_bar_toolbar" style="@style/AppTheme_Toolbar_Transparent">
|
|
<com.discord.views.calls.VoiceCallActiveEventView android:layout_gravity="center_vertical" android:id="@+id/toolbar_voice_active_event" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
|
|
<com.discord.views.calls.CallEventsButtonView android:layout_gravity="right|center_vertical|center_horizontal|center|end" android:id="@+id/toolbar_events_button" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
|
|
<com.discord.views.calls.StageCallVisitCommunityView android:layout_gravity="right|center_vertical|center_horizontal|center|end" android:id="@+id/call_visit_community" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
|
|
</androidx.appcompat.widget.Toolbar>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
<TextView android:id="@+id/call_fullscreen_mentions" android:visibility="gone" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintTop_toTopOf="@+id/action_bar_toolbar_layout" app:layout_constraintVertical_chainStyle="2" style="@style/Icon_Mentions_Call"/>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/call_streaming_active" android:background="@color/black" android:padding="16dp" android:visibility="gone" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/action_bar_toolbar_layout">
|
|
<include android:id="@+id/audio_share" layout="@layout/widget_call_fullscreen_audio_share_warning"/>
|
|
<androidx.constraintlayout.widget.Barrier android:id="@+id/call_audio_share_warning_barrier" android:layout_width="match_parent" android:layout_height="0dp" app:barrierDirection="3" app:constraint_referenced_ids="audio_share"/>
|
|
<ImageView android:id="@+id/call_streaming_active_illustration" android:layout_width="130dp" android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:src="@drawable/screen_share_illustration" android:importantForAccessibility="no" app:layout_constraintBottom_toTopOf="@+id/call_streaming_active_header" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/call_audio_share_warning_barrier" app:layout_constraintVertical_chainStyle="2"/>
|
|
<TextView android:textSize="@dimen/uikit_textsize_xlarge" android:textColor="@color/white" android:id="@+id/call_streaming_active_header" android:paddingLeft="64dp" android:paddingRight="64dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" android:text="@string/mobile_stream_active_header" android:textAlignment="center" app:layout_constraintBottom_toTopOf="@+id/call_streaming_active_body" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/call_streaming_active_illustration" style="@style/UiKit_TextAppearance_Bold"/>
|
|
<TextView android:textColor="@color/primary_dark_300" android:id="@+id/call_streaming_active_body" android:paddingLeft="64dp" android:paddingRight="64dp" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="16dp" android:text="@string/mobile_stream_active_body" android:textAlignment="center" app:layout_constraintBottom_toTopOf="@+id/call_stop_streaming_button" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/call_streaming_active_header" style="@style/UiKit_TextAppearance"/>
|
|
<com.google.android.material.button.MaterialButton android:id="@+id/call_stop_streaming_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/mobile_stream_stop_sharing" android:backgroundTint="@color/primary_500" app:cornerRadius="100dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/call_streaming_active_body" style="@style/UiKit_Material_Button"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<androidx.cardview.widget.CardView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="16dp" android:layout_marginTop="32dp" app:cardCornerRadius="8dp" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintTop_toBottomOf="@+id/action_bar_toolbar_layout" app:layout_goneMarginTop="72dp">
|
|
<com.discord.views.calls.VideoCallParticipantView android:id="@+id/call_pip" android:visibility="gone" android:layout_width="140dp" android:layout_height="79dp" app:vcpv_is_overlay="true" app:vcpv_match_video_orientation="true"/>
|
|
</androidx.cardview.widget.CardView>
|
|
<com.google.android.material.button.MaterialButton android:theme="@style/AppTheme_Dark" android:textColor="@color/primary_100" android:id="@+id/call_floating_push_to_talk" android:visibility="gone" android:layout_width="0dp" android:layout_margin="8dp" android:text="@string/input_mode_ptt" android:backgroundTint="@color/primary_630_alpha_90" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" style="@style/UiKit_Material_Button"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<ViewStub android:id="@+id/event_prompt_overlay_stub" android:layout="@layout/stub_call_fullscreen_event_prompt_overlay" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:elevation="16dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" app:layout_constraintVertical_bias="0.75"/>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout android:id="@+id/call_controls_sheet_container" android:saveEnabled="false" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintLeft_toLeftOf="0" app:layout_constraintRight_toRightOf="0" app:layout_constraintTop_toBottomOf="@+id/top_of_ui">
|
|
<com.discord.widgets.voice.controls.VoiceControlsSheetView android:layout_gravity="center_horizontal" android:id="@+id/voice_controls_sheet_view" android:visibility="invisible" app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior" style="@style/VoiceControlsSheet"/>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
<androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/stage_call_speaking_chip" android:background="@drawable/bg_stage_channel_speaking_chip" android:padding="8dp" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toBottomOf="@+id/top_of_ui" app:layout_constraintVertical_bias="0.75" app:layout_constraintWidth_max="275dp">
|
|
<com.discord.views.user.UserSummaryView android:id="@+id/stage_call_speaking_user_summary" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toStartOf="@+id/stage_call_speaking_user_summary_label" app:layout_constraintStart_toStartOf="0" app:layout_constraintTop_toTopOf="0" app:summary_avatarOverlap="4dp" app:summary_avatarSize="24dp" app:summary_maxAvatars="3"/>
|
|
<com.google.android.material.textview.MaterialTextView android:textColor="?attr/colorHeaderSecondary" android:id="@+id/stage_call_speaking_user_summary_label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="4dp" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="0" app:layout_constraintEnd_toEndOf="0" app:layout_constraintStart_toEndOf="@+id/stage_call_speaking_user_summary" app:layout_constraintTop_toTopOf="0" style="@style/UiKit_TextView_Medium_SingleLine"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|