android工程配置文件config.xml

来源:互联网 发布:sqlite数据库下载 编辑:程序博客网 时间:2024/05/17 20:33

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 0