Merge "Fix drawer layout sample app layout issue." into mnc-ub-dev

This commit is contained in:
Kirill Grouchnikov
2015-12-04 15:34:00 +00:00
committed by Android (Google) Code Review

View File

@@ -40,11 +40,14 @@
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
<!-- Note layout_marginTop attribute with action bar height as the value. <!-- Note layout_marginTop attribute with action bar height as the value.
This "pushes" down the main content so that it doesn't overlap with This "pushes" down the main content so that it doesn't overlap with
the toolbar. --> the toolbar. Note the usage of layout_gravity that addresses a bug in
FrameLayout on v9 and older devices that didn't correctly treat the
margin attributes. -->
<ScrollView <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="?attr/actionBarSize" android:layout_marginTop="?attr/actionBarSize"
android:layout_gravity="top"
android:scrollbarStyle="outsideOverlay"> android:scrollbarStyle="outsideOverlay">
<TextView <TextView
android:id="@+id/content_text" android:id="@+id/content_text"