Changes of com.discord v875

This commit is contained in:
root 2019-04-17 01:08:16 +02:00
parent 5fb926a851
commit 6bb027c410
2423 changed files with 32689 additions and 30319 deletions

View file

@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/emoji_iv" android:padding="4.0dip" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_marginLeft="8.0dip"
xmlns:android="http://schemas.android.com/apk/res/android" />
<com.facebook.drawee.view.SimpleDraweeView android:id="@id/emoji_iv" android:padding="4.0dip" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_marginLeft="8.0dip" app:actualImageScaleType="fitCenter" app:placeholderImageScaleType="fitCenter"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" />

View file

@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<com.discord.widgets.user.search.ViewGlobalSearchItem android:background="?selectableItemBackground" android:paddingTop="@dimen/uikit_spacing_xsmall" android:paddingRight="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_xsmall" android:focusable="true" android:clickable="true" style="@style/UiKit.ViewGroup.ConstraintLayout"
<com.discord.widgets.user.search.ViewGlobalSearchItem android:background="?selectableItemBackground" android:paddingTop="@dimen/uikit_spacing_xsmall" android:paddingRight="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_xsmall" android:focusable="true" android:clickable="true" android:clipChildren="false" style="@style/UiKit.ViewGroup.ConstraintLayout"
xmlns:android="http://schemas.android.com/apk/res/android" />

View file

@ -4,5 +4,5 @@
<ImageView android:id="@id/channels_item_channel_unread" android:src="@drawable/ic_unread_white_9dp" android:layout_centerVertical="true" android:contentDescription="@string/sample_empty_string" style="@style/UiKit.ImageView" />
<ImageView android:id="@id/channels_item_channel_hash" android:layout_width="16.0dip" android:layout_height="16.0dip" android:layout_marginLeft="16.0dip" android:src="@drawable/ic_channel_text" android:layout_centerVertical="true" android:contentDescription="@string/sample_empty_string" style="@style/UiKit.ImageView" />
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/primary_400" android:id="@id/channels_item_channel_name" android:layout_marginLeft="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_large" android:singleLine="true" android:layout_toLeftOf="@id/channels_item_channel_mentions" android:layout_toRightOf="@id/channels_item_channel_hash" android:layout_centerVertical="true" style="@style/UiKit.TextView.Semibold" />
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/white" android:gravity="center" android:id="@id/channels_item_channel_mentions" android:background="@drawable/drawable_overlay_mentions" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingTop="@dimen/uikit_spacing_xsmall" android:paddingRight="@dimen/uikit_spacing_small" android:paddingBottom="@dimen/uikit_spacing_xsmall" android:visibility="gone" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:minWidth="@dimen/uikit_spacing_large" android:singleLine="true" android:layout_alignParentRight="true" android:layout_centerVertical="true" style="@style/UiKit.TextView.Semibold" />
<TextView android:id="@id/channels_item_channel_mentions" android:background="@drawable/drawable_overlay_mentions_primary_630" android:visibility="gone" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:minWidth="@dimen/uikit_spacing_large" android:layout_alignParentRight="true" android:layout_centerVertical="true" style="@style/Icon.Mentions.Large" />
</RelativeLayout>

View file

@ -9,6 +9,6 @@
<TextView android:textSize="@dimen/uikit_textsize_large" android:id="@id/channels_list_item_private_name" android:singleLine="true" style="@style/UiKit.TextView.Semibold" />
<TextView android:id="@id/channels_list_item_private_desc" android:singleLine="true" style="@style/UiKit.TextView.Subtext" />
</LinearLayout>
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/white" android:gravity="center" android:id="@id/channels_list_item_private_mentions" android:background="@drawable/drawable_overlay_mentions" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingTop="@dimen/uikit_spacing_xsmall" android:paddingRight="@dimen/uikit_spacing_small" android:paddingBottom="@dimen/uikit_spacing_xsmall" android:visibility="gone" android:layout_marginRight="@dimen/uikit_spacing_large" android:minWidth="@dimen/uikit_spacing_large" android:singleLine="true" android:layout_alignParentRight="true" android:layout_centerVertical="true" style="@style/UiKit.TextView.Bold" />
<TextView android:id="@id/channels_list_item_private_mentions" android:background="@drawable/drawable_overlay_mentions_primary_630" android:visibility="gone" android:layout_marginRight="@dimen/uikit_spacing_large" android:minWidth="@dimen/uikit_spacing_large" android:layout_alignParentRight="true" android:layout_centerVertical="true" style="@style/Icon.Mentions.Large" />
<View android:background="@color/primary_700_alpha_60" android:layout_alignLeft="@id/channels_list_item_private_avatar" android:layout_alignParentBottom="true" style="@style/UiKit.Divider" />
</RelativeLayout>

