android工程配置文件config.xml

android程序有时需要保存一些配置,如某些固定url,界面元素的配置等,可以将这些配置项放在values/config.xml中,如系统源码中android-4.0.1/packages/SystemUI/res/values/config.xml文件:


01 <?xml version="1.0" encoding="utf-8"?>
02 <!--
03 /**
04 ** Copyright 2009, The Android Open Source Project
05 **
06 ** Licensed under the Apache License, Version 2.0 (the "License");
07 ** you may not use this file except in compliance with the License.
08 ** You may obtain a copy of the License at
09 **
10 **     http://www.apache.org/licenses/LICENSE-2.0
11 **
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
17 */
18 -->
19  
20 <!-- These resources are around just to allow their values to be customized
21      for different hardware and product builds. -->
22 <resources>
23  
24     <!-- Whether we're using the tablet-optimized recents interface (we use this
25      value at runtime for some things) -->
26     <bool name="config_recents_interface_for_tablets">false</bool>
27  
28     <!-- Control whether status bar should distinguish HSPA data icon form UMTS
29     data icon on devices -->
30     <bool name="config_hspa_data_distinguishable">false</bool>
31  
32     <!-- Component to be used as the status bar service.  Must implement the IStatusBar
33      interface.  This name is in the ComponentName flattened format (package/class)  -->
34     <string name="config_statusBarComponent"translatable="false">com.android.systemui.statusbar.phone.PhoneStatusBar</string>
35  
36     <!-- Component to be used as the system bar service.  Must implement the IStatusBar
37      interface.  This name is in the ComponentName flattened format (package/class)  -->
38     <string name="config_systemBarComponent"translatable="false">com.android.systemui.statusbar.tablet.TabletStatusBar</string>
39  
40     <!-- Whether or not we show the number in the bar. -->
41     <bool name="config_statusBarShowNumber">false</bool>
42  
43     <!-- How many icons may be shown at once in the system bar. Includes any
44          slots that may be reused for things like IME control. -->
45     <integer name="config_maxNotificationIcons">5</integer>
46 </resources>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值