summaryrefslogtreecommitdiffstats
path: root/docs/html
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2013-08-01 10:54:16 -0700
committerScott Main <smain@google.com>2013-08-01 15:02:15 -0700
commitc4c7463f546ffb2eec7985c0a3d0203cbb8381bb (patch)
tree4cafed7aad2bca5dc7ca502560b255f2e3402014 /docs/html
parent4633a50b6ddf630543e7778e00e084106e503c38 (diff)
downloadframeworks_base-c4c7463f546ffb2eec7985c0a3d0203cbb8381bb.zip
frameworks_base-c4c7463f546ffb2eec7985c0a3d0203cbb8381bb.tar.gz
frameworks_base-c4c7463f546ffb2eec7985c0a3d0203cbb8381bb.tar.bz2
add note about VideoView "wrap_content" layout issue
bug: 9364101 Change-Id: I21881b30f338e9cdd7ffaa509edcf71e9478ded5
Diffstat (limited to 'docs/html')
-rw-r--r--docs/html/about/versions/android-4.3.jd16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/html/about/versions/android-4.3.jd b/docs/html/about/versions/android-4.3.jd
index bccc9d5..326919e 100644
--- a/docs/html/about/versions/android-4.3.jd
+++ b/docs/html/about/versions/android-4.3.jd
@@ -19,6 +19,7 @@ sdk.platform.apiLevel=18
<ol>
<li><a href="#BehaviorsIntents">If your app uses implicit intents...</a></li>
<li><a href="#BehaviorsAccounts">If your app depends on accounts...</a></li>
+ <li><a href="#BehaviorsVideoView">If your app uses VideoView...</a></li>
</ol>
</li>
<li><a href="#RestrictedProfiles">Restricted Profiles</a>
@@ -213,6 +214,21 @@ information, see the section
below about <a href="#AccountsInProfile">Supporting accounts in a restricted profile</a>.</p>
+<h3 id="#BehaviorsVideoView">If your app uses VideoView...</h3>
+
+<p>Your video might appear smaller on Android 4.3.</p>
+
+<p>On previous versions of Android, the {@link android.widget.VideoView} widget incorrectly
+calculated the {@code "wrap_content"} value for {@link android.R.attr#layout_height} and {@link
+android.R.attr#layout_width} to be the same as {@code "match_parent"}. So while using {@code
+"wrap_content"} for the height or width may have previously provided your desired video layout,
+doing so may result in a much smaller video on Android 4.3 and higher. To fix the issue, replace
+{@code "wrap_content"} with {@code "match_parent"} and verify your video appears as expected on
+Android 4.3 as well as on older versions.</p>
+
+
+
+
<h2 id="RestrictedProfiles">Restricted Profiles</h2>