View file

@ -3,5 +3,5 @@
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/channels_list_item_friends_icon" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:src="@drawable/ic_human_greeting_24dp" android:scaleType="center" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:contentDescription="@string/sample_empty_string" android:importantForAccessibility="no" style="@style/Avatar.Standard" />
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="@color/channel_list_item_text_color" android:layout_marginRight="@dimen/uikit_spacing_large" android:text="@string/friends" android:singleLine="true" android:layout_toRightOf="@id/channels_list_item_friends_icon" android:layout_centerVertical="true" style="@style/UiKit.TextView.Semibold" />
<TextView android:textSize="@dimen/uikit_textsize_small" android:textColor="@color/white" android:gravity="center" android:id="@id/channels_list_item_friends_mentions" android:background="@drawable/drawable_overlay_mentions" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingTop="@dimen/uikit_spacing_xsmall" android:paddingRight="@dimen/uikit_spacing_small" android:paddingBottom="@dimen/uikit_spacing_xsmall" android:visibility="gone" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:minWidth="@dimen/uikit_spacing_large" android:singleLine="true" android:layout_alignParentRight="true" android:layout_centerVertical="true" style="@style/UiKit.TextView.Bold" />
<TextView android:id="@id/channels_list_item_friends_mentions" android:background="@drawable/drawable_overlay_mentions_primary_630" android:visibility="gone" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_large" android:minWidth="@dimen/uikit_spacing_large" android:layout_alignParentRight="true" android:layout_centerVertical="true" style="@style/Icon.Mentions.Large" />
</RelativeLayout>

View file

@ -13,7 +13,7 @@
<com.discord.app.AppViewFlipper android:id="@id/search_flipper" android:paddingLeft="@dimen/uikit_spacing_large" android:paddingRight="@dimen/uikit_spacing_large" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content">
<EditText android:id="@id/external_share_search" android:background="?container_bg_dark_a60" android:paddingLeft="@dimen/uikit_spacing_large" android:layout_height="fill_parent" android:hint="@string/select_channel_or_category" android:drawableLeft="@drawable/ic_search" android:drawablePadding="@dimen/uikit_spacing_large" android:imeOptions="actionSearch" android:drawableStart="@drawable/ic_search" app:backgroundTint="@null" style="@style/UiKit.Form.Field.EditText.SingleLine" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="?container_bg_dark_a60" style="@style/UiKit.ViewGroup.LinearLayout.Horizontal">
<com.discord.widgets.user.search.ViewGlobalSearchItem android:id="@id/widget_channel_search_item" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_medium" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.discord.widgets.user.search.ViewGlobalSearchItem android:id="@id/widget_channel_search_item" android:paddingTop="@dimen/uikit_spacing_medium" android:paddingBottom="@dimen/uikit_spacing_medium" android:clipChildren="false" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" />
<ImageView android:id="@id/widget_channel_search_item_remove" android:padding="@dimen/uikit_spacing_small" android:layout_marginRight="@dimen/uikit_spacing_small" android:src="?ic_close_24dp" android:contentDescription="@string/remove" style="@style/UiKit.ImageView.Clickable" />
</LinearLayout>
</com.discord.app.AppViewFlipper>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:orientation="vertical" android:id="@id/main_panel_center" android:layout_width="fill_parent" android:layout_height="fill_parent"
<RelativeLayout android:orientation="vertical" android:id="@id/main_panel_center" android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<include layout="@layout/widget_main_panel_center_content" />
</RelativeLayout>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<merge android:layout_width="fill_parent" android:layout_height="fill_parent"
<merge android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<com.google.android.material.appbar.AppBarLayout style="@style/AppTheme.AppBarLayout">
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar" />

View file

