前情提要

Android 8.1平台SystemUI 导航栏加载流程解析

9.0 改动点简要说明

1、新增 StatusBarMobileView 替代 SignalClusterView,用以控制信号栏显示

同时增加的还有 StatusBarIconViewStatusBarWifiView

2、整体流程和 8.1 类似

效果图

整体流程图

上代码

先来看初始赋值的地方 MobileSignalController.java,在 notifyListeners() 方法中进行我们对应的定制,

最后通过 callback.setMobileDataIndicators() 将状态值传递到 StatusBarSignalPolicy.java 解析显示

vendor\mediatek\proprietary\packages\apps\SystemUI\src\com\android\systemui\statusbar\policy\MobileSignalController.java

  1. @Override
  2. public void notifyListeners(SignalCallback callback) {
  3. MobileIconGroup icons = getIcons();
  4. String contentDescription = getStringIfExists(getContentDescription());
  5. String dataContentDescription = getStringIfExists(icons.mDataContentDescription);
  6. if (mCurrentState.inetCondition == 0) {
  7. dataContentDescription = mContext.getString(R.string.data_connection_no_internet);
  8. }
  9. final boolean dataDisabled = mCurrentState.iconGroup == TelephonyIcons.DATA_DISABLED
  10. && mCurrentState.userSetup;
  11. /// M: Customize the signal strength icon id. @ {
  12. int iconId = getCurrentIconId();
  13. iconId = mStatusBarExt.getCustomizeSignalStrengthIcon(
  14. mSubscriptionInfo.getSubscriptionId(),
  15. iconId,
  16. mSignalStrength,
  17. mDataNetType,
  18. mServiceState);
  19. /// @ }
  20. if (mSignalStrength != null) {
  21. /*int dbm = mSignalStrength.getDbm();
  22. int asu = mSignalStrength.getAsuLevel();
  23. Log.i("ccz","dbm="+dbm + " asu="+asu);*/
  24. Log.e("ccz", "isGSM=="+mSignalStrength.isGsm()
  25. + " connected=="+mCurrentState.connected+" dataConnected=="+mCurrentState.dataConnected);
  26. }
  27. if (mCurrentState.connected) {
  28. //cczheng add get signal icon [S]
  29. //通过 getSignalStrengthIcon 方法,根据自定义规则,返回要显示对应资源id
  30. iconId = TelephonyIcons.getSignalStrengthIcon(mSignalStrength != null ? mSignalStrength.getDbm() : -120,
  31. mSignalStrength != null ? mSignalStrength.getAsuLevel() : 0);
  32. //iconId = TelephonyIcons.getSignalStrengthIcon(mCurrentState.level);
  33. //cczheng add get signal icon [E]
  34. }else{//未连接成功时显示 X
  35. iconId = R.drawable.stat_sys_signal_disable;
  36. }
  37. // Show icon in QS when we are connected or data is disabled.
  38. boolean showDataIcon = mCurrentState.dataConnected || dataDisabled;
  39. Log.i("ccz","dataDisabled="+dataDisabled + " showDataIcon="+showDataIcon);
  40. IconState statusIcon = new IconState(mCurrentState.enabled && !mCurrentState.airplaneMode,
  41. iconId, contentDescription);
  42. int qsTypeIcon = 0;
  43. IconState qsIcon = null;
  44. String description = null;
  45. // Only send data sim callbacks to QS.
  46. if (mCurrentState.dataSim) {
  47. qsTypeIcon = (showDataIcon || mConfig.alwaysShowDataRatIcon) ? icons.mQsDataType : 0;
  48. qsIcon = new IconState(mCurrentState.enabled
  49. && !mCurrentState.isEmergency, getQsCurrentIconId(), contentDescription);
  50. description = mCurrentState.isEmergency ? null : mCurrentState.networkName;
  51. }
  52. boolean activityIn = mCurrentState.dataConnected
  53. && !mCurrentState.carrierNetworkChangeMode
  54. && mCurrentState.activityIn;
  55. boolean activityOut = mCurrentState.dataConnected
  56. && !mCurrentState.carrierNetworkChangeMode
  57. && mCurrentState.activityOut;
  58. showDataIcon &= mCurrentState.isDefault || dataDisabled;
  59. int typeIcon = (showDataIcon || mConfig.alwaysShowDataRatIcon) ? icons.mDataType : 0;
  60. /// M: Add for lwa.
  61. typeIcon = mCurrentState.lwaRegState == NetworkTypeUtils.LWA_STATE_CONNCTED
  62. && showDataIcon ? NetworkTypeUtils.LWA_ICON : typeIcon;
  63. /** M: Support [Network Type on StatusBar], change the implement methods.
  64. * Get the network icon base on service state.
  65. * Add one more parameter for network type.
  66. * @ { **/
  67. int networkIcon = mCurrentState.networkIcon;
  68. /// M: Support volte icon.Bug fix when airplane mode is on go to hide volte icon
  69. int volteIcon = mCurrentState.airplaneMode && !isImsOverWfc()
  70. ? 0 : mCurrentState.volteIcon;
  71. /// M: when data disabled, common show data icon as x, but op do not need show it @ {
  72. mStatusBarExt.isDataDisabled(mSubscriptionInfo.getSubscriptionId(), dataDisabled);
  73. /// @ }
  74. /// M: Customize the data type icon id. @ {
  75. typeIcon = mStatusBarExt.getDataTypeIcon(
  76. mSubscriptionInfo.getSubscriptionId(),
  77. typeIcon,
  78. mDataNetType,
  79. mCurrentState.dataConnected ? TelephonyManager.DATA_CONNECTED :
  80. TelephonyManager.DATA_DISCONNECTED,
  81. mServiceState);
  82. /// @ }
  83. /// M: Customize the network type icon id. @ {
  84. networkIcon = mStatusBarExt.getNetworkTypeIcon(
  85. mSubscriptionInfo.getSubscriptionId(),
  86. networkIcon,
  87. mDataNetType,
  88. mServiceState);
  89. /// for operator
  90. //通过 description 传递运营商信息
  91. description = mCurrentState.operator;
  92. // for qsdatetype
  93. qsTypeIcon = mCurrentState.mQsDataType;
  94. /// @ }
  95. //cczheng add for when datadisable set mMobileDataActivity GONE [S]
  96. //数据网络关闭时,id 置为0,不显示上下行小箭头
  97. if (isDataDisabled()) {
  98. typeIcon = 0;
  99. }
  100. Log.d("ccz", "qsTypeIcon="+qsTypeIcon);
  101. //cczheng add for when datadisable set mMobileDataActivity GONE [E]
  102. Log.e("ccz", " showDataIcon="+showDataIcon+" activityIn="+activityIn
  103. +" activityOut="+activityOut);
  104. Log.i("ccz", "networkName="+mCurrentState.networkName + " description="+description);
  105. callback.setMobileDataIndicators(statusIcon, qsIcon, typeIcon, networkIcon, volteIcon,
  106. qsTypeIcon,activityIn, activityOut, dataContentDescription, description,
  107. icons.mIsWide, mSubscriptionInfo.getSubscriptionId(), mCurrentState.roaming,
  108. mCurrentState.isDefaultData, mCurrentState.customizedState);
  109. /// M: update plmn label @{
  110. mNetworkController.refreshPlmnCarrierLabel();
  111. /// @}
  112. }
  113. private final void updateTelephony() {
  114. .....
  115. /// M: For network type big icon.
  116. mCurrentState.networkIcon =
  117. NetworkTypeUtils.getNetworkTypeIcon(mServiceState, mConfig, hasService());
  118. /// M: For volte type icon.
  119. mCurrentState.volteIcon = getVolteIcon();
  120. //cczheng add for qsdatetype
  121. mCurrentState.mQsDataType = ((MobileIconGroup)mCurrentState.iconGroup).mQsDataType;
  122. //cczheng add for operator
  123. mCurrentState.operator = getOperatorType();
  124. notifyListenersIfNecessary();
  125. }
  126. private String getOperatorType(){
  127. if (!hasService()) {
  128. // Not in service, don't show operator
  129. return "0";
  130. }
  131. int operatorType = NetworkTypeUtils.getOperatorType(mPhone);
  132. if (operatorType == 0)
  133. return "0";
  134. else
  135. return mContext.getResources().getString(operatorType);
  136. }

