discord-jadx/app/src/main/res/layout/voice_user_list_item_user.xml

15 lines
3.4 KiB
XML

<?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:background="?attr/colorBackgroundPrimary" android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<LinearLayout android:gravity="center_vertical" android:background="?attr/selectableItemBackground" android:paddingLeft="16dp" android:paddingTop="8dp" android:paddingRight="16dp" android:paddingBottom="8dp" style="@style/res_2131952594_uikit_viewgroup_linearlayout_horizontal">
<com.discord.views.VoiceUserView android:id="@+id/voice_user_list_item_user_avatar" android:layout_width="wrap_content" android:layout_height="wrap_content" app:vuv_animate_avatar_when_ringing="false" app:vuv_avatar_size="32dp" app:vuv_fade_when_disconnected="false"/>
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?attr/colorHeaderPrimary" android:id="@+id/voice_user_list_item_user_name" android:layout_width="0dp" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:singleLine="true" android:layout_weight="1" style="@style/res_2131952561_uikit_textview"/>
<TextView android:textSize="14sp" android:textColor="@color/white" android:id="@+id/voice_user_list_item_live_indicator" android:background="@drawable/bg_stream_live_indicator" android:paddingLeft="6dp" android:paddingRight="6dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="16dp" android:text="@string/live" android:textAllCaps="true" android:fontFamily="?attr/font_primary_semibold"/>
<ImageView android:id="@+id/voice_user_list_item_spectating_indicator" android:layout_width="16dp" android:layout_height="16dp" android:layout_marginRight="16dp" android:src="@drawable/ic_spectate" android:contentDescription="@string/video" app:tint="?attr/colorInteractiveNormal"/>
<ImageView android:id="@+id/voice_user_list_item_mute_indicator" android:layout_width="16dp" android:layout_height="16dp" android:layout_marginRight="16dp" android:src="?attr/ic_mic_muted_red_strike_interactiveNormal" android:contentDescription="@string/form_label_muted"/>
<ImageView android:id="@+id/voice_user_list_item_deafen_indicator" android:layout_width="16dp" android:layout_height="16dp" android:layout_marginRight="16dp" android:src="?attr/ic_headset_deafened_red_strike_interactiveNormal" android:contentDescription="@string/sound_deafen"/>
<ImageView android:id="@+id/voice_user_list_item_video_indicator" android:layout_width="16dp" android:layout_height="16dp" android:layout_marginRight="16dp" android:src="@drawable/ic_videocam_white_24dp" android:contentDescription="@string/video" app:tint="?attr/colorInteractiveNormal"/>
<com.google.android.material.button.MaterialButton android:id="@+id/voice_user_list_item_toggle_ringing" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="16dp" android:text="@string/stop_ringing" style="@style/res_2131952465_uikit_material_button_secondary"/>
</LinearLayout>
<com.discord.views.StreamPreviewView android:id="@+id/voice_user_list_item_user_stream_preview" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginTop="8dp" android:layout_marginRight="16dp" android:layout_marginBottom="16dp"/>
</LinearLayout>