Android Settings 去除振动功能

阅读: 评论:0

Android Settings 去除振动功能

Android Settings 去除振动功能

文章目录

    • 一丶去除:设置->声音->其他提示音->:触摸提示音选项
    • 二丶去除:设置->声音->其他提示音->:充电提示音和振动 改为 充电提示音
    • 三丶去除:振动和触感强度选项
    • 四丶去除:振动相关选项
    • 五丶去除:设置->声音->阻止响铃的快捷方式->:有振动和静音两个选项,去除振动选项

一丶去除:设置->声音->其他提示音->:触摸提示音选项

packages/apps/Settings/res/xml/l
去除选项:设置->声音->其他提示音->:触摸提示音选项

++ <!--        &lt;!&ndash; Touch sounds &ndash;&gt;-->
++ <!--        <SwitchPreference-->
++ <!--          android:key="touch_sounds"-->
++ <!--          android:title="@string/touch_sounds_title"/>-->

packages/apps/Settings/res/xml/other_l
去除选项:设置->声音->其他提示音->:触摸提示音选项

++ <!-- Touch sounds -->
++ <!--    <SwitchPreference-->
++ <!--            android:key="touch_sounds"-->
++ <!--            android:title="@string/touch_sounds_title" />-->

packages/apps/Settings/res/l
去除选项:设置->声音->其他提示音->:触摸提示音选项

 ++   <!-- Sound: Other sounds: Title for the option enabling touch sounds. [CHAR LIMIT=30] -->++   <!--    <string name="touch_sounds_title">Touch sounds</string>-->

packages/apps/Settings/res/l
去除选项:设置->声音->其他提示音->:触摸提示音选项

++ <!--    <string name="touch_sounds_title" msgid="2200734041857425078">"Imisindo yokuthinta"</string>-->

packages/apps/Settings/res/l
packages/apps/Settings/res/l
packages/apps/Settings/res/l
同理

二丶去除:设置->声音->其他提示音->:充电提示音和振动 改为 充电提示音

packages/apps/Settings/res/l
修改字样:设置->声音->其他提示音->:充电提示音和振动 改为 充电提示音

++    <string name="charging_sounds_title">Charging sounds</string>

packages/apps/Settings/res/l
修改字样:设置->声音->其他提示音->:充电提示音和振动 改为 充电提示音

++    <string name="charging_sounds_title" msgid="5261683808537783668">"Imisindo yokushaja"</string>
++    <string name="docking_sounds_title" msgid="5341616179210436159">"Imisindo yokudokha"</string>

packages/apps/Settings/res/l
packages/apps/Settings/res/l
packages/apps/Settings/res/l
同理

三丶去除:振动和触感强度选项

packages/apps/Settings/res/xml/l
去除振动和触感强度选项

++ <!--        <Preference-->
++ <!--            android:fragment="com.android.settings.accessibility.VibrationSettings"-->
++ <!--            android:key="vibration_preference_screen"-->
++ <!--            android:persistent="false"-->
++ <!--            android:title="@string/accessibility_vibration_settings_title"-->
++ <!--            settings:controller="com.android.settings.accessibility.VibrationPreferenceController"/>-->

四丶去除:振动相关选项

packages/apps/Settings/res/xml/other_l
去除选项:振动相关选项

++ <!--        &lt;!&ndash; Vibrate on touch &ndash;&gt;-->
++ <!--        <SwitchPreference-->
++ <!--          android:key="vibrate_on_touch"-->
++ <!--          android:title="@string/vibrate_on_touch_title"-->
++ <!--          android:summary="@string/vibrate_on_touch_summary"-->
++ <!--          settings:keywords="@string/keywords_vibrate_on_touch"/>-->

packages/apps/Settings/res/xml/other_l
去除选项:振动相关选项

++    <!-- Vibrate on touch -->
++ <!--    <SwitchPreference-->
++ <!--            android:key="vibrate_on_touch"-->
++ <!--            android:title="@string/vibrate_on_touch_title"-->
++ <!--            android:summary="@string/vibrate_on_touch_summary" />-->

packages/apps/Settings/res/l
去除振动字样

++    <string name="other_sound_category_preference_title">Other sounds</string>

packages/apps/Settings/res/l
去除振动字样

++    <string name="other_sound_category_preference_title" msgid="8182757473602586634">"Eminye imisindo"</string>

packages/apps/Settings/res/l
packages/apps/Settings/res/l
packages/apps/Settings/res/l
同理

五丶去除:设置->声音->阻止响铃的快捷方式->:有振动和静音两个选项,去除振动选项

packages/apps/Settings/src/com/android/settings/gestures/PreventRingingParentPreferenceController.java

 @Overridepublic CharSequence getSummary() {int value = ContentResolver(), SECURE_KEY, VOLUME_HUSH_VIBRATE);int summary;switch (value) {
++ //            case VOLUME_HUSH_VIBRATE:
++ //                summary = R.string.prevent_ringing_option_vibrate_summary;
++ //                break;case VOLUME_HUSH_MUTE:summary = R.string.prevent_ringing_option_mute_summary;break;default:summary = R.string.prevent_ringing_option_none_summary;}Text(summary);}

packages/apps/Settings/src/com/android/settings/gestures/PreventRingingGesturePreferenceController.java

 @Overridepublic void displayPreference(PreferenceScreen screen) {super.displayPreference(screen);if (!isAvailable()) {return;}mPreferenceCategory = screen.findPreference(getPreferenceKey());mVibratePref = makeRadioPreference(KEY_VIBRATE, R.string.prevent_ringing_option_vibrate);mMutePref = makeRadioPreference(KEY_MUTE, R.string.prevent_ringing_option_mute);++        vePreference(mVibratePref);if (mPreferenceCategory != null) {mSettingObserver = new SettingObserver(mPreferenceCategory);}mVideoPreference = screen.findPreference(getVideoPrefKey());}

packages/apps/Settings/res/xml/other_l
packages/apps/Settings/res/xml/l
packages/apps/Settings/res/l
packages/apps/Settings/res/l
packages/apps/Settings/res/l
packages/apps/Settings/res/l
packages/apps/Settings/res/l
同理

Settings 开发系列:
Android Settings 去除振动功能
Android Settings 去除自动旋转屏幕
Android Settings 使设置主界面可以被键盘上下键所选中
Android Settings 取消全选效果改为直接选中选项

本文发布于:2024-01-31 07:39:10,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170665795326761.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:功能   Android   Settings
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23