根据通用标准自定义显示规则

dbm >= -107 4格

-107 > dbm >= -111 3格

-111 > dbm >= -114 2格

-114 > dbm >= -117 1格

vendor\mediatek\proprietary\packages\apps\SystemUI\src\com\android\systemui\statusbar\policy\TelephonyIcons.java

  1. static final int[] TELEPHONY_SIGNAL_STRENGTH_FULL = {
  2. R.drawable.stat_sys_signal_0_fully,
  3. R.drawable.stat_sys_signal_1_fully,
  4. R.drawable.stat_sys_signal_2_fully,
  5. R.drawable.stat_sys_signal_3_fully,
  6. R.drawable.stat_sys_signal_4_fully,
  7. };
  8. /**
  9. * Customize Signal strength icon.
  10. * @param level telephony signal strength leve.
  11. * @return Signal strength icon id.
  12. */
  13. static final int getSignalStrengthIcon(int level) {
  14. android.util.Log.e("ccz", "getSignalStrengthIcon() level=="+level);
  15. if (level >= 0 && level < TELEPHONY_SIGNAL_STRENGTH_FULL.length) {
  16. return TELEPHONY_SIGNAL_STRENGTH_FULL[level];
  17. }
  18. return 0;
  19. }
  20. static final int getSignalStrengthIcon(int dbm, int asu) {
  21. int level = 0;
  22. if(dbm >= -107) level = 4;
  23. else if (dbm >= -111) level = 3;
  24. else if (dbm >= -114) level = 2;
  25. else if (dbm >= -117) level = 1;
  26. android.util.Log.e("ccz", "getSignalStrengthIcon() dbm=="+dbm + " asu=="+asu + " level=="+level);
  27. return TELEPHONY_SIGNAL_STRENGTH_FULL[level];
  28. }

