diff --git a/README.md b/README.md index 42cb7ed..d45aaac 100644 --- a/README.md +++ b/README.md @@ -2,256 +2,3 @@ There is Xiaomi-note~ -``` -/* - * Copyright (c) 2010 - 2011, The MiCode Open Source Community (www.micode.net) - * - * 版权所有 (c) 2010 - 2011,蜜课开源社区(www.micode.net) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * 你可以在遵守 Apache 许可证 2.0 版本(以下简称“许可证”)的前提下使用本文件。 - * 你可以在以下网址获取许可证副本: - * - * 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. - * - * 除非适用法律要求或书面同意,否则根据本许可证分发的软件按“原样”分发, - * 不附带任何形式的明示或暗示的保证和条件。 - * 请参阅许可证以获取管理权限和限制的具体语言规定。 - */ - -package net.micode.notes.widget; -// 包名:net.micode.notes.widget - -import android.app.PendingIntent; -// 导入 Android 应用中的 PendingIntent 类,用于在未来某个时间执行的意图 -import android.appwidget.AppWidgetManager; -// 导入 Android 应用小部件管理类,用于管理应用小部件的更新、删除等操作 -import android.appwidget.AppWidgetProvider; -// 导入 Android 应用小部件提供者基类,用于处理应用小部件的各种生命周期事件 -import android.content.ContentValues; -// 导入 Android 内容值类,用于存储要插入或更新到 ContentProvider 中的数据 -import android.content.Context; -// 导入 Android 上下文类,提供对应用资源和类的访问权限 -import android.content.Intent; -// 导入 Android 意图类,用于在组件之间传递消息 -import android.database.Cursor; -// 导入 Android 数据库游标类,用于遍历查询结果集 -import android.util.Log; -// 导入 Android 日志工具类,用于记录应用运行时的日志信息 -import android.widget.RemoteViews; -// 导入 Android 远程视图类,用于在应用小部件中显示布局 - -import net.micode.notes.R; -// 导入蜜课笔记应用的资源类 -import net.micode.notes.data.Notes; -// 导入蜜课笔记应用的数据类,包含笔记相关的常量和方法 -import net.micode.notes.data.Notes.NoteColumns; -// 导入蜜课笔记应用的笔记列常量类,定义了笔记表的列名 -import net.micode.notes.tool.ResourceParser; -// 导入蜜课笔记应用的资源解析工具类 -import net.micode.notes.ui.NoteEditActivity; -// 导入蜜课笔记应用的笔记编辑活动类 -import net.micode.notes.ui.NotesListActivity; -// 导入蜜课笔记应用的笔记列表活动类 - -/** - * 笔记小部件提供者的抽象基类,继承自 AppWidgetProvider,用于处理笔记小部件的更新和删除操作。 - */ -public abstract class NoteWidgetProvider extends AppWidgetProvider { - // 定义查询笔记信息时使用的投影列数组 - public static final String [] PROJECTION = new String [] { - NoteColumns.ID, - // 笔记的 ID 列 - NoteColumns.BG_COLOR_ID, - // 笔记的背景颜色 ID 列 - NoteColumns.SNIPPET - // 笔记的摘要列 - }; - - // 定义投影列数组中各列的索引 - public static final int COLUMN_ID = 0; - // ID 列的索引 - public static final int COLUMN_BG_COLOR_ID = 1; - // 背景颜色 ID 列的索引 - public static final int COLUMN_SNIPPET = 2; - // 摘要列的索引 - - // 定义日志标签 - private static final String TAG = "NoteWidgetProvider"; - - /** - * 当小部件被删除时调用此方法。 - * - * @param context 上下文对象 - * @param appWidgetIds 被删除的小部件 ID 数组 - */ - @Override - public void onDeleted(Context context, int[] appWidgetIds) { - // 创建一个 ContentValues 对象,用于存储要更新的数据 - ContentValues values = new ContentValues(); - // 将小部件 ID 设置为无效值 - values.put(NoteColumns.WIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID); - // 遍历被删除的小部件 ID 数组 - for (int i = 0; i < appWidgetIds.length; i++) { - // 更新数据库中对应小部件 ID 的笔记记录,将小部件 ID 设置为无效值 - context.getContentResolver().update(Notes.CONTENT_NOTE_URI, - values, - NoteColumns.WIDGET_ID + "=?", - new String[] { String.valueOf(appWidgetIds[i])}); - } - } - - /** - * 获取指定小部件 ID 对应的笔记信息。 - * - * @param context 上下文对象 - * @param widgetId 小部件 ID - * @return 包含笔记信息的游标对象 - */ - private Cursor getNoteWidgetInfo(Context context, int widgetId) { - // 查询数据库,获取指定小部件 ID 且不在回收站中的笔记信息 - return context.getContentResolver().query(Notes.CONTENT_NOTE_URI, - PROJECTION, - NoteColumns.WIDGET_ID + "=? AND " + NoteColumns.PARENT_ID + "<>?", - new String[] { String.valueOf(widgetId), String.valueOf(Notes.ID_TRASH_FOLER) }, - null); - } - - /** - * 更新小部件的显示内容。 - * - * @param context 上下文对象 - * @param appWidgetManager 应用小部件管理器 - * @param appWidgetIds 要更新的小部件 ID 数组 - */ - protected void update(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { - // 调用重载的 update 方法,隐私模式设置为 false - update(context, appWidgetManager, appWidgetIds, false); - } - - /** - * 更新小部件的显示内容,可指定是否开启隐私模式。 - * - * @param context 上下文对象 - * @param appWidgetManager 应用小部件管理器 - * @param appWidgetIds 要更新的小部件 ID 数组 - * @param privacyMode 是否开启隐私模式 - */ - private void update(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds, - boolean privacyMode) { - // 遍历要更新的小部件 ID 数组 - for (int i = 0; i < appWidgetIds.length; i++) { - // 检查小部件 ID 是否有效 - if (appWidgetIds[i] != AppWidgetManager.INVALID_APPWIDGET_ID) { - // 获取默认的背景颜色 ID - int bgId = ResourceParser.getDefaultBgId(context); - // 初始化笔记摘要为空字符串 - String snippet = ""; - // 创建一个意图,用于启动笔记编辑活动 - Intent intent = new Intent(context, NoteEditActivity.class); - // 设置意图标志,确保活动以单顶模式启动 - intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); - // 将小部件 ID 作为额外数据添加到意图中 - intent.putExtra(Notes.INTENT_EXTRA_WIDGET_ID, appWidgetIds[i]); - // 将小部件类型作为额外数据添加到意图中 - intent.putExtra(Notes.INTENT_EXTRA_WIDGET_TYPE, getWidgetType()); - - // 获取指定小部件 ID 对应的笔记信息 - Cursor c = getNoteWidgetInfo(context, appWidgetIds[i]); - // 检查游标是否不为空且至少有一条记录 - if (c != null && c.moveToFirst()) { - // 检查是否存在多条具有相同小部件 ID 的记录 - if (c.getCount() > 1) { - // 记录错误日志 - Log.e(TAG, "Multiple message with same widget id:" + appWidgetIds[i]); - // 关闭游标 - c.close(); - return; - } - // 获取笔记摘要 - snippet = c.getString(COLUMN_SNIPPET); - // 获取笔记背景颜色 ID - bgId = c.getInt(COLUMN_BG_COLOR_ID); - // 将笔记 ID 作为额外数据添加到意图中 - intent.putExtra(Intent.EXTRA_UID, c.getLong(COLUMN_ID)); - // 设置意图动作为查看 - intent.setAction(Intent.ACTION_VIEW); - } else { - // 如果没有找到对应的笔记信息,设置默认摘要 - snippet = context.getResources().getString(R.string.widget_havenot_content); - // 设置意图动作为插入或编辑 - intent.setAction(Intent.ACTION_INSERT_OR_EDIT); - } - - // 检查游标是否不为空,如果不为空则关闭游标 - if (c != null) { - c.close(); - } - - // 创建一个远程视图对象,用于显示小部件的布局 - RemoteViews rv = new RemoteViews(context.getPackageName(), getLayoutId()); - // 设置小部件背景图片资源 - rv.setImageViewResource(R.id.widget_bg_image, getBgResourceId(bgId)); - // 将背景颜色 ID 作为额外数据添加到意图中 - intent.putExtra(Notes.INTENT_EXTRA_BACKGROUND_ID, bgId); - /** - * 生成用于启动小部件宿主的待定意图 - */ - PendingIntent pendingIntent = null; - // 检查是否开启隐私模式 - if (privacyMode) { - // 设置小部件文本为隐私模式提示信息 - rv.setTextViewText(R.id.widget_text, - context.getString(R.string.widget_under_visit_mode)); - // 创建一个待定意图,用于启动笔记列表活动 - pendingIntent = PendingIntent.getActivity(context, appWidgetIds[i], new Intent( - context, NotesListActivity.class), PendingIntent.FLAG_UPDATE_CURRENT); - } else { - // 设置小部件文本为笔记摘要 - rv.setTextViewText(R.id.widget_text, snippet); - // 创建一个待定意图,用于启动笔记编辑活动 - pendingIntent = PendingIntent.getActivity(context, appWidgetIds[i], intent, - PendingIntent.FLAG_UPDATE_CURRENT); - } - - // 设置小部件文本的点击事件为待定意图 - rv.setOnClickPendingIntent(R.id.widget_text, pendingIntent); - // 更新指定小部件 ID 的小部件显示内容 - appWidgetManager.updateAppWidget(appWidgetIds[i], rv); - } - } - } - - /** - * 获取指定背景颜色 ID 对应的背景资源 ID。 - * 该方法为抽象方法,需要子类实现。 - * - * @param bgId 背景颜色 ID - * @return 背景资源 ID - */ - protected abstract int getBgResourceId(int bgId); - - /** - * 获取小部件的布局 ID。 - * 该方法为抽象方法,需要子类实现。 - * - * @return 布局 ID - */ - protected abstract int getLayoutId(); - - /** - * 获取小部件的类型。 - * 该方法为抽象方法,需要子类实现。 - * - * @return 小部件类型 - */ - protected abstract int getWidgetType(); -} -``` - diff --git a/widge.java代码文件翻译.md b/widge.java代码文件翻译.md new file mode 100644 index 0000000..68296b0 --- /dev/null +++ b/widge.java代码文件翻译.md @@ -0,0 +1,253 @@ +```java +/* + * Copyright (c) 2010 - 2011, The MiCode Open Source Community (www.micode.net) + * + * 版权所有 (c) 2010 - 2011,蜜课开源社区(www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * 你可以在遵守 Apache 许可证 2.0 版本(以下简称“许可证”)的前提下使用本文件。 + * 你可以在以下网址获取许可证副本: + * + * 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. + * + * 除非适用法律要求或书面同意,否则根据本许可证分发的软件按“原样”分发, + * 不附带任何形式的明示或暗示的保证和条件。 + * 请参阅许可证以获取管理权限和限制的具体语言规定。 + */ + +package net.micode.notes.widget; +// 包名:net.micode.notes.widget + +import android.app.PendingIntent; +// 导入 Android 应用中的 PendingIntent 类,用于在未来某个时间执行的意图 +import android.appwidget.AppWidgetManager; +// 导入 Android 应用小部件管理类,用于管理应用小部件的更新、删除等操作 +import android.appwidget.AppWidgetProvider; +// 导入 Android 应用小部件提供者基类,用于处理应用小部件的各种生命周期事件 +import android.content.ContentValues; +// 导入 Android 内容值类,用于存储要插入或更新到 ContentProvider 中的数据 +import android.content.Context; +// 导入 Android 上下文类,提供对应用资源和类的访问权限 +import android.content.Intent; +// 导入 Android 意图类,用于在组件之间传递消息 +import android.database.Cursor; +// 导入 Android 数据库游标类,用于遍历查询结果集 +import android.util.Log; +// 导入 Android 日志工具类,用于记录应用运行时的日志信息 +import android.widget.RemoteViews; +// 导入 Android 远程视图类,用于在应用小部件中显示布局 + +import net.micode.notes.R; +// 导入蜜课笔记应用的资源类 +import net.micode.notes.data.Notes; +// 导入蜜课笔记应用的数据类,包含笔记相关的常量和方法 +import net.micode.notes.data.Notes.NoteColumns; +// 导入蜜课笔记应用的笔记列常量类,定义了笔记表的列名 +import net.micode.notes.tool.ResourceParser; +// 导入蜜课笔记应用的资源解析工具类 +import net.micode.notes.ui.NoteEditActivity; +// 导入蜜课笔记应用的笔记编辑活动类 +import net.micode.notes.ui.NotesListActivity; +// 导入蜜课笔记应用的笔记列表活动类 + +/** + * 笔记小部件提供者的抽象基类,继承自 AppWidgetProvider,用于处理笔记小部件的更新和删除操作。 + */ +public abstract class NoteWidgetProvider extends AppWidgetProvider { + // 定义查询笔记信息时使用的投影列数组 + public static final String [] PROJECTION = new String [] { + NoteColumns.ID, + // 笔记的 ID 列 + NoteColumns.BG_COLOR_ID, + // 笔记的背景颜色 ID 列 + NoteColumns.SNIPPET + // 笔记的摘要列 + }; + + // 定义投影列数组中各列的索引 + public static final int COLUMN_ID = 0; + // ID 列的索引 + public static final int COLUMN_BG_COLOR_ID = 1; + // 背景颜色 ID 列的索引 + public static final int COLUMN_SNIPPET = 2; + // 摘要列的索引 + + // 定义日志标签 + private static final String TAG = "NoteWidgetProvider"; + + /** + * 当小部件被删除时调用此方法。 + * + * @param context 上下文对象 + * @param appWidgetIds 被删除的小部件 ID 数组 + */ + @Override + public void onDeleted(Context context, int[] appWidgetIds) { + // 创建一个 ContentValues 对象,用于存储要更新的数据 + ContentValues values = new ContentValues(); + // 将小部件 ID 设置为无效值 + values.put(NoteColumns.WIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID); + // 遍历被删除的小部件 ID 数组 + for (int i = 0; i < appWidgetIds.length; i++) { + // 更新数据库中对应小部件 ID 的笔记记录,将小部件 ID 设置为无效值 + context.getContentResolver().update(Notes.CONTENT_NOTE_URI, + values, + NoteColumns.WIDGET_ID + "=?", + new String[] { String.valueOf(appWidgetIds[i])}); + } + } + + /** + * 获取指定小部件 ID 对应的笔记信息。 + * + * @param context 上下文对象 + * @param widgetId 小部件 ID + * @return 包含笔记信息的游标对象 + */ + private Cursor getNoteWidgetInfo(Context context, int widgetId) { + // 查询数据库,获取指定小部件 ID 且不在回收站中的笔记信息 + return context.getContentResolver().query(Notes.CONTENT_NOTE_URI, + PROJECTION, + NoteColumns.WIDGET_ID + "=? AND " + NoteColumns.PARENT_ID + "<>?", + new String[] { String.valueOf(widgetId), String.valueOf(Notes.ID_TRASH_FOLER) }, + null); + } + + /** + * 更新小部件的显示内容。 + * + * @param context 上下文对象 + * @param appWidgetManager 应用小部件管理器 + * @param appWidgetIds 要更新的小部件 ID 数组 + */ + protected void update(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { + // 调用重载的 update 方法,隐私模式设置为 false + update(context, appWidgetManager, appWidgetIds, false); + } + + /** + * 更新小部件的显示内容,可指定是否开启隐私模式。 + * + * @param context 上下文对象 + * @param appWidgetManager 应用小部件管理器 + * @param appWidgetIds 要更新的小部件 ID 数组 + * @param privacyMode 是否开启隐私模式 + */ + private void update(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds, + boolean privacyMode) { + // 遍历要更新的小部件 ID 数组 + for (int i = 0; i < appWidgetIds.length; i++) { + // 检查小部件 ID 是否有效 + if (appWidgetIds[i] != AppWidgetManager.INVALID_APPWIDGET_ID) { + // 获取默认的背景颜色 ID + int bgId = ResourceParser.getDefaultBgId(context); + // 初始化笔记摘要为空字符串 + String snippet = ""; + // 创建一个意图,用于启动笔记编辑活动 + Intent intent = new Intent(context, NoteEditActivity.class); + // 设置意图标志,确保活动以单顶模式启动 + intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); + // 将小部件 ID 作为额外数据添加到意图中 + intent.putExtra(Notes.INTENT_EXTRA_WIDGET_ID, appWidgetIds[i]); + // 将小部件类型作为额外数据添加到意图中 + intent.putExtra(Notes.INTENT_EXTRA_WIDGET_TYPE, getWidgetType()); + + // 获取指定小部件 ID 对应的笔记信息 + Cursor c = getNoteWidgetInfo(context, appWidgetIds[i]); + // 检查游标是否不为空且至少有一条记录 + if (c != null && c.moveToFirst()) { + // 检查是否存在多条具有相同小部件 ID 的记录 + if (c.getCount() > 1) { + // 记录错误日志 + Log.e(TAG, "Multiple message with same widget id:" + appWidgetIds[i]); + // 关闭游标 + c.close(); + return; + } + // 获取笔记摘要 + snippet = c.getString(COLUMN_SNIPPET); + // 获取笔记背景颜色 ID + bgId = c.getInt(COLUMN_BG_COLOR_ID); + // 将笔记 ID 作为额外数据添加到意图中 + intent.putExtra(Intent.EXTRA_UID, c.getLong(COLUMN_ID)); + // 设置意图动作为查看 + intent.setAction(Intent.ACTION_VIEW); + } else { + // 如果没有找到对应的笔记信息,设置默认摘要 + snippet = context.getResources().getString(R.string.widget_havenot_content); + // 设置意图动作为插入或编辑 + intent.setAction(Intent.ACTION_INSERT_OR_EDIT); + } + + // 检查游标是否不为空,如果不为空则关闭游标 + if (c != null) { + c.close(); + } + + // 创建一个远程视图对象,用于显示小部件的布局 + RemoteViews rv = new RemoteViews(context.getPackageName(), getLayoutId()); + // 设置小部件背景图片资源 + rv.setImageViewResource(R.id.widget_bg_image, getBgResourceId(bgId)); + // 将背景颜色 ID 作为额外数据添加到意图中 + intent.putExtra(Notes.INTENT_EXTRA_BACKGROUND_ID, bgId); + /** + * 生成用于启动小部件宿主的待定意图 + */ + PendingIntent pendingIntent = null; + // 检查是否开启隐私模式 + if (privacyMode) { + // 设置小部件文本为隐私模式提示信息 + rv.setTextViewText(R.id.widget_text, + context.getString(R.string.widget_under_visit_mode)); + // 创建一个待定意图,用于启动笔记列表活动 + pendingIntent = PendingIntent.getActivity(context, appWidgetIds[i], new Intent( + context, NotesListActivity.class), PendingIntent.FLAG_UPDATE_CURRENT); + } else { + // 设置小部件文本为笔记摘要 + rv.setTextViewText(R.id.widget_text, snippet); + // 创建一个待定意图,用于启动笔记编辑活动 + pendingIntent = PendingIntent.getActivity(context, appWidgetIds[i], intent, + PendingIntent.FLAG_UPDATE_CURRENT); + } + + // 设置小部件文本的点击事件为待定意图 + rv.setOnClickPendingIntent(R.id.widget_text, pendingIntent); + // 更新指定小部件 ID 的小部件显示内容 + appWidgetManager.updateAppWidget(appWidgetIds[i], rv); + } + } + } + + /** + * 获取指定背景颜色 ID 对应的背景资源 ID。 + * 该方法为抽象方法,需要子类实现。 + * + * @param bgId 背景颜色 ID + * @return 背景资源 ID + */ + protected abstract int getBgResourceId(int bgId); + + /** + * 获取小部件的布局 ID。 + * 该方法为抽象方法,需要子类实现。 + * + * @return 布局 ID + */ + protected abstract int getLayoutId(); + + /** + * 获取小部件的类型。 + * 该方法为抽象方法,需要子类实现。 + * + * @return 小部件类型 + */ + protected abstract int getWidgetType(); +} +``` + diff --git a/源程序代码-小米便签-Notes-master/Notes-master/.gitignore b/源程序代码-小米便签-Notes-master/Notes-master/.gitignore new file mode 100644 index 0000000..7df8dff --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/.gitignore @@ -0,0 +1,9 @@ +# generated files +bin/ +gen/ + +# Local configuration file (sdk path, etc) +project.properties +.settings/ +.classpath +.project diff --git a/源程序代码-小米便签-Notes-master/Notes-master/AndroidManifest.xml b/源程序代码-小米便签-Notes-master/Notes-master/AndroidManifest.xml new file mode 100644 index 0000000..e5c7d47 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/AndroidManifest.xml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/源程序代码-小米便签-Notes-master/Notes-master/NOTICE b/源程序代码-小米便签-Notes-master/Notes-master/NOTICE new file mode 100644 index 0000000..9a54521 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/NOTICE @@ -0,0 +1,190 @@ + + 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. + + 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. + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + diff --git a/源程序代码-小米便签-Notes-master/Notes-master/README b/源程序代码-小米便签-Notes-master/Notes-master/README new file mode 100644 index 0000000..fc0d824 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/README @@ -0,0 +1,23 @@ +[中文] + +1. MiCode便签是小米便签的社区开源版,由MIUI团队(www.miui.com) 发起并贡献第一批代码,遵循NOTICE文件所描述的开源协议, + 今后为MiCode社区(www.micode.net) 拥有,并由社区发布和维护。 + +2. Bug反馈和跟踪,请访问Github, + https://github.com/MiCode/Notes/issues?sort=created&direction=desc&state=open + +3. 功能建议和综合讨论,请访问MiCode, + http://micode.net/forum.php?mod=forumdisplay&fid=38 + + +[English] + +1. MiCode Notes is open source edition of XM notepad, it's first initiated and sponsored by MIUI team (www.miui.com). + It's opened under license described by NOTICE file. It's owned by the MiCode community (www.micode.net). In future, + the MiCode community will release and maintain this project. + +2. Regarding issue tracking, please visit Github, + https://github.com/MiCode/Notes/issues?sort=created&direction=desc&state=open + +3. Regarding feature request and general discussion, please visit Micode forum, + http://micode.net/forum.php?mod=forumdisplay&fid=38 diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/color/primary_text_dark.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/color/primary_text_dark.xml new file mode 100644 index 0000000..7c85459 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/color/primary_text_dark.xml @@ -0,0 +1,22 @@ + + + + + + + + + \ No newline at end of file diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/color/secondary_text_dark.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/color/secondary_text_dark.xml new file mode 100644 index 0000000..c1c2384 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/color/secondary_text_dark.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/bg_btn_set_color.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/bg_btn_set_color.png new file mode 100644 index 0000000..5eb5d44 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/bg_btn_set_color.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/bg_color_btn_mask.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/bg_color_btn_mask.png new file mode 100644 index 0000000..100db77 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/bg_color_btn_mask.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/call_record.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/call_record.png new file mode 100644 index 0000000..fb88ca4 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/call_record.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/clock.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/clock.png new file mode 100644 index 0000000..5f2ae9a Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/clock.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/delete.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/delete.png new file mode 100644 index 0000000..643de3e Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/delete.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/dropdown_icon.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/dropdown_icon.9.png new file mode 100644 index 0000000..5525025 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/dropdown_icon.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_blue.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_blue.9.png new file mode 100644 index 0000000..55a1856 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_blue.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_green.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_green.9.png new file mode 100644 index 0000000..2cb2d60 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_green.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_red.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_red.9.png new file mode 100644 index 0000000..bae944a Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_red.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_blue.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_blue.9.png new file mode 100644 index 0000000..96e6092 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_blue.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_green.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_green.9.png new file mode 100644 index 0000000..08d8644 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_green.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_red.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_red.9.png new file mode 100644 index 0000000..9c430e5 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_red.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_white.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_white.9.png new file mode 100644 index 0000000..19e8d95 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_white.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_yellow.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_yellow.9.png new file mode 100644 index 0000000..bf8f580 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_title_yellow.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_white.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_white.9.png new file mode 100644 index 0000000..918f7a6 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_white.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_yellow.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_yellow.9.png new file mode 100644 index 0000000..10cb642 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/edit_yellow.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_large.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_large.png new file mode 100644 index 0000000..78cf2e6 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_large.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_normal.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_normal.png new file mode 100644 index 0000000..9de7ced Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_normal.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_size_selector_bg.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_size_selector_bg.9.png new file mode 100644 index 0000000..be8e64c Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_size_selector_bg.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_small.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_small.png new file mode 100644 index 0000000..d3ff104 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_small.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_super.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_super.png new file mode 100644 index 0000000..85b13a1 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/font_super.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/icon_app.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/icon_app.png new file mode 100644 index 0000000..418aadc Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/icon_app.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_background.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_background.png new file mode 100644 index 0000000..087e1f9 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_background.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_down.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_down.9.png new file mode 100644 index 0000000..b88eebf Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_down.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_middle.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_middle.9.png new file mode 100644 index 0000000..96b1c8b Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_middle.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_single.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_single.9.png new file mode 100644 index 0000000..d7e7206 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_single.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_up.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_up.9.png new file mode 100644 index 0000000..632e88c Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_blue_up.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_folder.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_folder.9.png new file mode 100644 index 0000000..829f61b Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_folder.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_footer_bg.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_footer_bg.9.png new file mode 100644 index 0000000..5325c25 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_footer_bg.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_down.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_down.9.png new file mode 100644 index 0000000..64a39d9 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_down.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_middle.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_middle.9.png new file mode 100644 index 0000000..897325a Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_middle.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_single.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_single.9.png new file mode 100644 index 0000000..c83405f Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_single.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_up.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_up.9.png new file mode 100644 index 0000000..141f9e1 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_green_up.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_down.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_down.9.png new file mode 100644 index 0000000..4224309 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_down.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_middle.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_middle.9.png new file mode 100644 index 0000000..9988f17 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_middle.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_single.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_single.9.png new file mode 100644 index 0000000..587c348 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_single.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_up.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_up.9.png new file mode 100644 index 0000000..46b4757 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_red_up.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_down.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_down.9.png new file mode 100644 index 0000000..29f9d8c Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_down.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_middle.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_middle.9.png new file mode 100644 index 0000000..77a4ab4 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_middle.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_single.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_single.9.png new file mode 100644 index 0000000..3e79189 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_single.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_up.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_up.9.png new file mode 100644 index 0000000..e23cd5c Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_white_up.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_down.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_down.9.png new file mode 100644 index 0000000..31cfc1e Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_down.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_middle.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_middle.9.png new file mode 100644 index 0000000..b6549b2 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_middle.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_single.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_single.9.png new file mode 100644 index 0000000..3faf507 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_single.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_up.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_up.9.png new file mode 100644 index 0000000..4ae791c Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/list_yellow_up.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/menu_delete.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/menu_delete.png new file mode 100644 index 0000000..ccdfc4b Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/menu_delete.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/menu_move.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/menu_move.png new file mode 100644 index 0000000..1140b71 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/menu_move.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/new_note_normal.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/new_note_normal.png new file mode 100644 index 0000000..e24e0d1 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/new_note_normal.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/new_note_pressed.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/new_note_pressed.png new file mode 100644 index 0000000..c748936 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/new_note_pressed.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/note_edit_color_selector_panel.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/note_edit_color_selector_panel.png new file mode 100644 index 0000000..fc49552 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/note_edit_color_selector_panel.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/notification.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/notification.png new file mode 100644 index 0000000..b13ab4a Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/notification.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/search_result.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/search_result.png new file mode 100644 index 0000000..ff2befd Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/search_result.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/selected.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/selected.png new file mode 100644 index 0000000..b889bef Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/selected.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/title_alert.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/title_alert.png new file mode 100644 index 0000000..544ee9c Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/title_alert.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/title_bar_bg.9.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/title_bar_bg.9.png new file mode 100644 index 0000000..eb6bff0 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/title_bar_bg.9.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_blue.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_blue.png new file mode 100644 index 0000000..a1707f4 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_blue.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_green.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_green.png new file mode 100644 index 0000000..f86886c Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_green.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_red.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_red.png new file mode 100644 index 0000000..0e66c29 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_red.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_white.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_white.png new file mode 100644 index 0000000..5f0619a Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_white.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_yellow.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_yellow.png new file mode 100644 index 0000000..12d1c2b Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_2x_yellow.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_blue.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_blue.png new file mode 100644 index 0000000..9183738 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_blue.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_green.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_green.png new file mode 100644 index 0000000..fa8b452 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_green.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_red.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_red.png new file mode 100644 index 0000000..62de074 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_red.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_white.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_white.png new file mode 100644 index 0000000..a37d67c Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_white.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_yellow.png b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_yellow.png new file mode 100644 index 0000000..d7c5fa4 Binary files /dev/null and b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable-hdpi/widget_4x_yellow.png differ diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/drawable/new_note.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable/new_note.xml new file mode 100644 index 0000000..2154ebc --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/drawable/new_note.xml @@ -0,0 +1,23 @@ + + + + + + + + diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/layout/account_dialog_title.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/account_dialog_title.xml new file mode 100644 index 0000000..7717112 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/account_dialog_title.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/layout/add_account_text.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/add_account_text.xml new file mode 100644 index 0000000..c799178 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/add_account_text.xml @@ -0,0 +1,32 @@ + + + + + + + + \ No newline at end of file diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/layout/datetime_picker.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/datetime_picker.xml new file mode 100644 index 0000000..f10d592 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/datetime_picker.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/layout/dialog_edit_text.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/dialog_edit_text.xml new file mode 100644 index 0000000..361b39a --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/dialog_edit_text.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/layout/folder_list_item.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/folder_list_item.xml new file mode 100644 index 0000000..77e8148 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/folder_list_item.xml @@ -0,0 +1,29 @@ + + + + + + + + \ No newline at end of file diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_edit.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_edit.xml new file mode 100644 index 0000000..10b2aa7 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_edit.xml @@ -0,0 +1,400 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_edit_list_item.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_edit_list_item.xml new file mode 100644 index 0000000..a885f9c --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_edit_list_item.xml @@ -0,0 +1,39 @@ + + + + + + + + + + diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_item.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_item.xml new file mode 100644 index 0000000..d541f6a --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_item.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_list.xml b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_list.xml new file mode 100644 index 0000000..6b25d38 --- /dev/null +++ b/源程序代码-小米便签-Notes-master/Notes-master/res/layout/note_list.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + +