Merge "Adjusted the lineHeight for notification texts" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a98a27e499
@@ -53,10 +53,10 @@
|
||||
android:layout_marginTop="@dimen/notification_progress_margin_top"
|
||||
android:layout_marginBottom="6dp"/>
|
||||
<com.android.internal.widget.ImageFloatingTextView android:id="@+id/big_text"
|
||||
style="@style/Widget.Material.Notification.Text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/notification_text_margin_top"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
android:singleLine="false"
|
||||
android:gravity="top"
|
||||
android:visibility="gone"
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
android:layout_marginTop="@dimen/notification_progress_margin_top"
|
||||
android:layout_marginBottom="2dp"/>
|
||||
<TextView android:id="@+id/inbox_text0"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
style="@style/Widget.Material.Notification.Text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:singleLine="true"
|
||||
@@ -62,7 +62,7 @@
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
<TextView android:id="@+id/inbox_text1"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
style="@style/Widget.Material.Notification.Text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:singleLine="true"
|
||||
@@ -71,7 +71,7 @@
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
<TextView android:id="@+id/inbox_text2"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
style="@style/Widget.Material.Notification.Text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:singleLine="true"
|
||||
@@ -80,7 +80,7 @@
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
<TextView android:id="@+id/inbox_text3"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
style="@style/Widget.Material.Notification.Text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:singleLine="true"
|
||||
@@ -89,7 +89,7 @@
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
<TextView android:id="@+id/inbox_text4"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
style="@style/Widget.Material.Notification.Text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:singleLine="true"
|
||||
@@ -98,7 +98,7 @@
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
<TextView android:id="@+id/inbox_text5"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
style="@style/Widget.Material.Notification.Text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:singleLine="true"
|
||||
@@ -107,7 +107,7 @@
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
<TextView android:id="@+id/inbox_text6"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
style="@style/Widget.Material.Notification.Text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:singleLine="true"
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
android:id="@+id/group_message_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/notification_text_margin_top"
|
||||
android:spacing="2dp"
|
||||
android:layout_weight="1"/>
|
||||
</com.android.internal.widget.RemeasuringLinearLayout>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
android:textAlignment="viewStart"
|
||||
/>
|
||||
<TextView android:id="@+id/text_line_1"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
style="@style/Widget.Material.Notification.Text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end|bottom"
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
~ limitations under the License
|
||||
-->
|
||||
<com.android.internal.widget.ImageFloatingTextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="@style/Widget.Material.Notification.Text"
|
||||
android:id="@+id/text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -25,5 +26,4 @@
|
||||
android:gravity="top"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="@style/TextAppearance.Material.Notification"
|
||||
/>
|
||||
|
||||
@@ -500,11 +500,15 @@ please see styles_device_defaults.xml.
|
||||
|
||||
<style name="Widget.Material.Notification.ProgressBar" parent="Widget.Material.Light.ProgressBar.Horizontal" />
|
||||
|
||||
<style name="Widget.Material.Notification.MessagingText" parent="Widget.Material.Light.TextView">
|
||||
<style name="Widget.Material.Notification.Text" parent="Widget.Material.Light.TextView">
|
||||
<item name="lineHeight">20sp</item>
|
||||
<item name="textAppearance">@style/TextAppearance.Material.Notification</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Material.Notification.MessagingText" parent="Widget.Material.Notification.Text">
|
||||
<item name="layout_width">wrap_content</item>
|
||||
<item name="layout_height">wrap_content</item>
|
||||
<item name="ellipsize">end</item>
|
||||
<item name="textAppearance">@style/TextAppearance.Material.Notification</item>
|
||||
<item name="ellipsize">end</item>z
|
||||
</style>
|
||||
|
||||
<style name="Widget.Material.Notification.MessagingName" parent="Widget.Material.Light.TextView">
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@*android:style/TextAppearance.Material.Notification"
|
||||
style="?attr/hybridNotificationTextStyle"
|
||||
/>
|
||||
</com.android.systemui.statusbar.notification.HybridNotificationView>
|
||||
@@ -16,10 +16,10 @@
|
||||
-->
|
||||
<TextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="@*android:style/Widget.Material.Notification.Text"
|
||||
android:id="@+id/notification_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@*android:style/TextAppearance.Material.Notification"
|
||||
android:paddingEnd="@dimen/group_overflow_number_padding"
|
||||
android:gravity="end"
|
||||
android:singleLine="true"
|
||||
|
||||
@@ -137,7 +137,8 @@
|
||||
<item name="android:layout_marginTop">4dp</item>
|
||||
</style>
|
||||
|
||||
<style name="hybrid_notification_text">
|
||||
<style name="hybrid_notification_text"
|
||||
parent="@*android:style/Widget.Material.Notification.Text">
|
||||
<item name="android:paddingEnd">4dp</item>
|
||||
</style>
|
||||
|
||||
@@ -360,10 +361,6 @@
|
||||
parent="@*android:style/TextAppearance.Material.Notification.Info">
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.Material.Notification.HybridNotificationDivider"
|
||||
parent="@*android:style/TextAppearance.Material.Notification">
|
||||
</style>
|
||||
|
||||
<style name="SearchPanelCircle">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
|
||||
Reference in New Issue
Block a user