diff options
| author | 2016-06-08 17:38:38 -0700 | |
|---|---|---|
| committer | 2016-06-09 16:47:25 +0000 | |
| commit | fa1965e31669fcaeffa19d40c1b76fd9623d78da (patch) | |
| tree | eb428e76dab8202969e5ff94c214dd83fc25b1fb | |
| parent | 396ed8d2cf8be827c0900e327ed0a6483c4476f2 (diff) | |
Swap fill_parent with match_parent in best practices doc.
Bug:
https://code.google.com/p/android/issues/detail?id=61600
Change-Id: I86ef4f69800c3271fe6e4a5b09a184b2de7f6bc9
(cherry picked from commit 309e97fc3c05135261d6c5e4ac054e53f081637c)
| -rw-r--r-- | docs/html/guide/practices/screens_support.jd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/html/guide/practices/screens_support.jd b/docs/html/guide/practices/screens_support.jd index 9faa6a6f05d4..1f5f472704e2 100644 --- a/docs/html/guide/practices/screens_support.jd +++ b/docs/html/guide/practices/screens_support.jd @@ -988,7 +988,7 @@ configurations.</p> on different screens:</p> <ol> - <li>Use {@code wrap_content}, {@code fill_parent}, or {@code dp} units when specifying + <li>Use {@code wrap_content}, {@code match_parent}, or {@code dp} units when specifying dimensions in an XML layout file</li> <li>Do not use hard coded pixel values in your application code</li> <li>Do not use {@code AbsoluteLayout} (it's deprecated)</li> @@ -998,7 +998,7 @@ dimensions in an XML layout file</li> <p>The following sections provide more details.</p> -<h3 id="use-relative">1. Use wrap_content, fill_parent, or the dp unit for layout dimensions</h3> +<h3 id="use-relative">1. Use wrap_content, match_parent, or the dp unit for layout dimensions</h3> <p>When defining the <a href="{@docRoot}reference/android/view/ViewGroup.LayoutParams.html#attr_android:layout_width" @@ -1006,7 +1006,7 @@ href="{@docRoot}reference/android/view/ViewGroup.LayoutParams.html#attr_android: href="{@docRoot}reference/android/view/ViewGroup.LayoutParams.html#attr_android:layout_height" >{@code android:layout_height}</a> for views in an XML layout file, using <code>"wrap_content"</code>, -<code>"fill_parent"</code> or <code>dp</code> units guarantees that the view is +<code>"match_parent"</code> or <code>dp</code> units guarantees that the view is given an appropriate size on the current device screen.</p> <p>For instance, a view with a <code>layout_width="100dp"</code> measures 100 pixels wide on |