You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
git/res/xml/widget_2x_info.xml

72 lines
2.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?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
功能:定义小部件在桌面的最小高度
设计:正方形小部件,宽度高度相等
-->