|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
<!--
|
|
|
============================================================================
|
|
|
widget_2x_info.xml - 2x2便签小部件配置
|
|
|
============================================================================
|
|
|
位置:res/xml/widget_2x_info.xml
|
|
|
功能:定义2x2便签小部件的基本属性
|
|
|
============================================================================
|
|
|
Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
|
|
|
|
|
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.
|
|
|
============================================================================
|
|
|
-->
|
|
|
|
|
|
<!--
|
|
|
======================= 2x2小部件提供者配置 =======================
|
|
|
文件:widget_2x_info.xml
|
|
|
用途:配置NoteWidgetProvider_2x小部件的元数据
|
|
|
关联:AndroidManifest.xml中的meta-data引用此文件
|
|
|
-->
|
|
|
|
|
|
<appwidget-provider
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:initialLayout="@layout/widget_2x"
|
|
|
android:minWidth="146dip"
|
|
|
android:minHeight="146dip">
|
|
|
</appwidget-provider>
|
|
|
<!--
|
|
|
======================= Android命名空间 =======================
|
|
|
属性:xmlns:android
|
|
|
值:http://schemas.android.com/apk/res/android
|
|
|
功能:声明Android框架的XML命名空间
|
|
|
-->
|
|
|
|
|
|
|
|
|
<!--
|
|
|
======================= 小部件初始布局 =======================
|
|
|
属性:android:initialLayout
|
|
|
值:@layout/widget_2x
|
|
|
功能:指定小部件使用的布局文件
|
|
|
布局:R.layout.widget_2x 定义2x2小部件界面
|
|
|
-->
|
|
|
|
|
|
|
|
|
<!--
|
|
|
======================= 小部件最小宽度 =======================
|
|
|
属性:android:minWidth
|
|
|
值:146dip
|
|
|
功能:定义小部件在桌面的最小宽度
|
|
|
计算:2个网格单元格 × 74dp ≈ 146dp
|
|
|
-->
|
|
|
|
|
|
|
|
|
<!--
|
|
|
======================= 小部件最小高度 =======================
|
|
|
属性:android:minHeight
|
|
|
值:146dip
|
|
|
功能:定义小部件在桌面的最小高度
|
|
|
设计:正方形小部件,宽度高度相等
|
|
|
-->
|