舍弃原来的网络大图标,新增网络小图标,这样可以在下方显示网络数据图标

vendor\mediatek\proprietary\packages\apps\SystemUI\src\com\mediatek\systemui\statusbar\networktype\NetworkTypeUtils.java

  1. //cczheng add show small networkType
  2. static final Map<Integer, Integer> sNetworkTypeSmallIcons = new HashMap<Integer, Integer>() {
  3. {
  4. // For CDMA 3G
  5. put(TelephonyManager.NETWORK_TYPE_EVDO_0, R.drawable.stat_sys_data_fully_connected_3g);
  6. put(TelephonyManager.NETWORK_TYPE_EVDO_A, R.drawable.stat_sys_data_fully_connected_3g);
  7. put(TelephonyManager.NETWORK_TYPE_EVDO_B, R.drawable.stat_sys_data_fully_connected_3g);
  8. put(TelephonyManager.NETWORK_TYPE_EHRPD, R.drawable.stat_sys_data_fully_connected_3g);
  9. // For CDMA 1x
  10. put(TelephonyManager.NETWORK_TYPE_CDMA, R.drawable.stat_sys_data_fully_connected_1x);
  11. put(TelephonyManager.NETWORK_TYPE_1xRTT, R.drawable.stat_sys_data_fully_connected_1x);
  12. // Edge
  13. put(TelephonyManager.NETWORK_TYPE_EDGE, R.drawable.stat_sys_data_fully_connected_e);
  14. // 3G
  15. put(TelephonyManager.NETWORK_TYPE_UMTS, R.drawable.stat_sys_data_fully_connected_3g);
  16. // For 4G
  17. put(TelephonyManager.NETWORK_TYPE_LTE, R.drawable.stat_sys_data_fully_connected_4g);
  18. // 3G
  19. put(TelephonyManager.NETWORK_TYPE_HSDPA, R.drawable.stat_sys_data_fully_connected_3g);
  20. put(TelephonyManager.NETWORK_TYPE_HSUPA, R.drawable.stat_sys_data_fully_connected_3g);
  21. put(TelephonyManager.NETWORK_TYPE_HSPA, R.drawable.stat_sys_data_fully_connected_3g);
  22. put(TelephonyManager.NETWORK_TYPE_HSPAP, R.drawable.stat_sys_data_fully_connected_3g);
  23. put(TelephonyManager.NETWORK_TYPE_IWLAN, 0);
  24. }
  25. };
  26. public static int getNetworkTypeIcon(ServiceState serviceState, Config config,
  27. boolean hasService) {
  28. if (!hasService) {
  29. // Not in service, no network type.
  30. return 0;
  31. }
  32. int tempNetworkType = getNetworkType(serviceState);
  33. //cczheng change sNetworkTypeIcons to sNetworkTypeSmallIcons, show small networkType
  34. //Integer iconId = sNetworkTypeIcons.get(tempNetworkType);
  35. Integer iconId = sNetworkTypeSmallIcons.get(tempNetworkType);//add
  36. if (iconId == null) {
  37. iconId = tempNetworkType == TelephonyManager.NETWORK_TYPE_UNKNOWN ? 0 :
  38. config.showAtLeast3G ? R.drawable.stat_sys_network_type_3g :
  39. R.drawable.stat_sys_network_type_g;
  40. }
  41. Log.i("ccz", "Operator=="+ serviceState.getOperatorAlphaLong());
  42. return iconId.intValue();
  43. }
  44. //cczheng add for operatortype
  45. static final int[] OPERATOR_TYPE = {
  46. R.string.operator_cmcc,//CHINA_MOBILE
  47. R.string.operator_cucc,//CHINA_UNICOM
  48. R.string.operator_ctcc//CHINA_TELECOM
  49. };
  50. public static int getOperatorType(TelephonyManager telephonyManager) {
  51. int type = 0;
  52. String operator = telephonyManager.getSimOperator();
  53. switch (operator) {
  54. case "46000":
  55. case "46002":
  56. case "46007":
  57. case "41004":
  58. type = OPERATOR_TYPE[0];
  59. break;
  60. case "46001":
  61. case "46006":
  62. type = OPERATOR_TYPE[1];
  63. break;
  64. case "46003":
  65. case "46011":
  66. type = OPERATOR_TYPE[2];
  67. break;
  68. default:
  69. break;
  70. }
  71. return type;
  72. }

