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_4x_info.xml

77 lines
2.8 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"?>
<!-- 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.
-->
<!--
======================= 4x4便签小部件配置文件 =======================
文件widget_4x_info.xml
对应NoteWidgetProvider_4x 小部件提供者
引用在AndroidManifest.xml的meta-data中引用
作用定义4x4便签小部件在桌面上的基本属性
-->
<!--
======================= 小部件提供者配置元素 =======================
appwidget-providerAndroid小部件配置的核心元素
包含小部件的基本属性定义
-->
<appwidget-provider
xmlns:android="http://schemas.android.com/apk/res/android"
android:initialLayout="@layout/widget_4x"
android:minWidth="294dip"
android:minHeight="294dip">
</appwidget-provider>
<!--
======================= Android框架命名空间 =======================
xmlns:android声明Android框架的XML命名空间
标准的Android命名空间URI
作用启用Android特定的XML属性和资源引用
位置必须是appwidget-provider的第一个属性
-->
<!--
======================= 4x4小部件初始布局 =======================
android:initialLayout指定小部件的初始布局文件
值:@layout/widget_4x
对应文件res/layout/widget_4x.xml
内容4x4便签小部件的界面布局
包含:背景图片、便签文本显示、点击区域
-->
<!--
======================= 4x4小部件最小宽度 =======================
android:minWidth定义小部件在桌面网格中的最小宽度
294dip (density-independent pixels)
计算4个网格单元格 × 74dp ≈ 296dp
实际294dp (考虑边距和渲染误差)
单位dip等同于dp旧版Android使用的单位
作用确保小部件至少占用4个网格宽度
-->
<!--
======================= 4x4小部件最小高度 =======================
android:minHeight定义小部件在桌面网格中的最小高度
294dip
计算与宽度相同4×74≈296dp
实际294dp
设计:正方形小部件,宽度和高度相等
布局4×4网格提供较大的显示区域
-->