MT6761 Android9.0 增大状态栏图标

需求:
    把状态栏图标修改增大一些

修改前:



修改后:




解决办法:
    1.修改系统状态栏的高度 ok

  1. +++ b/frameworks/base/core/res/res/values/dimens.xml
  2. @@ -34,7 +34,7 @@
  3.      <!-- Height of the status bar -->
  4.      <dimen name="status_bar_height">@dimen/status_bar_height_portrait</dimen>
  5.      <!-- Height of the status bar in portrait -->
  6. -    <dimen name="status_bar_height_portrait">24dp</dimen>
  7. +    <dimen name="status_bar_height_portrait">48dp</dimen>
  8.      <!-- Height of the status bar in landscape -->
  9.      <dimen name="status_bar_height_landscape">@dimen/status_bar_height_portrait</dimen>
  10.      <!-- Height of area above QQS where battery/time go -->
复制代码


    2.修改锁屏显示"飞行模式" 文本大小

  1. +++ b/vendor/mediatek/proprietary/packages/apps/SystemUI/res/layout/keyguard_status_bar.xml
  2. @@ -70,6 +70,7 @@
  3.          android:layout_toStartOf="@id/system_icons_container"
  4.          android:gravity="center_vertical"
  5.          android:ellipsize="marquee"
  6. +        android:textSize="28sp"
  7.          android:textDirection="locale"
  8.          android:textAppearance="?android:attr/textAppearanceSmall"
  9.          android:textColor="?attr/wallpaperTextColorSecondary"
复制代码


    3.修改图标 和 字体

  1. +++ b/vendor/mediatek/proprietary/packages/apps/SystemUI/res/values/dimens.xml
  2. @@ -40,7 +40,7 @@
  3.      <dimen name="status_bar_battery_icon_width">8.5dp</dimen>
  4. //修改状态栏时钟字体的大小
  5.      <!-- The font size for the clock in the status bar. -->
  6. -    <dimen name="status_bar_clock_size">14sp</dimen>
  7. +    <dimen name="status_bar_clock_size">28sp</dimen>
  8.      <!-- The starting padding for the clock in the status bar. -->
  9.      <dimen name="status_bar_clock_starting_padding">7dp</dimen>
  10. @@ -61,7 +61,7 @@
  11.      <dimen name="status_bar_airplane_spacer_width">4dp</dimen>
  12. //修改状态栏图标的大小
  13.      <!-- The amount to scale each of the status bar icons by. A value of 1 means no scaling. -->
  14. -    <item name="status_bar_icon_scale_factor" format="float" type="dimen">1.0</item>
  15. +    <item name="status_bar_icon_scale_factor" format="float" type="dimen">1.8</item>
  16.      <dimen name="group_overflow_number_size">@*android:dimen/notification_text_size</dimen>
  17.      <dimen name="group_overflow_number_size_dark">16sp</dimen>
  18. @@ -186,7 +186,7 @@
  19.      <dimen name="snooze_option_padding">8dp</dimen>
  20. //修改状态栏中通知图标的大小
  21.      <!-- size at which Notification icons will be drawn in the status bar -->
  22. -    <dimen name="status_bar_icon_drawing_size">15dp</dimen>
  23. +    <dimen name="status_bar_icon_drawing_size">30dp</dimen>
  24.      <!-- size at which Notification icons will be drawn on Ambient Display -->
  25.      <dimen name="status_bar_icon_drawing_size_dark">@*android:dimen/notification_header_icon_size_ambient</dimen>
  26. @@ -575,18 +575,18 @@
  27.      <dimen name="qs_time_collapsed_size">14sp</dimen>
  28. //修改状态栏显示电量百分比字体大小(已经修改为显示电压)
  29.      <!-- The font size of the time when expanded in QS -->
  30. -    <dimen name="qs_time_expanded_size">14sp</dimen>
  31. +    <dimen name="qs_time_expanded_size">28sp</dimen>
  32.      <!-- The font size of the "emergency calls only" label in QS -->
  33.      <dimen name="qs_emergency_calls_only_text_size">12sp</dimen>
  34. //修改状态栏显示日期字体大小
  35.      <!-- The font size of the date in QS -->
  36. -    <dimen name="qs_date_collapsed_size">14sp</dimen>
  37. +    <dimen name="qs_date_collapsed_size">28sp</dimen>
  38.      <!-- Amount the date/time move when emergency calls only is present -->
  39.      <dimen name="qs_date_time_translation">8dp</dimen>
  40. //修改状态栏电池电量文本之前填充空白
  41.      <!-- Padding before battery level text in status bar, QS, and Keyguard -->
  42. -    <dimen name="battery_level_padding_start">4dp</dimen>
  43. +    <dimen name="battery_level_padding_start">8dp</dimen>
  44.      <!-- The top padding of the clear all button -->
  45.      <dimen name="clear_all_padding_top">12dp</dimen>
复制代码

 

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值