@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView android:textSize="10.0sp" android:textColor="@color/white" android:gravity="center" android:id="@id/main_toolbar_unread_count" android:background="@drawable/drawable_overlay_mentions" android:paddingLeft="2.0sp" android:paddingTop="1.0sp" android:paddingRight="2.0sp" android:paddingBottom="1.0sp" android:visibility="gone" android:layout_marginLeft="32.0dip" android:layout_marginTop="32.0dip" android:minWidth="16.0dip" android:minHeight="16.0dip" android:text="@string/sample_number_99" android:maxLines="1" android:singleLine="true" style="@style/UiKit.TextView"
<TextView android:gravity="center" android:id="@id/main_toolbar_unread_count" android:visibility="gone" android:layout_marginLeft="30.0dip" android:layout_marginTop="30.0dip" android:text="@string/sample_number_99" style="@style/Icon.Mentions"
xmlns:android="http://schemas.android.com/apk/res/android" />

View file

@ -5,7 +5,8 @@
<androidx.appcompat.widget.Toolbar style="@style/AppTheme.Toolbar" />
</com.google.android.material.appbar.AppBarLayout>
<LinearLayout app:layout_behavior="@string/appbar_scrolling_view_behavior" style="@style/UiKit.ViewGroup.LinearLayout">
<com.google.android.material.tabs.TabLayout android:id="@id/settings_billing_tab_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/uikit_spacing_medium" android:layout_marginRight="@dimen/uikit_spacing_medium" app:tabIndicatorColor="@color/primary_100" />
<androidx.viewpager.widget.ViewPager android:id="@id/settings_billing_view_pager" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<com.discord.utilities.simple_pager.SimplePager android:id="@id/settings_billing_view_pager" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.google.android.material.tabs.TabLayout android:layout_width="fill_parent" android:layout_height="wrap_content" app:tabIndicatorColor="@color/primary_100" />
</com.discord.utilities.simple_pager.SimplePager>
</LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@id/voice" android:background="?primary_630" android:visibility="gone" style="@style/UiKit.ViewGroup.LinearLayout"
xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout android:id="@id/voice_connected_container" style="@style/UiKit.ViewGroup.LinearLayout">
<RelativeLayout android:id="@id/voice_info_wrap" android:layout_height="48.0dip" style="@style/UiKit.ViewGroup.RelativeLayout">
<RelativeLayout android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_toLeftOf="@id/voice_info_talking_users" android:layout_centerVertical="true" style="@style/UiKit.ViewGroup.RelativeLayout">
@ -10,7 +10,7 @@
</LinearLayout>
<TextView android:textSize="11.0sp" android:textColor="?primary_400" android:gravity="center" android:id="@id/voice_connected_description" android:layout_height="14.0dip" android:singleLine="true" android:layout_below="@id/voice_connected_status_container" style="@style/UiKit.TextView" />
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView android:id="@id/voice_info_talking_users" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingRight="@dimen/uikit_spacing_small" android:scrollbars="none" android:layout_width="152.0dip" android:layout_height="36.0dip" android:layout_toLeftOf="@id/voice_info_connecting" android:layout_centerVertical="true" android:layout_alignWithParentIfMissing="true" android:overScrollMode="never" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
<androidx.recyclerview.widget.RecyclerView android:orientation="horizontal" android:id="@id/voice_info_talking_users" android:paddingLeft="@dimen/uikit_spacing_small" android:paddingRight="@dimen/uikit_spacing_small" android:scrollbars="none" android:layout_width="152.0dip" android:layout_height="36.0dip" android:layout_toLeftOf="@id/voice_info_connecting" android:layout_centerVertical="true" android:layout_alignWithParentIfMissing="true" android:overScrollMode="never" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:reverseLayout="true" style="@style/UiKit.ViewGroup.RecyclerView.Horizontal" />
<ProgressBar android:id="@id/voice_info_connecting" android:layout_width="24.0dip" android:layout_height="24.0dip" android:indeterminate="true" android:layout_toLeftOf="@id/voice_divider" android:layout_centerVertical="true" style="@style/Base.Widget.AppCompat.ProgressBar" />
<View android:id="@id/voice_divider" android:background="?primary_400" android:layout_width="0.25dip" android:layout_height="fill_parent" android:layout_marginLeft="10.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip" android:layout_toLeftOf="@id/voice_expand" android:layout_centerVertical="true" />
<ImageView android:id="@id/voice_expand" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/uikit_spacing_large" android:layout_marginRight="@dimen/uikit_spacing_large" android:src="?ic_expand_up" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:contentDescription="@string/voice" style="@style/UiKit.ImageView" />

View file

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<WebView android:orientation="vertical" android:id="@id/web_view" android:background="@color/transparent" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" />