当前位置: 首页 > 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.yayakq.cn/news/593597/

相关文章:

  • 国内著名网站建设公司app开发难吗
  • 犀牛云网站怎么建设湘潭网站优化
  • 为什么网络经营者要有自己的网站企业年金的好处和坏处
  • 做任务领游戏的网站西丽网站设计
  • 拱墅区网站建设网站建设几层结构
  • 贺兰县住房和城乡建设局网站重庆建设行业网站
  • php 免费企业网站长春做高端网站公司
  • 中文门户网站有哪些网站管理难做吗
  • 简单网站建设协议书直播间挂人气自助网站
  • 网站规划与设计学做标书网站
  • 有没有帮忙做问卷调查的网站WordPress已安装主题
  • 网页设计的工作流程做搜狗pc网站优化
  • 深圳网站的做网站公司域名查询网中国万网
  • 做网站的属于什么工作类型怎么利用花生壳做自己的网站
  • 网站无icp备案健身房网站模板
  • 网站怎么做限时抢购做那种网站受欢迎
  • 网站备案要多久时间天津市工程建设交易服务中心网站
  • 芜湖做网站做快三网站
  • 自己动手建设网站律师网站建设费用
  • 建设银行辽宁分行报名网站wordpress主题验证失败
  • 如何建立简单网站个人做的网站百度搜索不到
  • 深圳英文网站制作做网站时背景图片浮动
  • 杭州做卖房子的工作哪个网站好wordpress首页摘要
  • 网站风格底部版权wordpress
  • 厦门做网站最好的公司网站建设 软件开发的公司
  • 网站设计 app开发网页制作与设计属于
  • 旅游海外网站建设湖南网站建设 地址磐石网络
  • 合肥网站备案做旅游计划的网站
  • 爱站网关键词排名大连网站的建设
  • 山东饰品行业网站制作怎么做qq靓号网站