apkfuckery/com.discord/res/layout/widget_user_sheet.xml

40 lines
6.6 KiB
XML
Raw Normal View History

2019-07-24 11:27:29 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-10-04 20:11:59 +00:00
<androidx.core.widget.NestedScrollView android:background="?primary_630_bg" style="@style/UiKit.ViewGroup.NestedScrollView"
2019-07-24 11:27:29 +00:00
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
2019-10-01 14:15:45 +00:00
<LinearLayout style="@style/UiKit.ViewGroup.LinearLayout">
2019-10-04 20:11:59 +00:00
<FrameLayout android:background="?primary_700" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.discord.widgets.user.profile.UserProfileHeaderView android:id="@id/user_sheet_profile_header_view" android:layout_width="fill_parent" android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="parent" app:user_profile_header_background_color="?primary_700" />
<ImageView android:layout_gravity="end|center|top" android:id="@id/user_sheet_more_button" android:background="?bg_pressed_highlight" android:padding="@dimen/uikit_spacing_small" android:layout_marginTop="@dimen/uikit_spacing_medium" android:src="?ic_more" android:contentDescription="@string/more" style="@style/UiKit.ImageView.Clickable" />
</FrameLayout>
2019-10-01 14:15:45 +00:00
<View android:id="@id/user_sheet_profile_actions_divider" android:visibility="gone" style="@style/UiKit.Divider" />
2019-10-04 20:11:59 +00:00
<LinearLayout android:id="@id/user_sheet_profile_actions_container" android:background="?primary_700" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<Button android:id="@id/user_sheet_message_action_button" android:layout_width="0.0dip" android:text="@string/user_profile_message" android:drawableTop="?ic_user_profile_action_message" android:layout_weight="1.0" style="@style/UiKit.ImageButton" />
<Button android:id="@id/user_sheet_call_action_button" android:layout_width="0.0dip" android:text="@string/user_profile_audio" android:drawableTop="?ic_user_profile_action_call" android:layout_weight="1.0" style="@style/UiKit.ImageButton" />
<Button android:id="@id/user_sheet_video_action_button" android:layout_width="0.0dip" android:text="@string/user_profile_video" android:drawableTop="?ic_user_profile_action_video" android:layout_weight="1.0" style="@style/UiKit.ImageButton" />
<Button android:textColor="@color/status_green_500" android:id="@id/user_sheet_add_friend_action_button" android:visibility="gone" android:layout_width="0.0dip" android:text="@string/user_profile_add_friend" android:drawableTop="@drawable/ic_user_profile_action_add_friend" android:layout_weight="1.0" style="@style/UiKit.ImageButton" />
<Button android:textColor="@color/status_yellow_500" android:id="@id/user_sheet_pending_friend_request_action_button" android:visibility="gone" android:layout_width="0.0dip" android:text="@string/user_profile_pending" android:drawableTop="@drawable/ic_user_profile_action_pending" android:layout_weight="1.0" style="@style/UiKit.ImageButton" />
2019-10-01 14:15:45 +00:00
</LinearLayout>
<View android:id="@id/user_sheet_incoming_friend_request_divider" android:visibility="gone" style="@style/UiKit.Divider" />
<TextView android:id="@id/user_sheet_incoming_friend_request_header" android:visibility="gone" android:text="@string/incoming_friend_request" style="@style/UiKit.Settings.Item.Header" />
<LinearLayout android:id="@id/user_sheet_friend_request_incoming_container" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:paddingBottom="@dimen/uikit_spacing_medium" android:visibility="gone" android:layout_width="fill_parent" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
2019-10-04 20:11:59 +00:00
<com.google.android.material.button.MaterialButton android:id="@id/user_sheet_friend_request_ignore_button" android:layout_marginRight="@dimen/uikit_spacing_medium" android:text="@string/friend_request_ignore" android:layout_weight="1.0" style="@style/UiKit.Button.Compact.Grey" />
<com.google.android.material.button.MaterialButton android:id="@id/user_sheet_friend_request_accept_button" android:text="@string/friend_request_accept" android:layout_weight="1.0" style="@style/UiKit.Button.Compact.Green" />
2019-10-01 14:15:45 +00:00
</LinearLayout>
2019-10-11 21:55:41 +00:00
<View android:id="@id/user_sheet_audio_settings_divider" style="@style/UiKit.Divider" />
2019-10-17 03:51:45 +00:00
<com.discord.widgets.user.usersheet.UserProfileVoiceSettingsView android:id="@id/user_sheet_profile_voice_settings_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
2019-10-01 14:15:45 +00:00
<LinearLayout android:id="@id/user_sheet_guild_container" android:paddingBottom="@dimen/uikit_spacing_medium" style="@style/UiKit.ViewGroup.LinearLayout">
<View android:id="@id/user_sheet_guild_divider" style="@style/UiKit.Divider" />
<TextView android:id="@id/user_sheet_guild_header" android:contentDescription="@string/user_profile_guild_name_content_description" style="@style/UiKit.Settings.Item.Header" />
<androidx.recyclerview.widget.RecyclerView android:id="@id/user_sheet_roles_recycler" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:overScrollMode="never" style="@style/UiKit.ViewGroup.RecyclerView" />
2019-10-17 03:51:45 +00:00
<com.discord.widgets.user.profile.UserProfileAdminView android:id="@id/user_sheet_admin_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
2019-10-01 14:15:45 +00:00
</LinearLayout>
<View android:id="@id/user_sheet_activity_divider" android:visibility="gone" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/UiKit.Settings.Divider" />
2019-07-24 11:27:29 +00:00
<FrameLayout android:id="@id/rich_presence_container" android:visibility="gone" style="@style/UiKit.ViewGroup" />
2019-10-04 20:11:59 +00:00
<View android:id="@id/user_sheet_actions_divider" style="@style/UiKit.Divider" />
2019-10-01 14:15:45 +00:00
<TextView android:id="@id/user_sheet_actions_header" android:text="@string/actions" style="@style/UiKit.Settings.Item.Header" />
2019-07-24 11:27:29 +00:00
<TextView android:gravity="center_vertical" android:id="@id/user_sheet_profile" android:text="@string/profile" android:drawableLeft="?ic_account" android:drawableStart="?ic_account" style="@style/UiKit.Settings.Item.Icon" />
2019-10-01 14:15:45 +00:00
<View android:id="@id/user_sheet_developer_divider" android:layout_marginTop="@dimen/uikit_spacing_large" style="@style/UiKit.Divider" />
2019-07-24 11:27:29 +00:00
<TextView android:id="@id/user_sheet_developer_header" android:text="@string/developer_mode" style="@style/UiKit.Settings.Item.Header" />
<TextView android:id="@id/user_sheet_copy_id" android:visibility="gone" android:text="@string/copy_id" android:drawableLeft="?ic_copy" android:drawableStart="?ic_copy" style="@style/UiKit.Settings.Item.Icon" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>