make notification icon size depend on 'Large Text' setting
This commit is contained in:
parent
382b741adf
commit
10db274762
4 changed files with 8 additions and 2 deletions
|
@ -75,6 +75,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:scrollHorizontally="false"
|
||||
android:singleLine="true"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="?attr/IconSize"
|
||||
android:text="This is a placeholder text to show the last messages"
|
||||
android:textColor="@color/black87"
|
||||
android:textSize="?attr/TextSizeBody" />
|
||||
|
@ -93,8 +95,8 @@
|
|||
|
||||
<ImageView
|
||||
android:id="@+id/notification_status"
|
||||
android:layout_width="16sp"
|
||||
android:layout_height="16sp"
|
||||
android:layout_width="?attr/IconSize"
|
||||
android:layout_height="?attr/IconSize"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="4dp"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
<item name="TextSizeInfo">12sp</item>
|
||||
<item name="TextSizeBody">16sp</item>
|
||||
<item name="IconSize">18sp</item>
|
||||
<item name="TextSizeHeadline">22sp</item>
|
||||
|
||||
<item name="attr/dialog_horizontal_padding">24dp</item>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<attr name="TextSizeInfo" format="dimension" />
|
||||
<attr name="TextSizeBody" format="dimension" />
|
||||
<attr name="TextSizeHeadline" format="dimension" />
|
||||
<attr name="IconSize" format="dimension" />
|
||||
|
||||
<attr name="icon_add_group" format="reference" />
|
||||
<attr name="icon_add_person" format="reference" />
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<item name="android:homeAsUpIndicator">@drawable/ic_arrow_back_white_24dp</item>
|
||||
<item name="TextSizeInfo">12sp</item>
|
||||
<item name="TextSizeBody">16sp</item>
|
||||
<item name="IconSize">18sp</item>
|
||||
<item name="TextSizeHeadline">22sp</item>
|
||||
|
||||
<item name="attr/icon_add_group">@drawable/ic_group_add_white_24dp</item>
|
||||
|
@ -47,6 +48,7 @@
|
|||
<style name="ConversationsTheme.LargerText" parent="ConversationsTheme">
|
||||
<item name="TextSizeInfo">14sp</item>
|
||||
<item name="TextSizeBody">18sp</item>
|
||||
<item name="IconSize">20sp</item>
|
||||
<item name="TextSizeHeadline">24sp</item>
|
||||
</style>
|
||||
|
||||
|
|
Reference in a new issue