当前位置: 首页 > news >正文

怎么学习做网站网络营销有什么方式

怎么学习做网站,网络营销有什么方式,高端企业站,强化网站建设和监管Android 8.1 设置--声音中增加通话音量 近来收到项目需求&#xff0c;想要在设置--声音中增加一项通话音量调节&#xff0c;具体修改参照如下&#xff1a; /vendor/mediatek/proprietary/packages/apps/MtkSettings/res/values/strings.xml <!-- Sound: Title for the opt…

Android 8.1 设置--声音中增加通话音量

近来收到项目需求,想要在设置--声音中增加一项通话音量调节,具体修改参照如下:

/vendor/mediatek/proprietary/packages/apps/MtkSettings/res/values/strings.xml

+    <!-- Sound: Title for the option managing call volume. [CHAR LIMIT=30] -->
+    <string name="call_volume_option_title">Call volume</string>

/vendor/mediatek/proprietary/packages/apps/MtkSettings/res/values-zh-rCN/strings.xml

+    <string name="call_volume_option_title">"通话音量"</string>

/vendor/mediatek/proprietary/packages/apps/MtkSettings/res/drawable/ic_volume_voice.xml

<!--Copyright (C) 2015 The Android Open Source ProjectLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"android:height="24.0dp"android:viewportHeight="48.0"android:viewportWidth="48.0"android:width="24.0dp"android:tint="?android:attr/colorControlNormal" ><pathandroid:fillColor="#FFFFFF"android:pathData="M13.25,21.59c2.88,5.66 7.51,10.29 13.18,13.17l4.4,-4.41c0.55,-0.55 1.34,-0.71 2.03,-0.49C35.1,30.6 37.51,31.0 40.0,31.0c1.11,0.0 2.0,0.89 2.0,2.0l0.0,7.0c0.0,1.11 -0.89,2.0 -2.0,2.0C21.22,42.0 6.0,26.78 6.0,8.0c0.0,-1.1 0.9,-2.0 2.0,-2.0l7.0,0.0c1.11,0.0 2.0,0.89 2.0,2.0 0.0,2.4 0.4,4.9 1.14,7.1 0.2,0.6 0.06,1.48 -0.49,2.03l-4.4,4.42z" /></vector>

/vendor/mediatek/proprietary/packages/apps/MtkSettings/res/xml/sound_settings.xml

+        <!-- Call volume -->
+        <com.android.settings.notification.VolumeSeekBarPreference
+                android:key="call_volume"
+                android:icon="@drawable/ic_volume_voice"
+                android:title="@string/call_volume_option_title" />

/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/notification/CallVolumePreferenceController.java

/** Copyright (C) 2016 The Android Open Source Project** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at**      http://www.apache.org/licenses/LICENSE-2.0** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an "AS IS" BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.* See the License for the specific language governing permissions and* limitations under the License.*/package com.android.settings.notification;import android.content.Context;
import android.media.AudioManager;import com.android.internal.annotations.VisibleForTesting;
import com.android.settings.notification.VolumeSeekBarPreference.Callback;
import com.android.settingslib.core.lifecycle.Lifecycle;
import com.android.settings.R;public class CallVolumePreferenceController extendsVolumeSeekBarPreferenceController {private static final String KEY_CALL_VOLUME = "call_volume";private AudioHelper mHelper;public CallVolumePreferenceController(Context context, Callback callback,Lifecycle lifecycle) {this(context, callback, lifecycle, new AudioHelper(context));}@VisibleForTestingCallVolumePreferenceController(Context context, Callback callback, Lifecycle lifecycle,AudioHelper helper) {super(context, callback, lifecycle);mHelper = helper;}@Overridepublic boolean isAvailable() {return !mHelper.isSingleVolume();}@Overridepublic String getPreferenceKey() {return KEY_CALL_VOLUME;}@Overridepublic int getAudioStream() {return AudioManager.STREAM_VOICE_CALL;}@Overridepublic int getMuteIcon() {return R.drawable.ic_volume_voice;}}

/vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/notification/SoundSettings.java

    private static List<AbstractPreferenceController> buildPreferenceControllers(Context context,SoundSettings fragment, VolumeSeekBarPreference.Callback callback,Lifecycle lifecycle) {final List<AbstractPreferenceController> controllers = new ArrayList<>();controllers.add(new ZenModePreferenceController(context));controllers.add(new EmergencyBroadcastPreferenceController(context, KEY_CELL_BROADCAST_SETTINGS));controllers.add(new VibrateWhenRingPreferenceController(context));// === Volumes ===controllers.add(new AlarmVolumePreferenceController(context, callback, lifecycle));
+        controllers.add(new CallVolumePreferenceController(context, callback, lifecycle));

重新编译验证,修改生效,设置--声音中已增加通话音量调节项

http://www.hengruixuexiao.com/news/42800.html

相关文章:

  • 中小学门户网站建设网络营销形式
  • 企业怎么在网站上做宣传搜索引擎优化公司排行
  • wordpress安装显示空白页seozhun
  • 网站提交链接入口高端营销型网站
  • 服务类网站模板网络推广公司是做什么的
  • 手机网站开发 教程个人怎么做免费百度推广
  • 深圳网站建设外包公司哪家好市场推广方案范文
  • 做推文网站除了秀米还要什么软文营销
  • 北京网页制作培训学校xp优化大师
  • 衡阳做网站的上海百度seo点击软件
  • 免费b站不收费网站2023简述影响关键词优化的因素
  • 开通招聘网站如何做分录网络营销买什么好
  • 网站的根目录的路径google adwords
  • 网站开发的经验网站域名查询ip
  • 移动网站建设多少钱东莞网络营销推广软件
  • web网站开发工具软文推广什么意思
  • 网站的备案seo门户网站建设方案
  • 自助游网站开发分析报告总结北京网站推广服务
  • 做捐款网站seo测试工具
  • 如何让自己的网站排名靠前硬件优化大师下载
  • seo网站内容舆情监测系统
  • 网站载入页面怎么做windows优化大师破解版
  • 哪些网站可以做签约设计师泉州百度搜索推广
  • 跨境电商平台下载优化用户体验
  • 中山网站建设公司seo优化网络公司排名
  • 网站域名跳转怎么做郑州seo优化培训
  • 做外贸的怎样才能上国外网站seo搜索优化待遇
  • 平台和网站有什么区别长春百度推广电话
  • 零售网站制作河南省最新通知
  • 信宜网站建设公司站外推广怎么做