Skip to content

Commit fe7b93f

Browse files
committed
Adding links for the last few files requested by PMs.
Change-Id: If93e894a690ee5bef4b59caa234a97e3f0f7f6e4
1 parent 4842228 commit fe7b93f

3 files changed

Lines changed: 44 additions & 16 deletions

File tree

docs/html/design/patterns/notifications.jd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ page.tags="notifications","design","L"
1515
</div>
1616
</a>
1717

18+
<!-- video box -->
19+
<a class="notice-developers-video" href="https://www.youtube.com/watch?v=Uiq2kZ2JHVY">
20+
<div>
21+
<h3>Video</h3>
22+
<p>DevBytes: Notifications in the Android L Developer Preview</p>
23+
</div>
24+
</a>
25+
1826
<style>
1927
.col-5, .col-6, .col-7 {
2028
margin-left:0px;

docs/html/training/multiscreen/screendensities.jd

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ next.link=adaptui.html
1515

1616

1717
<!-- This is the training bar -->
18-
<div id="tb-wrapper">
19-
<div id="tb">
18+
<div id="tb-wrapper">
19+
<div id="tb">
2020

2121
<h2>This lesson teaches you to</h2>
2222
<ol>
@@ -33,16 +33,15 @@ Guidelines</a></li>
3333
</ul>
3434

3535
<h2>Try it out</h2>
36-
37-
<div class="download-box">
36+
37+
<div class="download-box">
3838
<a href="http://developer.android.com/shareables/training/NewsReader.zip" class="button">Download
3939
the sample app</a>
40-
<p class="filename">NewsReader.zip</p>
41-
</div>
42-
43-
44-
</div>
45-
</div>
40+
<p class="filename">NewsReader.zip</p>
41+
</div>
42+
43+
</div>
44+
</div>
4645

4746
<p>This lesson shows you how to support different screen densities
4847
by providing different resources and using resolution-independent units of
@@ -54,28 +53,38 @@ measurements.</p>
5453
absolute pixels to define distances or sizes. Defining layout dimensions with
5554
pixels is a problem because different screens have different pixel densities,
5655
so the same number of pixels may correspond to different physical sizes on
57-
different devices. Therefore, when specifying dimensions, always use either
56+
different devices. Therefore, when specifying dimensions, always use either
5857
<code>dp</code> or <code>sp</code> units. A <code>dp</code> is a density-independent pixel
5958
that corresponds to the physical size of a pixel at 160 dpi. An <code>sp</code> is the same
6059
base unit, but is scaled by the user's preferred text size (it’s a
6160
scale-independent pixel), so you should use this measurement unit when defining
6261
text size (but never for layout sizes).</p>
6362

64-
<p>For example, when you specify spacing between two views, use <code>dp</code>
63+
<!-- video box -->
64+
<a class="notice-developers-video left" href="https://www.youtube.com/watch?v=zhszwkcay2A">
65+
<div>
66+
<h3>Video</h3>
67+
<p>DesignBytes: Density-independent Pixels</p>
68+
</div>
69+
</a>
70+
71+
<br style="clear:left">
72+
73+
<p>For example, when you specify spacing between two views, use <code>dp</code>
6574
rather than <code>px</code>:</p>
6675

6776
<pre>
68-
&lt;Button android:layout_width="wrap_content"
69-
android:layout_height="wrap_content"
77+
&lt;Button android:layout_width="wrap_content"
78+
android:layout_height="wrap_content"
7079
android:text="&#64;string/clickme"
7180
android:layout_marginTop="20dp" /&gt;
7281
</pre>
7382

7483
<p>When specifying text size, always use <code>sp</code>:</p>
7584

7685
<pre>
77-
&lt;TextView android:layout_width="match_parent"
78-
android:layout_height="wrap_content"
86+
&lt;TextView android:layout_width="match_parent"
87+
android:layout_height="wrap_content"
7988
android:textSize="20sp" /&gt;
8089
</pre>
8190

docs/html/training/tv/playback/index.jd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,19 @@ startpage=true
1717
<li><a href="{@docRoot}design/tv/index.html">
1818
Design for TV</a></li>
1919
</ul>
20+
21+
</div>
2022
</div>
23+
24+
<!-- video box -->
25+
<a class="notice-developers-video" href="https://www.youtube.com/watch?v=72K1VhjoL98">
26+
<div>
27+
<h3>Video</h3>
28+
<p>DevBytes: Android TV &mdash; Using the Leanback library</p>
2129
</div>
30+
</a>
31+
32+
2233

2334
<p>
2435
Browsing and playing media files is frequently part of the user experience provided by a TV app.

0 commit comments

Comments
 (0)