StatusBarSignalPolicy 通过 description 传递运营商类型

vendor\mediatek\proprietary\packages\apps\SystemUI\src\com\android\systemui\statusbar\phone\StatusBarSignalPolicy.java

  1. @Override
  2. public void setMobileDataIndicators(IconState statusIcon, IconState qsIcon, int statusType,
  3. int networkType, int volteIcon, int qsType, boolean activityIn, boolean activityOut,
  4. String typeContentDescription, String description, boolean isWide, int subId,
  5. boolean roaming, boolean isDefaultData, int customizedState) {
  6. Log.i("ccz","StatusBarSignalPolicy setMobileDataIndicators()");
  7. MobileIconState state = getState(subId);
  8. if (state == null) {
  9. return;
  10. }
  11. .....
  12. //cczheng add for operator because description is unless
  13. state.mOperator = description;
  14. Log.e("ccz","mMobileStrengthId="+statusIcon.icon);
  15. // Always send a copy to maintain value type semantics
  16. mIconController.setMobileIcons(mSlotMobile, MobileIconState.copyStates(mMobileStates));
  17. }

StatusBarMobileView 获取传递的资源id值显示对应的图标

vendor\mediatek\proprietary\packages\apps\SystemUI\src\com\android\systemui\statusbar\StatusBarMobileView.java

  1. public class StatusBarMobileView extends FrameLayout implements DarkReceiver,
  2. StatusIconDisplayable {
  3. private static final String TAG = "StatusBarMobileView";
  4. ....
  5. //cczheng add
  6. private ImageView mMobileDataActivity;
  7. private TextView mOperatorType;
  8. private void init() {
  9. ....
  10. mNetworkType = findViewById(R.id.network_type);
  11. mVolteType = findViewById(R.id.volte_indicator_ext);
  12. /// @}
  13. mMobileDataActivity = findViewById(R.id.data_inout);
  14. mOperatorType = findViewById(R.id.tv_operator);
  15. mMobileDrawable = new SignalDrawable(getContext());
  16. //cczheng annotaion don't use system full style
  17. //mMobile.setImageDrawable(mMobileDrawable);
  18. initDotView();
  19. mIsWfcEnable = SystemProperties.get("persist.vendor.mtk_wfc_support").equals("1");
  20. /// M: Add for Plugin feature @ {
  21. mStatusBarExt = OpSystemUICustomizationFactoryBase.getOpFactory(mContext)
  22. .makeSystemUIStatusBar(mContext);
  23. /// @ }
  24. }
  25. private void initViewState() {
  26. setContentDescription(mState.contentDescription);
  27. if (!mState.visible) {
  28. mMobileGroup.setVisibility(View.GONE);
  29. } else {
  30. mMobileGroup.setVisibility(View.VISIBLE);
  31. }
  32. //cczheng don't use system style change empty line style 注释原来的实心信号格
  33. //mMobileDrawable.setLevel(mState.strengthId);
  34. mMobile.setImageResource(mState.strengthId);
  35. //show date in out icon 数据流量小箭头
  36. mMobileDataActivity.setImageResource(getDataActivityIcon(mState.activityIn, mState.activityOut));
  37. if (mState.typeId > 0) {
  38. if (!mStatusBarExt.disableHostFunction()) {
  39. mMobileType.setContentDescription(mState.typeContentDescription);
  40. mMobileType.setImageResource(mState.typeId);
  41. }
  42. //cczheng hide small datatype icon x or 4G
  43. mMobileType.setVisibility(View.GONE /*View.VISIBLE*/);
  44. } else {
  45. mMobileType.setVisibility(View.GONE);
  46. }
  47. mMobileRoaming.setVisibility(mState.roaming ? View.VISIBLE : View.GONE);
  48. mIn.setVisibility(mState.activityIn ? View.VISIBLE : View.GONE);
  49. mOut.setVisibility(mState.activityIn ? View.VISIBLE : View.GONE);
  50. //mInoutContainer.setVisibility((mState.activityIn || mState.activityOut)
  51. // ? View.VISIBLE : View.GONE);
  52. mMobileDataActivity.setVisibility(mState.typeId != 0 ? View.VISIBLE : View.GONE);
  53. /// M: Add for [Network Type and volte on Statusbar] @{
  54. setCustomizeViewProperty();
  55. /// @}
  56. showWfcIfAirplaneMode();
  57. /// M: Add data group for plugin feature. @ {
  58. mStatusBarExt.addCustomizedView(mState.subId, mContext, mMobileGroup);
  59. setCustomizedOpViews();
  60. /// @ }
  61. }
  62. private void updateState(MobileIconState state) {
  63. setContentDescription(state.contentDescription);
  64. if (mState.visible != state.visible) {
  65. mMobileGroup.setVisibility(state.visible ? View.VISIBLE : View.GONE);
  66. // To avoid StatusBarMobileView will not show in extreme case,
  67. // force request layout once if visible state changed.
  68. requestLayout();
  69. }
  70. if (mState.strengthId != state.strengthId) {
  71. //cczheng don't use system style change empty line style
  72. //mMobileDrawable.setLevel(state.strengthId);
  73. mMobile.setImageResource(state.strengthId);
  74. }
  75. //show date in out icon
  76. mMobileDataActivity.setImageResource(getDataActivityIcon(state.activityIn, state.activityOut));
  77. if (mState.typeId != state.typeId) {
  78. if (state.typeId != 0) {
  79. if (!mStatusBarExt.disableHostFunction()) {
  80. mMobileType.setContentDescription(state.typeContentDescription);
  81. mMobileType.setImageResource(state.typeId);
  82. }
  83. //cczheng hide small datatype icon x or 4G
  84. //数据流量标识 mMobileDataActivity 替代 mMobileType
  85. mMobileType.setVisibility(View.GONE /*View.VISIBLE*/);
  86. } else {
  87. mMobileType.setVisibility(View.GONE);
  88. }
  89. }
  90. mMobileRoaming.setVisibility(state.roaming ? View.VISIBLE : View.GONE);
  91. mIn.setVisibility(state.activityIn ? View.VISIBLE : View.GONE);
  92. mOut.setVisibility(state.activityIn ? View.VISIBLE : View.GONE);
  93. //mInoutContainer.setVisibility((state.activityIn || state.activityOut)
  94. // ? View.VISIBLE : View.GONE);
  95. mMobileDataActivity.setVisibility(state.typeId != 0 ? View.VISIBLE : View.GONE);
  96. /// M: Add for [Network Type and volte on Statusbar] @{
  97. if (mState.networkIcon != state.networkIcon) {
  98. setNetworkIcon(state.networkIcon);
  99. }
  100. if (mState.volteIcon != state.volteIcon) {
  101. setVolteIcon(state.volteIcon);
  102. }
  103. if (mState.mOperator != state.mOperator) {
  104. setOperatorText(state.mOperator);
  105. }
  106. if (mState.mCustomizedState != state.mCustomizedState
  107. || mState.networkIcon != state.networkIcon) {
  108. // if cs reg state has changed or network icon change to LTE,need to update.
  109. mStatusBarExt.setDisVolteView(mState.subId, state.volteIcon, mVolteType);
  110. }
  111. /// @}
  112. mState = state;
  113. // should added after set mState
  114. showWfcIfAirplaneMode();
  115. setCustomizedOpViews();
  116. }
  117. //cczheng add for data in out icon [S]
  118. final int DATA_ACTIVITY_NONE = R.drawable.ct_stat_sys_signal_not_inout;
  119. final int DATA_ACTIVITY_IN = R.drawable.ct_stat_sys_signal_in;
  120. final int DATA_ACTIVITY_OUT = R.drawable.ct_stat_sys_signal_out;
  121. final int DATA_ACTIVITY_INOUT = R.drawable.ct_stat_sys_signal_inout;
  122. /**
  123. * M: getDataActivityIcon: Get DataActivity icon by dataActivity type.
  124. * @param activityIn : dataActivity Type
  125. * @param activityOut : dataActivity Type
  126. * @return dataActivity icon ID
  127. */
  128. public int getDataActivityIcon(boolean activityIn, boolean activityOut) {
  129. Log.i("ccz", "mActivityIn="+activityIn+" mActivityOut="+activityOut);
  130. int icon = DATA_ACTIVITY_NONE;
  131. if (activityIn && activityOut) {
  132. icon = DATA_ACTIVITY_INOUT;
  133. }else if (activityIn) {
  134. icon = DATA_ACTIVITY_IN;
  135. }else if (activityOut) {
  136. icon = DATA_ACTIVITY_OUT;
  137. }
  138. return icon;
  139. }
  140. //cczheng add for data in out icon [S]
  141. private void setOperatorText(String mOperator){
  142. if ("0".equals(mOperator)) {
  143. mOperatorType.setVisibility(View.GONE);
  144. } else {
  145. mOperatorType.setText(mOperator);
  146. mOperatorType.setVisibility(View.VISIBLE);
  147. }
  148. }

StatusBarMobileView 对应布局文件 status_bar_mobile_signal_group 修改

vendor\mediatek\proprietary\packages\apps\SystemUI\res\layout\status_bar_mobile_signal_group.xml

  1. <com.android.systemui.statusbar.StatusBarMobileView
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:systemui="http://schemas.android.com/apk/res-auto"
  4. android:id="@+id/mobile_combo"
  5. android:layout_width="wrap_content"
  6. android:layout_height="match_parent"
  7. android:gravity="center_vertical" >
  8. <com.android.keyguard.AlphaOptimizedLinearLayout
  9. android:id="@+id/mobile_group"
  10. android:layout_width="wrap_content"
  11. android:layout_height="match_parent"
  12. android:gravity="center_vertical"
  13. android:orientation="horizontal" >
  14. <ImageView
  15. android:id="@+id/volte_indicator_ext"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_gravity="center_vertical"
  19. android:visibility="gone"
  20. />
  21. <!-- <ImageView
  22. android:id="@+id/network_type"
  23. android:layout_height="wrap_content"
  24. android:layout_width="wrap_content"
  25. android:layout_gravity="center_vertical"
  26. android:visibility="gone"
  27. /> -->
  28. <!-- cczheng annotaion network_type and add data in out view-->
  29. <FrameLayout
  30. android:layout_height="17dp"
  31. android:layout_width="wrap_content">
  32. <ImageView
  33. android:id="@+id/network_type"
  34. android:layout_height="wrap_content"
  35. android:layout_width="wrap_content"
  36. android:paddingEnd="2dp"
  37. android:visibility="gone"/>
  38. <ImageView
  39. android:id="@+id/data_inout"
  40. android:layout_height="wrap_content"
  41. android:layout_width="wrap_content"
  42. android:paddingEnd="2dp"
  43. android:visibility="gone"/>
  44. </FrameLayout>
  45. <!-- end -->
  46. .......
  47. <ImageView
  48. android:id="@+id/mobile_roaming"
  49. android:layout_width="wrap_content"
  50. android:layout_height="17dp"
  51. android:paddingStart="1dp"
  52. android:paddingTop="1.5dp"
  53. android:paddingBottom="3dp"
  54. android:paddingEnd="1dp"
  55. android:scaleType="fitCenter"
  56. android:src="@drawable/stat_sys_roaming_ext"
  57. android:contentDescription="@string/data_connection_roaming"
  58. android:visibility="gone" />
  59. <!-- cczheng add for sim operator -->
  60. <TextView
  61. android:id="@+id/tv_operator"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:visibility="gone"/>
  65. </com.android.keyguard.AlphaOptimizedLinearLayout>
  66. </com.android.systemui.statusbar.StatusBarMobileView>

欢迎关注我的英文公众号【十句英文】,每日1首英文金曲+10句英文,伴你共同进步。

微信扫一扫下方二维码即可关注:

Android9.0 SystemUI 网络信号栏定制修改的更多相关文章

  1. Android8.1 MTK平台 SystemUI源码分析之 网络信号栏显示刷新

    SystemUI系列文章 Android8.1 MTK平台 SystemUI源码分析之 Notification流程 Android8.1 MTK平台 SystemUI源码分析之 电池时钟刷新 And ...

  2. CentOS 6.0图解网络安装全过程

    转自CentOS 6.0图解网络安装全过程 国内镜像站点(东北大学.网易) 网易镜像站点:http://mirrors.163.com/centos/6.0/isos/ 中科大镜像站点:http:// ...

  3. Android9.0新特性曝光,你准备好了吗

    Android9.0最早出现在2018年1月25日的谷歌官网上,初步代号已经确定为“Pistachio Ice Cream”(开心果冰淇淋),不过按照Google的惯例,如此长的三个单词代号,通常都只 ...

  4. Android6.0之来电转接号码显示修改

    Android6.0之来电转接号码显示修改 手机来电转接界面是在,点开Dialer-搜索框右边的三个点-设置-通话账户(要先插卡)-中国移动或者中国联通--来电转接--第一行,显示始终转接 将所有来电 ...

  5. 基于网络的服装定制MTM系统研究 - 硕士论文 - 道客巴巴

    国内的mtm系统_百度搜索 基于网络的服装定制MTM系统研究 - 硕士论文 - 道客巴巴 PDF文档(共76页) - 下载需1800积分 天津工业大学 硕士学位论文基于网络的服装定制MTM系统研究 姓 ...

  6. SpUtil多样加密存储,兼容android9.0

    代码地址如下:http://www.demodashi.com/demo/15058.html 前言 在android系统不断升级的过程中,Sharepreferences存储出现多中问题,其中有些是 ...

  7. android9.0适配HTTPS:not permitted by network security policy'

    app功能接口正常,其他手机运行OK,但是在Android9.0的手机上报错 CLEARTEXT communication to 192.168.1.xx not permitted by netw ...

  8. EntityFramework 5.0 CodeFirst 教程02-删除和修改/架构改变异常的处理

    -----------------------------------------------------目录--------------------------------------------- ...

  9. TFS中工作项的定制-修改面板

    上一篇文章我们讲到了<TFS 中工作项的订制-修改工作流>,工作流只要我们设计出来,就可以进行定制修改了.这次通过简单的案例,了解一下,工作项的面板如何定制.     1.软件准备     ...

随机推荐

  1. B-概率论-条件概率

    目录 条件概率 一.条件概率简介 二.条件概率推广 更新.更全的<机器学习>的更新网站,更有python.go.数据结构与算法.爬虫.人工智能教学等着你:https://www.cnblo ...

  2. Python实现电子邮件的发送

    利用Python smtplib.SMTP类方法来实现电子邮件的发送. 列举SMTP对象常见的方法: sendmail(from, to ,msg[,mopts,ropts]) :将msg从from发 ...

  3. MySQL基础(五)常见运算符

    MySQL常见运算符 运算符连接表达式中各个操作数,其作用是用来指明对操作数所进行的运算.常见的运算有数学计算.比较运算.位运算以及逻辑运算.运用运算符可以更加灵活地使用表中的数据,常见的运算符类型有 ...

  4. vue-cli中使用jquery

    一.安装依赖 npm install jquery --save 二.全局导入(必须先安装依赖) 第一步 在webpack.base.conf.js里加入(新版的可能找不到这个文件,你可以npm in ...

  5. BBEdit 13.0 for Mac 打开大文件不吃力

    BBEdit 是一款拥有 16 年历史的 HTML 和文本编辑器,拥有高性能且流畅的文本处理能力,适用于 Web 和软件开发者,具备功能丰富且强大的智能搜索.代码折叠.FTP 和 SFTP 管理等功能 ...

  6. Python_箱型图绘制与特征值获取

    它主要用于反映原始数据分布的特征,还可以进行多组数据分布特征的比较 如何利用Python绘制箱型图 需要的import的包 import matplotlib.pyplot as plt from m ...

  7. .NET Core API后台架构搭建

    ASP.NET Core API后台架构搭建 项目文件:https://files.cnblogs.com/files/ZM191018/WebAPI.zip 本篇可以了解到: 依赖注入 Dapper ...

  8. GSS3 - Can you answer these queries III

    题意翻译 nnn 个数, qqq 次操作 操作0 x y把 AxA_xAx​ 修改为 yyy 操作1 l r询问区间 [l,r][l, r][l,r] 的最大子段和 感谢 @Edgration 提供的 ...

  9. 实用---GUI的搭建,windowbuilder的使用

    在进行GUI的搭建过程中,相信很多人对于一个图标的设置感觉写起来很麻烦,需要不断的添加,而在java中有一个windowbuilder窗口可以很好的帮助我们进行GUI的搭建 1.进入eclipse的页 ...

  10. pytest6-Fixture finalization / executing teardown code(使用yield来实现)

    Fixture finalization / executing teardown code By using a yield statement instead of return, all the ...