Merge "update all links to the support library" into jb-mr2-ub-dev
This commit is contained in:
@@ -18,7 +18,7 @@ href="http://developer.android.com/guide/components/activities.html">Actividades
|
||||
<li>Experiencia en el desarrollo de una <a
|
||||
href="http://developer.android.com/guide/topics/ui/index.html">Interfaz de usuario</a> de Android</li>
|
||||
<li>Algunas funciones requieren el uso de la <a
|
||||
href="{@docRoot}tools/extras/support-library.html">biblioteca de compatibilidad</a></li>
|
||||
href="{@docRoot}tools/support-library/index.html">biblioteca de compatibilidad</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>También puedes consultar:</h2>
|
||||
@@ -46,7 +46,7 @@ href="{@docRoot}tools/extras/support-library.html">biblioteca de compatibilidad<
|
||||
<p>El código que aparece en cada sección se ha extraído de una aplicación de ejemplo para explicar las prácticas recomendadas a la hora de optimizar tu aplicación para varias pantallas. Puedes descargar el ejemplo (situado a la derecha) y utilizarlo como fuente de código reutilizable para tu propia aplicación.</p>
|
||||
|
||||
<p class="note"><strong>Nota:</strong> en esta sección y en el ejemplo correspondiente, se utiliza la <a
|
||||
href="{@docRoot}tools/extras/support-library.html">biblioteca de compatibilidad</a> para poder usar las API de <PH>{@link android.app.Fragment}</PH> en versiones anteriores a Android 3.0. Debes descargar y la biblioteca y añadirla a tu aplicación para poder utilizar todas las API que se indican en esta sección.</p>
|
||||
href="{@docRoot}tools/support-library/index.html">biblioteca de compatibilidad</a> para poder usar las API de <PH>{@link android.app.Fragment}</PH> en versiones anteriores a Android 3.0. Debes descargar y la biblioteca y añadirla a tu aplicación para poder utilizar todas las API que se indican en esta sección.</p>
|
||||
|
||||
|
||||
<h2>Secciones</h2>
|
||||
|
||||
@@ -19,7 +19,7 @@ href="http://developer.android.com/guide/components/activities.html">アクテ
|
||||
<li>Android <a
|
||||
href="http://developer.android.com/guide/topics/ui/index.html">ユーザー インターフェース</a>の開発経験</li>
|
||||
<li><a
|
||||
href="{@docRoot}tools/extras/support-library.html">サポート ライブラリ</a>の利用(一部の機能で必要)</li>
|
||||
href="{@docRoot}tools/support-library/index.html">サポート ライブラリ</a>の利用(一部の機能で必要)</li>
|
||||
</ul>
|
||||
|
||||
<h2>関連ドキュメント</h2>
|
||||
@@ -47,7 +47,7 @@ href="{@docRoot}tools/extras/support-library.html">サポート ライブラリ<
|
||||
<p>各レッスンで紹介されているコードは、複数の画面に合わせて最適化する際、ベスト プラクティスとなるサンプル アプリから抜粋したものです。このサンプルを(右側から)ダウンロードして、再利用可能なコードのソースとしてご自分のアプリに使用することができます。</p>
|
||||
|
||||
<p class="note"><strong>注:</strong> このクラスと関連サンプルでは、<a
|
||||
href="{@docRoot}tools/extras/support-library.html">サポート ライブラリ</a>を使用します。理由は、Android 3.0 未満のバージョンで <PH>{@link android.app.Fragment}</PH> API を使用するためです。このクラスのすべての API を使用するには、ライブラリをダウンロードして、アプリに追加する必要があります。</p>
|
||||
href="{@docRoot}tools/support-library/index.html">サポート ライブラリ</a>を使用します。理由は、Android 3.0 未満のバージョンで <PH>{@link android.app.Fragment}</PH> API を使用するためです。このクラスのすべての API を使用するには、ライブラリをダウンロードして、アプリに追加する必要があります。</p>
|
||||
|
||||
|
||||
<h2>レッスン</h2>
|
||||
|
||||
@@ -19,7 +19,7 @@ href="http://developer.android.com/guide/components/activities.html">액티비
|
||||
<li>Android <a
|
||||
href="http://developer.android.com/guide/topics/ui/index.html"> 사용자 인터페이스</a> 구축 경험</li>
|
||||
<li><a
|
||||
href="{@docRoot}tools/extras/support-library.html">호환성 라이브러리</a>를 사용해야 하는 여러 기능</li>
|
||||
href="{@docRoot}tools/support-library/index.html">호환성 라이브러리</a>를 사용해야 하는 여러 기능</li>
|
||||
</ul>
|
||||
|
||||
<h2>참고자료</h2>
|
||||
@@ -47,7 +47,7 @@ href="{@docRoot}tools/extras/support-library.html">호환성 라이브러리</a>
|
||||
<p>각 강의에서 사용되는 코드는 여러 화면에 대한 최적화의 모범 사례를 보여주는 샘플 애플리케이션에서 가져온 것입니다. 샘플(오른쪽)을 다운로드하여 본인의 애플리케이션에 코드로 재사용할 수 있습니다. </p>
|
||||
|
||||
<p class="note"><strong>참고:</strong> 이 강의 및 강의와 관련된 샘플은 <a
|
||||
href="{@docRoot}tools/extras/support-library.html">호환성 라이브러리</a>를 사용하며 이는 Android 3.0 이하 버전에서 <PH>{@link android.app.Fragment}</PH> API를 사용하기 위해서입니다. 이 강의에서 API를 모두 사용하려면 라이브러리를 다운로드하여 애플리케이션에 추가해야 합니다.</p>
|
||||
href="{@docRoot}tools/support-library/index.html">호환성 라이브러리</a>를 사용하며 이는 Android 3.0 이하 버전에서 <PH>{@link android.app.Fragment}</PH> API를 사용하기 위해서입니다. 이 강의에서 API를 모두 사용하려면 라이브러리를 다운로드하여 애플리케이션에 추가해야 합니다.</p>
|
||||
|
||||
|
||||
<h2>강의</h2>
|
||||
|
||||
@@ -19,7 +19,7 @@ href="http://developer.android.com/guide/components/activities.html">Activity</a
|
||||
<li>Опыт создания <a
|
||||
href="http://developer.android.com/guide/topics/ui/index.html">пользовательских интерфейсов</a> для Android</li>
|
||||
<li>Некоторые функции требуют использования <a
|
||||
href="{@docRoot}tools/extras/support-library.html">вспомогательной библиотеки</a></li>
|
||||
href="{@docRoot}tools/support-library/index.html">вспомогательной библиотеки</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Дополнительные материалы</h2>
|
||||
@@ -47,7 +47,7 @@ href="{@docRoot}tools/extras/support-library.html">вспомогательно
|
||||
<p>Код, приведенный в каждом уроке, взят из учебного приложения, в котором демонстрируются способы оптимизации для разных экранов. Вы можете загрузить его (в правой части экрана) и использовать части кода в собственном приложении.</p>
|
||||
|
||||
<p class="note"><strong>Примечание</strong>. В этом модуле и в учебном приложении используется <a
|
||||
href="{@docRoot}tools/extras/support-library.html">вспомогательная библиотека</a>, позволяющая работать с API <PH>{@link android.app.Fragment}</PH> в версиях до Android 3.0. Чтобы иметь возможность использовать все необходимые API, загрузите библиотеку и добавьте ее в свое приложение.</p>
|
||||
href="{@docRoot}tools/support-library/index.html">вспомогательная библиотека</a>, позволяющая работать с API <PH>{@link android.app.Fragment}</PH> в версиях до Android 3.0. Чтобы иметь возможность использовать все необходимые API, загрузите библиотеку и добавьте ее в свое приложение.</p>
|
||||
|
||||
|
||||
<h2>Уроки</h2>
|
||||
|
||||
@@ -19,7 +19,7 @@ href="http://developer.android.com/guide/components/activities.html">活动</a>
|
||||
<li>构建 Android <a
|
||||
href="http://developer.android.com/guide/topics/ui/index.html">用户界面</a>的经验</li>
|
||||
<li>多个功能需要用到<a
|
||||
href="{@docRoot}tools/extras/support-library.html">支持库</a></li>
|
||||
href="{@docRoot}tools/support-library/index.html">支持库</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>您还应参阅</h2>
|
||||
@@ -47,7 +47,7 @@ href="{@docRoot}tools/extras/support-library.html">支持库</a></li>
|
||||
<p>各教程中都提及了一种来自一个示例应用的代码,该应用展示了关于针对多种分辨率进行优化的最佳实践。您可以在右侧下载该示例,并在自己的应用内重复使用其中的代码。</p>
|
||||
|
||||
<p class="note"><strong>请注意</strong>:本教程和相关的示例使用了<a
|
||||
href="{@docRoot}tools/extras/support-library.html">支持库</a>,以便在 3.0 版以下的 Android 上使用 <PH>{@link android.app.Fragment}</PH> API。因此,您需要下载该库并将其添加到您的应用,才能使用本教程中涉及的所有 API。</p>
|
||||
href="{@docRoot}tools/support-library/index.html">支持库</a>,以便在 3.0 版以下的 Android 上使用 <PH>{@link android.app.Fragment}</PH> API。因此,您需要下载该库并将其添加到您的应用,才能使用本教程中涉及的所有 API。</p>
|
||||
|
||||
|
||||
<h2>教程</h2>
|
||||
|
||||
@@ -19,7 +19,7 @@ redirects:
|
||||
to: /sdk/exploring.html
|
||||
|
||||
- from: /sdk/compatibility-library.html
|
||||
to: /tools/extras/support-library.html
|
||||
to: /tools/support-library/index.html
|
||||
|
||||
- from: /sdk/eclipse-adt.html
|
||||
to: /tools/sdk/eclipse-adt.html
|
||||
|
||||
@@ -822,7 +822,7 @@ the methods necessary for any given view without extending the {@link android.vi
|
||||
|
||||
<p>If you want to maintain compatibility with Android versions prior to 4.0, while also supporting
|
||||
the new the accessibility APIs, you can do so with the latest version of the <em>v4 support
|
||||
library</em> (in <a href="{@docRoot}tools/extras/support-library.html">Compatibility Package, r4</a>)
|
||||
library</em> (in <a href="{@docRoot}tools/support-library/index.html">Compatibility Package, r4</a>)
|
||||
using a set of utility classes that provide the new accessibility APIs in a backward-compatible
|
||||
design.</p>
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ href="{@docRoot}training/basics/supporting-devices/platforms.html">Supporting Di
|
||||
Platform Versions</a>.</p>
|
||||
|
||||
<p>Various APIs are also available in the Android <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Support Library</a> that allow you to implement
|
||||
href="{@docRoot}tools/support-library/index.html">Support Library</a> that allow you to implement
|
||||
new features on older versions of the platform.</p>
|
||||
|
||||
<p>For more information about how API levels work, read <a
|
||||
@@ -943,7 +943,7 @@ android.text.TextDirectionHeuristic} constants from {@link android.text.TextDire
|
||||
to {@link android.text.BidiFormatter#unicodeWrap(String,TextDirectionHeuristic) unicodeWrap()}.</p>
|
||||
|
||||
<p class="note"><strong>Note:</strong> These new APIs are also available for previous versions
|
||||
of Android through the Android <a href="{@docRoot}tools/extras/support-library.html">Support
|
||||
of Android through the Android <a href="{@docRoot}tools/support-library/index.html">Support
|
||||
Library</a>, with the {@link android.support.v4.text.BidiFormatter} class and related APIs.</p>
|
||||
|
||||
|
||||
@@ -981,7 +981,7 @@ android.view.accessibility.AccessibilityNodeInfo#ACTION_ARGUMENT_EXTEND_SELECTIO
|
||||
|
||||
|
||||
<p class="note"><strong>Note:</strong> These new APIs are also available for previous versions
|
||||
of Android through the Android <a href="{@docRoot}tools/extras/support-library.html">Support
|
||||
of Android through the Android <a href="{@docRoot}tools/support-library/index.html">Support
|
||||
Library</a>, with the {@link android.support.v4.view.accessibility.AccessibilityNodeInfoCompat}
|
||||
class.</p>
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ support all desired devices with a single APK</li>
|
||||
<li><a href="{@docRoot}google/play/expansion-files.html">APK Expansion Files</a></li>
|
||||
<li><a href="{@docRoot}google/play/filters.html">Filters on Google Play</a></li>
|
||||
<li><a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple Screens</a></li>
|
||||
<li><a href="{@docRoot}tools/extras/support-library.html">Support Library</a></li>
|
||||
<li><a href="{@docRoot}tools/support-library/index.html">Support Library</a></li>
|
||||
<li><a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#ApiLevels">Android API Levels</a></li>
|
||||
</ol>
|
||||
|
||||
@@ -628,7 +628,7 @@ different screen sizes.</p>
|
||||
href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple Screens</a>.</p>
|
||||
|
||||
<p>Additionally, you should consider using a support library from the <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Compatibility Package</a> so that you can add <a
|
||||
href="{@docRoot}tools/support-library/index.html">Compatibility Package</a> so that you can add <a
|
||||
href="{@docRoot}guide/components/fragments.html">Fragments</a> to your activity designs
|
||||
when running on larger screens such as tablets.</p>
|
||||
|
||||
@@ -643,7 +643,7 @@ over 95% of Android-powered devices (as indicated by the <a
|
||||
href="{@docRoot}about/dashboards/index.html">Platform Versions</a> dashboard).</p>
|
||||
|
||||
<p>By using a support library from the <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Compatibility Package</a>, you can also use APIs
|
||||
href="{@docRoot}tools/support-library/index.html">Compatibility Package</a>, you can also use APIs
|
||||
from some of the latest versions (such as Android 3.0) while
|
||||
still supporting versions as low as Android 1.6. The support library includes APIs for <a
|
||||
href="{@docRoot}guide/components/fragments.html">Fragments</a>, <a
|
||||
|
||||
@@ -54,7 +54,7 @@ onclick="$('#naMessage').hide();$('#deprecatedSticker').show()" />
|
||||
<li><a href="tablets-and-handsets.html">Supporting Tablets
|
||||
and Handsets</a></li>
|
||||
<li><a
|
||||
href="{@docRoot}tools/extras/support-library.html">Compatibility Library</a></li>
|
||||
href="{@docRoot}tools/support-library/index.html">Compatibility Library</a></li>
|
||||
<li><a href="http://code.google.com/p/iosched/">Google I/O App source code</a></li>
|
||||
</ol>
|
||||
|
||||
@@ -281,7 +281,7 @@ use techniques such as reflection to check for the availability of certain APIs
|
||||
to help you add features from Android 3.0 without requiring you to change your <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code android:minSdkVersion}</a>
|
||||
or build target, we're providing a static library called the <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Compatibility Library</a>
|
||||
href="{@docRoot}tools/support-library/index.html">Compatibility Library</a>
|
||||
(downloadable from the Android SDK Manager).</p>
|
||||
<p>This library includes APIs for <a
|
||||
href="{@docRoot}guide/components/fragments.html">fragments</a>, <a
|
||||
@@ -289,7 +289,7 @@ href="{@docRoot}guide/components/loaders.html">loaders</a>, and some updated cla
|
||||
simply adding this library to your Android project, you can use these APIs in your application and
|
||||
remain compatible with Android 1.6. For information about how to get the library and start
|
||||
using it in your application, see the <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Compatibility Library</a> document.</p>
|
||||
href="{@docRoot}tools/support-library/index.html">Compatibility Library</a> document.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ bar below.</p>
|
||||
<h3>Remaining backward-compatible</h3>
|
||||
<p>If you want to use fragments in your application <em>and</em> remain compatible with
|
||||
versions of Android older than 3.0, you can do so by using the Android <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Support Library</a> (downloadable from the
|
||||
href="{@docRoot}tools/support-library/index.html">Support Library</a> (downloadable from the
|
||||
SDK Manager).</p>
|
||||
<p>The support library includes APIs for <a
|
||||
href="{@docRoot}guide/components/fragments.html">fragments</a>, <a
|
||||
@@ -150,7 +150,7 @@ versions of Android. By simply adding this library to your Android project, you
|
||||
backward-compatible versions of these APIs in your application and remain compatible with Android
|
||||
1.6 (your <a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code
|
||||
android:minSdkVersion}</a> value can be as low as {@code "4"}). For information about how to get the
|
||||
library and start using it, see the <a href="{@docRoot}tools/extras/support-library.html">Support
|
||||
library and start using it, see the <a href="{@docRoot}tools/support-library/index.html">Support
|
||||
Library</a> document.</p>
|
||||
|
||||
<p>The support library <em>does not</em> provide APIs for the action bar, but you can use
|
||||
|
||||
@@ -351,7 +351,7 @@ following approaches:</p>
|
||||
<li>If your application targets Android 4.0 (API level 14) and higher, override and implement the
|
||||
accessibility methods listed above directly in your custom view class.</li>
|
||||
<li>If your custom view is intended to be compatible with Android 1.6 (API Level 4) and above, add
|
||||
the Android <a href="{@docRoot}tools/extras/support-library.html">Support Library</a>, revision 5 or
|
||||
the Android <a href="{@docRoot}tools/support-library/index.html">Support Library</a>, revision 5 or
|
||||
higher, to your project. Then, within your custom view class, call the
|
||||
{@link android.support.v4.view.ViewCompat#setAccessibilityDelegate
|
||||
ViewCompat.setAccessibilityDelegate()} method to implement the accessibility methods
|
||||
@@ -490,7 +490,7 @@ appropriate feedback to users.</p>
|
||||
<p>The example code below shows how override these three methods by using
|
||||
{@link android.support.v4.view.ViewCompat#setAccessibilityDelegate
|
||||
ViewCompat.setAccessibilityDelegate()}. Note that this sample code requires that the Android
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a> for API Level 4 (revision
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a> for API Level 4 (revision
|
||||
5 or higher) is added to your project.</p>
|
||||
|
||||
<pre>
|
||||
@@ -534,7 +534,7 @@ ViewCompat.setAccessibilityDelegate(new AccessibilityDelegateCompat() {
|
||||
|
||||
<p>In applications targeting Android 4.0 (API Level 14) and higher, you can implement these methods
|
||||
directly in your custom view class. For another example of this approach, see the Android
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a> (revision 5 or higher)
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a> (revision 5 or higher)
|
||||
sample {@code AccessibilityDelegateSupportActivity} in
|
||||
({@code <sdk>/extras/android/support/v4/samples/Support4Demos/}).</p>
|
||||
|
||||
@@ -594,7 +594,7 @@ methods.</p>
|
||||
example implementation of this accessibility feature, see
|
||||
{@code AccessibilityNodeProviderActivity} in the ApiDemos sample project. You can implement a
|
||||
virtual view hierarchy that is compatible with Android 1.6 and later by using the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a> with the
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a> with the
|
||||
{@link android.support.v4.view.ViewCompat#getAccessibilityNodeProvider
|
||||
ViewCompat.getAccessibilityNodeProvider()} method and providing an implementation with
|
||||
{@link android.support.v4.view.accessibility.AccessibilityNodeProviderCompat}.</p>
|
||||
|
||||
@@ -73,7 +73,7 @@ helps you focus on the key development issues to get the details of accessibilit
|
||||
your application, <a href="{@docRoot}guide/topics/ui/accessibility/apps.html#custom-views">
|
||||
implement accessibility interfaces</a> for your custom views and provide content descriptions.
|
||||
For custom controls that are intended to be compatible with versions of Android back to 1.6,
|
||||
use the <a href="{@docRoot}tools/extras/support-library.html">Support Library</a> to implement
|
||||
use the <a href="{@docRoot}tools/support-library/index.html">Support Library</a> to implement
|
||||
the latest accessibility features.</li>
|
||||
<li><strong>No audio-only feedback:</strong> Audio feedback must always have a secondary
|
||||
feedback mechanism to support users who are deaf or hard of hearing. For example, a sound alert
|
||||
|
||||
@@ -55,7 +55,7 @@ accessibility service.</p>
|
||||
|
||||
<p>The ability for you to build and deploy accessibility services was introduced with Android 1.6
|
||||
(API Level 4) and received significant improvements with Android 4.0 (API Level 14). The Android
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a> was also updated with
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a> was also updated with
|
||||
the release of Android 4.0 to provide support for these enhanced accessibility features back to
|
||||
Android 1.6. Developers aiming for widely compatible accessibility services are encouraged to use
|
||||
the Support Library and develop for the more advanced accessibility features introduced in
|
||||
@@ -448,7 +448,7 @@ android.accessibilityservice.AccessibilityService} and can be used as a base for
|
||||
accessibility services that are compatible with Android 1.6 (API Level 4) and higher.</li>
|
||||
<li><a href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/accessibility/TaskBackService.html">TaskBackService</a>
|
||||
- This service is based on the enhanced accessibility APIs introduced in Android 4.0 (API Level
|
||||
14). However, you can use the Android <a href="{@docRoot}tools/extras/support-library.html">Support
|
||||
14). However, you can use the Android <a href="{@docRoot}tools/support-library/index.html">Support
|
||||
Libary</a> to substitute classes introduced in later API levels (e.g.,
|
||||
{@link android.view.accessibility.AccessibilityRecord},
|
||||
{@link android.view.accessibility.AccessibilityNodeInfo}
|
||||
|
||||
@@ -47,11 +47,11 @@ such as in a basic dialog on handsets or as an embedded part of the layout on la
|
||||
<p>Although {@link android.app.DialogFragment} was first added to the platform in Android 3.0 (API
|
||||
level 11), if your app supports versions of Android older than 3.0—even as low as Android
|
||||
1.6—you can use the {@link android.support.v4.app.DialogFragment} class that's available in
|
||||
the <a href="{@docRoot}tools/extras/support-library.html">support library</a> for backward
|
||||
the <a href="{@docRoot}tools/support-library/index.html">support library</a> for backward
|
||||
compatibility.</p>
|
||||
|
||||
<p class="note"><strong>Note:</strong> The code samples below show how to create dialogs for a time
|
||||
picker and date picker using the <a href="{@docRoot}tools/extras/support-library.html">support
|
||||
picker and date picker using the <a href="{@docRoot}tools/support-library/index.html">support
|
||||
library</a> APIs for {@link android.support.v4.app.DialogFragment}. If your app's <a
|
||||
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code minSdkVersion}</a> is 11 or
|
||||
higher, you can instead use the platform version of {@link android.app.DialogFragment}.</p>
|
||||
@@ -67,7 +67,7 @@ fragment's {@link android.support.v4.app.DialogFragment#onCreateDialog onCreateD
|
||||
|
||||
<p class="note"><strong>Note:</strong> If your app supports versions of Android older than 3.0,
|
||||
be sure you've set up your Android project with the support library as described in <a
|
||||
href="{@docRoot}tools/extras/support-library.html#SettingUp">Setting Up a Project to Use a
|
||||
href="{@docRoot}tools/support-library/setup.html">Setting Up a Project to Use a
|
||||
Library</a>.</p>
|
||||
|
||||
<h3 id="TimePickerFragment">Extending DialogFragment for a time picker</h3>
|
||||
@@ -172,7 +172,7 @@ fragment's {@link android.support.v4.app.DialogFragment#onCreateDialog onCreateD
|
||||
|
||||
<p class="note"><strong>Note:</strong> If your app supports versions of Android older than 3.0,
|
||||
be sure you've set up your Android project with the support library as described in <a
|
||||
href="{@docRoot}tools/extras/support-library.html#SettingUp">Setting Up a Project to Use a
|
||||
href="{@docRoot}tools/support-library/setup.html">Setting Up a Project to Use a
|
||||
Library</a>.</p>
|
||||
|
||||
<h3 id="DatePickerFragment">Extending DialogFragment for a date picker</h3>
|
||||
|
||||
@@ -97,7 +97,7 @@ object. If you'd like to create a date or time picker, you should instead read t
|
||||
Because the {@link android.app.DialogFragment} class was originally added with
|
||||
Android 3.0 (API level 11), this document describes how to use the {@link
|
||||
android.support.v4.app.DialogFragment} class that's provided with the <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Support Library</a>. By adding this library
|
||||
href="{@docRoot}tools/support-library/index.html">Support Library</a>. By adding this library
|
||||
to your app, you can use {@link android.support.v4.app.DialogFragment} and a variety of other
|
||||
APIs on devices running Android 1.6 or higher. If the minimum version your app supports
|
||||
is API level 11 or higher, then you can use the framework version of {@link
|
||||
|
||||
@@ -48,7 +48,7 @@ displays the results.</p>
|
||||
|
||||
<p>Although the {@link android.support.v4.content.CursorLoader} APIs were first introduced in
|
||||
Android 3.0 (API level 11), they are also available in the <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Support Library</a> so that your app may use them
|
||||
href="{@docRoot}tools/support-library/index.html">Support Library</a> so that your app may use them
|
||||
while supporting devices running Android 1.6 or higher.</p>
|
||||
|
||||
<p>For more information about using a {@link
|
||||
|
||||
@@ -94,7 +94,7 @@ page.title=Notifications
|
||||
<p class="note">
|
||||
<strong>Note:</strong> Except where noted, this guide refers to the
|
||||
{@link android.support.v4.app.NotificationCompat.Builder NotificationCompat.Builder} class
|
||||
in the version 4 <a href="{@docRoot}tools/extras/support-library.html">Support Library</a>.
|
||||
in the version 4 <a href="{@docRoot}tools/support-library/index.html">Support Library</a>.
|
||||
The class {@link android.app.Notification.Builder Notification.Builder} was added in Android
|
||||
3.0.
|
||||
</p>
|
||||
|
||||
@@ -77,7 +77,7 @@ Google APIs.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><a href="{@docRoot}tools/extras/support-library.html">Android Support</a></td>
|
||||
<td><a href="{@docRoot}tools/support-library/index.html">Android Support</a></td>
|
||||
<td>A static library you can include in your app sources in order to use powerful
|
||||
APIs that aren't available in the standard platform. For example, the support library
|
||||
contains versions of the {@link android.support.v4.app.Fragment} class that's compatible with
|
||||
|
||||
@@ -398,7 +398,7 @@ href="{@docRoot}sdk/installing/studio-tips.html">Tips and Tricks</a>.</p>
|
||||
|
||||
<p>As you continue developing apps, you may need to install additional versions
|
||||
of Android for the emulator and other packages such as the <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Android Support Library</a>.
|
||||
href="{@docRoot}tools/support-library/index.html">Android Support Library</a>.
|
||||
To install more packages, use
|
||||
the <a href="{@docRoot}tools/help/sdk-manager.html">SDK Manager</a>, which you can
|
||||
open from Android Studio by clicking <strong>SDK Manager</strong>
|
||||
|
||||
@@ -164,7 +164,7 @@ http://developer.android.com/tools/sdk/tools-notes.html
|
||||
http://developer.android.com/tools/sdk/eclipse-adt.html
|
||||
http://developer.android.com/tools/revisions/platforms.html
|
||||
http://developer.android.com/tools/extras/index.html
|
||||
http://developer.android.com/tools/extras/support-library.html
|
||||
http://developer.android.com/tools/support-library/index.html
|
||||
http://developer.android.com/tools/extras/oem-usb.html
|
||||
http://developer.android.com/tools/samples/index.html
|
||||
http://developer.android.com/tools/adk/index.html
|
||||
|
||||
@@ -55,7 +55,7 @@ plus others not included in the framework at all) on devices running
|
||||
a platform version as old as Android 1.6. All of the activity templates available when creating
|
||||
a new project with the <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a>
|
||||
require this. For more information, read <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Support Library</a>.</dd>
|
||||
href="{@docRoot}tools/support-library/index.html">Support Library</a>.</dd>
|
||||
<dt>SDK Samples</dt>
|
||||
<dd>Recommended. The samples give you source code that you can use to learn about
|
||||
Android, load as a project and run, or reuse in your own app. Note that multiple
|
||||
|
||||
@@ -271,7 +271,7 @@ doing the following:</p>
|
||||
<li><strong>Consider using the Support Library</strong>
|
||||
<p>If your application is designed for devices running Android 3.x, make your application
|
||||
compatible with older versions of Android by adding the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a> to your
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a> to your
|
||||
application project. The Support Library provides static support libraries that you can add to
|
||||
your Android application, which enables you to use APIs that are either not available on
|
||||
older platform versions or use utility APIs that are not part of the framework APIs.</p>
|
||||
|
||||
@@ -28,7 +28,7 @@ trainingnavtop=true
|
||||
Screen slides are transitions between one entire screen to another and are common with UIs
|
||||
like setup wizards or slideshows. This lesson shows you how to do screen slides with
|
||||
a {@link android.support.v4.view.ViewPager} provided by the <a href=
|
||||
"{@docRoot}tools/extras/support-library.html">support library</a>.
|
||||
"{@docRoot}tools/support-library/index.html">support library</a>.
|
||||
{@link android.support.v4.view.ViewPager}s can animate screen slides
|
||||
automatically. Here's what a screen slide looks like that transitions from
|
||||
one screen of content to the next:
|
||||
|
||||
@@ -13,7 +13,7 @@ startpage=true
|
||||
|
||||
<ul>
|
||||
<li>API level 5</li>
|
||||
<li><a href="{@docRoot}tools/extras/support-library.html">The Android Support Package</a></li>
|
||||
<li><a href="{@docRoot}tools/support-library/index.html">The Android Support Package</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>You should also read</h2>
|
||||
|
||||
@@ -350,7 +350,7 @@ to implement default navigation behaviors, such as <a
|
||||
href="{@docRoot}design/patterns/navigation.html">Up navigation</a> on
|
||||
Android 4.1 (API level 16) and higher. You can provide the same navigation behaviors for
|
||||
older versions of Android by using the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a> and adding
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a> and adding
|
||||
the <a href="{@docRoot}guide/topics/manifest/meta-data-element.html">{@code
|
||||
<meta-data>}</a> element as shown here.</p>
|
||||
|
||||
@@ -361,7 +361,7 @@ a different IDE, you should have installed it during the
|
||||
When using the templates in Eclipse, the Support Library is automatically added to your app project
|
||||
(you can see the library's JAR file listed under <em>Android Dependencies</em>). If you're not using
|
||||
Eclipse, you need to manually add the library to your project—follow the guide for <a
|
||||
href="{@docRoot}tools/extras/support-library.html#SettingUp">setting up the Support Library</a>
|
||||
href="{@docRoot}tools/support-library/setup.html">setting up the Support Library</a>
|
||||
then return here.</p>
|
||||
|
||||
<p>If you're developing with Eclipse, you can run the app now, but not much happens.
|
||||
|
||||
@@ -14,12 +14,12 @@ trainingnavtop=true
|
||||
</ol>
|
||||
<h2>You should also read</h2>
|
||||
<ul>
|
||||
<li><a href="{@docRoot}tools/extras/support-library.html">Support Library</a></li>
|
||||
<li><a href="{@docRoot}tools/support-library/index.html">Support Library</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>The Android <a href="{@docRoot}tools/extras/support-library.html">Support Library</a> provides a JAR
|
||||
<p>The Android <a href="{@docRoot}tools/support-library/index.html">Support Library</a> provides a JAR
|
||||
file with an API library that allows you to use some of the more recent Android APIs in your app
|
||||
while running on earlier versions of Android. For instance, the Support Library provides a version
|
||||
of the {@link android.app.Fragment} APIs that you can use on Android 1.6 (API level 4) and
|
||||
|
||||
@@ -23,7 +23,7 @@ previous.link=screens.html
|
||||
<ul>
|
||||
<li><a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#ApiLevels">Android API Levels</a></li>
|
||||
<li><a
|
||||
href="{@docRoot}tools/extras/support-library.html">Android Support Library</a></li>
|
||||
href="{@docRoot}tools/support-library/index.html">Android Support Library</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -42,7 +42,7 @@ targeting your app to the latest version.</p>
|
||||
|
||||
<p class="note"><strong>Tip:</strong> In order to provide the best features and
|
||||
functionality across several Android versions, you should use the <a
|
||||
href="{@docRoot}tools/extras/support-library.html">Android Support Library</a> in your app,
|
||||
href="{@docRoot}tools/support-library/index.html">Android Support Library</a> in your app,
|
||||
which allows you to use several recent platform APIs on older versions.</p>
|
||||
|
||||
|
||||
|
||||
@@ -121,5 +121,5 @@ previous.link=ancestral-temporal.html
|
||||
<li><a href="{@docRoot}guide/topics/ui/index.html">Developer's Guide: User Interface</a>: learn how to implement your user interface designs using the Android SDK.</li>
|
||||
<li><a href="{@docRoot}guide/topics/ui/actionbar.html">Action Bar</a>: implement tabs, up navigation, on-screen actions, etc.
|
||||
<li><a href="{@docRoot}guide/components/fragments.html">Fragments</a>: implement re-usable, multi-pane layouts
|
||||
<li><a href="{@docRoot}tools/extras/support-library.html">Support Library</a>: implement horizontal paging (swipe views) using <code>ViewPager</code></li>
|
||||
<li><a href="{@docRoot}tools/support-library/index.html">Support Library</a>: implement horizontal paging (swipe views) using <code>ViewPager</code></li>
|
||||
</ul>
|
||||
|
||||
@@ -12,7 +12,7 @@ startpage=true
|
||||
<h2>Dependencies and prerequisites</h2>
|
||||
<ul>
|
||||
<li>Android 2.1 (API Level 7) or higher</li>
|
||||
<li><a href="{@docRoot}tools/extras/support-library.html">Support Library</a></li>
|
||||
<li><a href="{@docRoot}tools/support-library/index.html">Support Library</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Try it out</h2>
|
||||
|
||||
@@ -58,7 +58,7 @@ gestures your app supports. </li>
|
||||
|
||||
<p>The examples in this lesson use the {@link android.support.v4.view.GestureDetectorCompat}
|
||||
and {@link android.support.v4.view.MotionEventCompat} classes. These classes are in the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a>. You should use
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a>. You should use
|
||||
Support Library classes where possible to provide compatibility with devices
|
||||
running Android 1.6 and higher. Note that {@link android.support.v4.view.MotionEventCompat} is <em>not</em> a
|
||||
replacement for the {@link android.view.MotionEvent} class. Rather, it provides static utility
|
||||
|
||||
@@ -91,7 +91,7 @@ determining factor in tracking a gesture's characteristics or even deciding
|
||||
whether the gesture occurred. To make velocity calculation easier, Android
|
||||
provides the {@link android.view.VelocityTracker} class and the
|
||||
{@link android.support.v4.view.VelocityTrackerCompat} class in the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a>.
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a>.
|
||||
{@link
|
||||
android.view.VelocityTracker} helps you track the velocity of touch events. This
|
||||
is useful for gestures in which velocity is part of the criteria for the
|
||||
|
||||
@@ -123,7 +123,7 @@ the pointer associated with the action. This is illustrated in the snippet below
|
||||
<p class="note"><strong>Note:</strong> This example uses the
|
||||
{@link android.support.v4.view.MotionEventCompat}
|
||||
class. This class is in the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a>. You should use
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a>. You should use
|
||||
{@link android.support.v4.view.MotionEventCompat} to provide the best support for a wide range of
|
||||
platforms. Note that {@link android.support.v4.view.MotionEventCompat} is <em>not</em> a
|
||||
replacement for the {@link android.view.MotionEvent} class. Rather, it provides static utility
|
||||
|
||||
@@ -69,7 +69,7 @@ in the <a href="{@docRoot}guide/topics/manifest/activity-element.html">{@code &l
|
||||
element.</p>
|
||||
|
||||
<p>If your app supports Android 4.0 and lower, include the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a> with your app and
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a> with your app and
|
||||
add a <a href="{@docRoot}guide/topics/manifest/meta-data-element.html">{@code <meta-data>}</a>
|
||||
element inside the <a href="{@docRoot}guide/topics/manifest/activity-element.html">{@code
|
||||
<activity>}</a>. Then specify the parent activity as the value
|
||||
|
||||
@@ -13,7 +13,7 @@ startpage=true
|
||||
<ul>
|
||||
<li>Android 2.2 or higher</li>
|
||||
<li>Understanding of fragments and Android layouts</li>
|
||||
<li><a href="{@docRoot}tools/extras/support-library.html">Android Support Library</a></li>
|
||||
<li><a href="{@docRoot}tools/support-library/index.html">Android Support Library</a></li>
|
||||
<li><a href="{@docRoot}training/design-navigation/index.html">Designing Effective Navigation</a></li>
|
||||
</ul>
|
||||
|
||||
@@ -46,7 +46,7 @@ implement navigation patterns with tabs, swipe views, and a navigation drawer. Y
|
||||
understand how to provide proper <em>Up</em> and <em>Back</em> navigation.</p>
|
||||
|
||||
<p class="note"><strong>Note:</strong> Several elements of this class require the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a> APIs.
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a> APIs.
|
||||
If you have not used the Support Library before, follow the lesson about <a
|
||||
href="{@docRoot}training/basics/fragments/support-lib.html">Using the Support Library</a>
|
||||
to get your project set up.</p>
|
||||
|
||||
@@ -57,7 +57,7 @@ Views</a> design guide.</p>
|
||||
|
||||
<p>You can create swipe views in your app using the {@link android.support.v4.view.ViewPager}
|
||||
widget, available in the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a>. The
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a>. The
|
||||
{@link android.support.v4.view.ViewPager} is a layout widget in which each child view is
|
||||
a separate page (a separate tab) in the layout.</p>
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ app, the user touches the app icon in the action bar.</p>
|
||||
|
||||
<p>This lesson describes how to implement a navigation drawer using the
|
||||
{@link android.support.v4.widget.DrawerLayout} APIs available in the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a>.</p>
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a>.</p>
|
||||
|
||||
<div class="note design">
|
||||
<p><strong>Navigation Drawer Design</strong></p>
|
||||
|
||||
@@ -85,7 +85,7 @@ because it can determine the logical <em>Back</em> or <em>Up</em> navigation pat
|
||||
information.</p>
|
||||
|
||||
<p>If your app supports Android 4.0 and lower, include the
|
||||
<a href="{@docRoot}tools/extras/support-library.html">Support Library</a> with your app and
|
||||
<a href="{@docRoot}tools/support-library/index.html">Support Library</a> with your app and
|
||||
add a <a href="{@docRoot}guide/topics/manifest/meta-data-element.html">{@code <meta-data>}</a>
|
||||
element inside the <a href="{@docRoot}guide/topics/manifest/activity-element.html">{@code
|
||||
<activity>}</a>. Then specify the parent activity as the value
|
||||
|
||||
@@ -19,7 +19,7 @@ href="http://developer.android.com/guide/components/activities.html">Activities<
|
||||
<li>Experience building an Android <a
|
||||
href="http://developer.android.com/guide/topics/ui/index.html"> User Interface</a></li>
|
||||
<li>Several features require the use of the <a
|
||||
href="{@docRoot}tools/extras/support-library.html">support library</a></li>
|
||||
href="{@docRoot}tools/support-library/index.html">support library</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>You should also read</h2>
|
||||
@@ -58,7 +58,7 @@ optimizing for multiple screens. You can download the sample (to the right) and
|
||||
of reusable code for your own application.</p>
|
||||
|
||||
<p class="note"><strong>Note:</strong> This class and the associated sample use the <a
|
||||
href="{@docRoot}tools/extras/support-library.html">support library</a> in order to use the {@link
|
||||
href="{@docRoot}tools/support-library/index.html">support library</a> in order to use the {@link
|
||||
android.app.Fragment} APIs on versions lower than Android 3.0. You must download and add the
|
||||
library to your application in order to use all APIs in this class.</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user