Merge "Conversations UX polish pass" into rvc-dev am: 62a1b9d17e am: fe7e3019d2 am: 305b4a8032
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11821053 Change-Id: I5bfb43c26f14af42748d63eee774b3874dc1ba7e
This commit is contained in:
@@ -761,9 +761,13 @@ public class ConversationLayout extends FrameLayout
|
||||
// group
|
||||
: mExpandedGroupMessagePadding;
|
||||
|
||||
int iconPadding = mIsOneToOne || mIsCollapsed
|
||||
? mConversationIconTopPadding
|
||||
: mConversationIconTopPaddingExpandedGroup;
|
||||
|
||||
mConversationIconContainer.setPaddingRelative(
|
||||
mConversationIconContainer.getPaddingStart(),
|
||||
mConversationIconTopPadding,
|
||||
iconPadding,
|
||||
mConversationIconContainer.getPaddingEnd(),
|
||||
mConversationIconContainer.getPaddingBottom());
|
||||
|
||||
|
||||
@@ -148,7 +148,6 @@
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_name_divider"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -174,6 +173,7 @@
|
||||
android:layout_marginEnd="@dimen/notification_conversation_header_separating_margin"
|
||||
android:paddingTop="1sp"
|
||||
android:singleLine="true"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
@@ -192,7 +192,7 @@
|
||||
|
||||
<DateTimeView
|
||||
android:id="@+id/time"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification.Time"
|
||||
android:textAppearance="@style/TextAppearance.DeviceDefault.Notification.Time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
|
||||
@@ -736,7 +736,7 @@
|
||||
<dimen name="conversation_icon_container_top_padding">12dp</dimen>
|
||||
|
||||
<!-- The top padding of the conversation icon container when the avatar is small-->
|
||||
<dimen name="conversation_icon_container_top_padding_small_avatar">17.5dp</dimen>
|
||||
<dimen name="conversation_icon_container_top_padding_small_avatar">9dp</dimen>
|
||||
|
||||
<!-- The padding of the conversation header when expanded. This is calculated from the expand button size + notification_content_margin_end -->
|
||||
<dimen name="conversation_header_expanded_padding_end">38dp</dimen>
|
||||
|
||||
@@ -296,9 +296,12 @@ easier.
|
||||
<style name="TextAppearance.DeviceDefault.Notification.Info" parent="TextAppearance.Material.Notification.Info">
|
||||
<item name="fontFamily">@string/config_bodyFontFamily</item>
|
||||
</style>
|
||||
<style name="TextAppearance.DeviceDefault.Notification.Time" parent="TextAppearance.Material.Notification.Time">
|
||||
<item name="fontFamily">@string/config_bodyFontFamily</item>
|
||||
</style>
|
||||
<style name="TextAppearance.DeviceDefault.Notification.Conversation.AppName"
|
||||
parent="@*android:style/TextAppearance.DeviceDefault.Notification.Title">
|
||||
<item name="android:textSize">16sp</item>
|
||||
parent="TextAppearance.Material.Notification.Conversation.AppName">
|
||||
<item name="fontFamily">@string/config_headlineFontFamilyMedium</item>
|
||||
</style>
|
||||
<style name="TextAppearance.DeviceDefault.Widget" parent="TextAppearance.Material.Widget">
|
||||
<item name="fontFamily">@string/config_bodyFontFamily</item>
|
||||
|
||||
@@ -491,6 +491,10 @@ please see styles_device_defaults.xml.
|
||||
<item name="textColor">#66000000</item>
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.Material.Notification.Conversation.AppName" parent="TextAppearance.Material.Notification.Title">
|
||||
<item name="android:textSize">16sp</item>
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.Material.ListItem" parent="TextAppearance.Material.Subhead" />
|
||||
<style name="TextAppearance.Material.ListItemSecondary" parent="TextAppearance.Material.Body1" />
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:clipChildren="false"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingTop="11dp"
|
||||
android:clipToPadding="true">
|
||||
<ImageView
|
||||
android:id="@+id/conversation_icon"
|
||||
|
||||
Reference in New Issue
Block a user