|
|
@ -39,13 +39,20 @@
|
|
|
|
</intent-filter>
|
|
|
|
</intent-filter>
|
|
|
|
</activity>
|
|
|
|
</activity>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 主应用界面:笔记列表Activity -->
|
|
|
|
|
|
|
|
<!-- 该Activity作为应用的入口点,显示所有笔记的列表 -->
|
|
|
|
<activity
|
|
|
|
<activity
|
|
|
|
android:name=".ui.NoteEditActivity"
|
|
|
|
android:name=".ui.NoteEditActivity"
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
android:launchMode="singleTop"
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
android:theme="@style/NoteTheme"
|
|
|
|
android:exported="true">
|
|
|
|
android:exported="true"> <!-- 应用名称,显示在应用启动器和任务管理器中 -->
|
|
|
|
|
|
|
|
<!-- 启动模式:如果目标Activity已经在栈顶,则重用而不创建新实例 -->
|
|
|
|
|
|
|
|
<!-- 应用自定义主题 -->
|
|
|
|
|
|
|
|
<!-- 在窄屏幕上分割ActionBar以优化布局 -->
|
|
|
|
|
|
|
|
<!-- 当软键盘弹出时,调整窗口布局以避免遮挡内容 -->
|
|
|
|
|
|
|
|
<!-- 允许其他应用启动此Activity -->
|
|
|
|
|
|
|
|
<!-- 应用入口点配置 -->
|
|
|
|
<intent-filter>
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
@ -59,7 +66,11 @@
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/text_note" />
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/text_note" />
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/call_note" />
|
|
|
|
<data android:mimeType="vnd.android.cursor.item/call_note" />
|
|
|
|
</intent-filter>
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
<!-- 插入或编辑笔记的Intent过滤器 -->
|
|
|
|
|
|
|
|
<!-- 处理插入或编辑操作 -->
|
|
|
|
|
|
|
|
<!-- 默认类别,允许隐式Intent调用 -->
|
|
|
|
|
|
|
|
<!-- 支持文本笔记类型 -->
|
|
|
|
|
|
|
|
<!-- 支持通话笔记类型 -->
|
|
|
|
<intent-filter>
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.SEARCH" />
|
|
|
|
<action android:name="android.intent.action.SEARCH" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|