上文:https://blog.csdn.net/u013574207/article/details/127102294
首先先自定义一个top_level_settings_custom.xml文件
将想隐藏的与不想隐藏的分为两个xml文件,然后进行操作,如注释掉不想要显示的即可:
如top_level_settings_custom.xml
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2018 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
limitation