aboutsummaryrefslogtreecommitdiff
path: root/zh-cn/devices/tech/settings/patterns-components.html
diff options
context:
space:
mode:
Diffstat (limited to 'zh-cn/devices/tech/settings/patterns-components.html')
-rw-r--r--zh-cn/devices/tech/settings/patterns-components.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/zh-cn/devices/tech/settings/patterns-components.html b/zh-cn/devices/tech/settings/patterns-components.html
index c57937ad..13f72f1a 100644
--- a/zh-cn/devices/tech/settings/patterns-components.html
+++ b/zh-cn/devices/tech/settings/patterns-components.html
@@ -1,5 +1,5 @@
<html devsite><head>
- <title>格式和组件</title>
+ <title>模式和组件</title>
<meta name="project_path" value="/_project.yaml"/>
<meta name="book_path" value="/_book.yaml"/>
</head>
@@ -82,7 +82,7 @@
<ul>
<li>相关示例和代码可以在以下位置找到:<br />
<code>packages/apps/Settings/src/com/android/settings/dashboard/ProgressiveDisclosureMixin.java</code>
-<p class="note"><strong>注意</strong>:此组件必须与 DashboardFragment 一起使用。(请在<a href="information-architecture.html">已更新的信息架构</a>中查看有关 DashboardFragment 的更多详情。)</p>
+<p class="note"><strong>注意</strong>:此组件必须与 DashboardFragment 一起使用。(请在<a href="info-architecture.html">已更新的信息架构</a>中查看有关 DashboardFragment 的更多详情。)</p>
</li>
</ul>
</li><li>默认应用选择器
@@ -116,14 +116,14 @@
<li>allowDividerAfterLastItem</li>
</ul>
</li>
-<li>ActionBar 主题背景颜色。Activity 应使用 <code>Theme.DeviceDefault.Settings</code> 作为其主题背景,或使用 <code>Theme.DeviceDefault.Settings</code> 作为父级来创建自定义主题背景。
+<li>ActionBar 主题背景颜色。Activity 应使用 <code>Theme.DeviceDefault.Settings</code> 作为其主题背景,或使用 <code>Theme.DeviceDefault.Settings</code> 创建自定义主题背景作为父级。
</li>
<li>应用标头微件。在 AppHeaderController 中使用设置器来自定义每个字段,并在设置所有字段后调用 build()。
</li>
<li>展开按钮:
<ul>
<li>要完全停用该功能,请替换 ProgressiveDisclosureMixin 的构造函数,并将 keepExpanded 设为 true。</li>
- <li>要自定义最初显示的项目数量,请在片段的 <code>onAttach(Context)</code> 方法中调用 <code>ProgressiveDisclosureMixin.setTileLimit()</code> 方法。</li>
+ <li>要自定义最开始显示多少个项目,请在片段的 <code>onAttach(Context)</code> 方法中调用 <code>ProgressiveDisclosureMixin.setTileLimit()</code> 方法。</li>
</ul>
</li>
</ul>