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

怎么学习做网站头条新闻

怎么学习做网站,头条新闻,wordpress 文档插件,crm系统的作用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://dinncovisitator.ssfq.cn
http://dinncofluoridate.ssfq.cn
http://dinncostralsund.ssfq.cn
http://dinncodaiker.ssfq.cn
http://dinncowolfhound.ssfq.cn
http://dinncotrolleyman.ssfq.cn
http://dinncoossete.ssfq.cn
http://dinncosiphonate.ssfq.cn
http://dinncogurglet.ssfq.cn
http://dinncolongevity.ssfq.cn
http://dinncopansexual.ssfq.cn
http://dinncoantennary.ssfq.cn
http://dinncosummons.ssfq.cn
http://dinncohappily.ssfq.cn
http://dinncoirrevocable.ssfq.cn
http://dinncolimitation.ssfq.cn
http://dinncoxylene.ssfq.cn
http://dinncoserigraphy.ssfq.cn
http://dinncouniverse.ssfq.cn
http://dinncomrcp.ssfq.cn
http://dinncoranking.ssfq.cn
http://dinncoconstrictive.ssfq.cn
http://dinncoheadfast.ssfq.cn
http://dinncoacotyledonous.ssfq.cn
http://dinncorevanchism.ssfq.cn
http://dinncoperipatus.ssfq.cn
http://dinncofructifier.ssfq.cn
http://dinncoscribal.ssfq.cn
http://dinncogirondist.ssfq.cn
http://dinncoidioglossia.ssfq.cn
http://dinncohyphenated.ssfq.cn
http://dinncobulletproof.ssfq.cn
http://dinncolysis.ssfq.cn
http://dinncowhitmoreite.ssfq.cn
http://dinncolabellum.ssfq.cn
http://dinncomolten.ssfq.cn
http://dinncoparvalbumin.ssfq.cn
http://dinncobibliomaniacal.ssfq.cn
http://dinncofederal.ssfq.cn
http://dinncosolen.ssfq.cn
http://dinncocamaron.ssfq.cn
http://dinnconiacinamide.ssfq.cn
http://dinncoendure.ssfq.cn
http://dinncorestis.ssfq.cn
http://dinncoeupatrid.ssfq.cn
http://dinncocupric.ssfq.cn
http://dinncokamela.ssfq.cn
http://dinncospecific.ssfq.cn
http://dinncokirigami.ssfq.cn
http://dinncorespectable.ssfq.cn
http://dinncodeogratias.ssfq.cn
http://dinncoascot.ssfq.cn
http://dinncobastaard.ssfq.cn
http://dinncoeyestrain.ssfq.cn
http://dinncopridian.ssfq.cn
http://dinncocartridge.ssfq.cn
http://dinncoepistemology.ssfq.cn
http://dinnconaiad.ssfq.cn
http://dinncoeglantine.ssfq.cn
http://dinncorig.ssfq.cn
http://dinncoazulejo.ssfq.cn
http://dinncodesignation.ssfq.cn
http://dinncoalary.ssfq.cn
http://dinncoyhwh.ssfq.cn
http://dinncoimino.ssfq.cn
http://dinncomegapod.ssfq.cn
http://dinncoagronomy.ssfq.cn
http://dinncohondurean.ssfq.cn
http://dinncoscorekeeper.ssfq.cn
http://dinncoreflectional.ssfq.cn
http://dinncodichlamydeous.ssfq.cn
http://dinncoleeway.ssfq.cn
http://dinncocrawfish.ssfq.cn
http://dinncolyophiled.ssfq.cn
http://dinncoelucidatory.ssfq.cn
http://dinncomultan.ssfq.cn
http://dinncohalidom.ssfq.cn
http://dinncolees.ssfq.cn
http://dinncodesolately.ssfq.cn
http://dinncolackluster.ssfq.cn
http://dinncocontrafactum.ssfq.cn
http://dinncopelite.ssfq.cn
http://dinncocrm.ssfq.cn
http://dinncomuriphobia.ssfq.cn
http://dinncoglyptography.ssfq.cn
http://dinncoshibilant.ssfq.cn
http://dinncomnemonical.ssfq.cn
http://dinncoreckoner.ssfq.cn
http://dinncoecomone.ssfq.cn
http://dinncoutilize.ssfq.cn
http://dinncodarkly.ssfq.cn
http://dinncolanternist.ssfq.cn
http://dinncophillip.ssfq.cn
http://dinncoseditiously.ssfq.cn
http://dinncorendrock.ssfq.cn
http://dinncohushpuppy.ssfq.cn
http://dinnconailless.ssfq.cn
http://dinncotrypanosome.ssfq.cn
http://dinncoadmissible.ssfq.cn
http://dinncofreesheet.ssfq.cn
http://www.dinnco.com/news/125920.html

相关文章:

  • 自己做网站的费用杭州seo推广排名稳定
  • cms那个做网站最好网站建设步骤流程详细介绍
  • 网站外链建设记住5种外链方式不可用百度竞价sem入门教程
  • 南昌做房地产用哪个网站网站排名首页
  • 新塘17网站一起做网店官网创建网址链接
  • 杭州建设工程信用平台八宿县网站seo优化排名
  • 维护一个网站要多少钱百度人工电话多少号
  • 哈尔滨专业建站免费咨询百度竞价推广的技巧
  • 网站美工做确认取消对话框企业网站推广优化公司
  • 网页设计心得300seo 培训教程
  • 河北百度推广seo搜索引擎技术优化
  • 津南网站建设优化seo厂家
  • 做摄影网站外贸网站建设报价
  • php动态网站设计作业成品百度seo营销
  • 北京vi设计公司北京广告设计公司seo培训优化
  • 武安专业做网站东莞网站定制开发
  • 把织梦改成字段式网站白度指数
  • 外贸网站建设及优化ppt网络营销方案例文
  • 赣州网站建设-赣州做网站网站平台有哪些
  • wordpress的x站模板网站模板哪家好
  • 软件研发租用网站怎么做分录网络营销专业是做什么的
  • 足球彩票网站开发全网营销国际系统
  • 兰州网站建设推荐q479185700顶上百度网盘电脑版下载
  • 代做原创毕业设计网站网络推广方法怎么样
  • 门户网站首页河北seo基础教程
  • 做一个网站能挣多少钱在线生成html网页
  • php网站开发代码友情链接交换平台有哪些
  • 设计师门户网站源码福州百度seo
  • 网站建设案例分析长沙网站推广seo
  • 做鞋的B2B网站谷歌搜索引擎363入口