summaryrefslogtreecommitdiffstats
path: root/current/support/design/res
diff options
context:
space:
mode:
authorChris Banes <chrisbanes@google.com>2015-03-02 09:04:03 +0000
committerChris Banes <chrisbanes@google.com>2015-03-02 09:04:03 +0000
commit8ac0dd3bd3c4b98528c27f5f7fa8a7e859410447 (patch)
tree3193aef2cb3026869fbe1781a0dce5d8bf11ce8c /current/support/design/res
parent4bff9b267cbb5cb51d0a031beba69e68ffb2d04a (diff)
downloadprebuilts_sdk-8ac0dd3bd3c4b98528c27f5f7fa8a7e859410447.zip
prebuilts_sdk-8ac0dd3bd3c4b98528c27f5f7fa8a7e859410447.tar.gz
prebuilts_sdk-8ac0dd3bd3c4b98528c27f5f7fa8a7e859410447.tar.bz2
Update current SDK prebuilt to AAY60 #1761955
Change-Id: If5237927e55ffe933fbe09c812c03da01ef14f1c
Diffstat (limited to 'current/support/design/res')
-rw-r--r--current/support/design/res/drawable/drawer_separator_background.xml19
-rw-r--r--current/support/design/res/layout/design_navigation_item.xml (renamed from current/support/design/res/layout/design_drawer_item.xml)5
-rw-r--r--current/support/design/res/layout/design_navigation_item_separator.xml (renamed from current/support/design/res/layout/design_drawer_item_separator.xml)15
-rw-r--r--current/support/design/res/layout/design_navigation_item_space.xml (renamed from current/support/design/res/layout/design_drawer_item_space.xml)0
-rw-r--r--current/support/design/res/layout/design_navigation_item_subheader.xml (renamed from current/support/design/res/layout/design_drawer_item_subheader.xml)0
-rw-r--r--current/support/design/res/layout/design_navigation_menu.xml (renamed from current/support/design/res/layout/design_drawer_menu.xml)2
-rw-r--r--current/support/design/res/values-v21/dimens.xml2
-rw-r--r--current/support/design/res/values/attrs.xml64
-rw-r--r--current/support/design/res/values/dimens.xml15
-rw-r--r--current/support/design/res/values/styles.xml6
10 files changed, 87 insertions, 41 deletions
diff --git a/current/support/design/res/drawable/drawer_separator_background.xml b/current/support/design/res/drawable/drawer_separator_background.xml
deleted file mode 100644
index 28df8f1..0000000
--- a/current/support/design/res/drawable/drawer_separator_background.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?><!--
- ~ Copyright (C) 2015 The Android Open Source Project
- ~
- ~ Licensed under the Apache License, Version 2.0 (the "License");
- ~ you may not use this file except in compliance with the License.
- ~ You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing, software
- ~ distributed under the License is distributed on an "AS IS" BASIS,
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ~ See the License for the specific language governing permissions and
- ~ limitations under the License.
--->
-<inset xmlns:android="http://schemas.android.com/apk/res/android"
- android:drawable="?android:attr/listDivider"
- android:insetBottom="@dimen/drawer_separator_vertical_margin"
- android:insetTop="@dimen/drawer_separator_vertical_margin" />
diff --git a/current/support/design/res/layout/design_drawer_item.xml b/current/support/design/res/layout/design_navigation_item.xml
index e5ad38c..6f86719 100644
--- a/current/support/design/res/layout/design_drawer_item.xml
+++ b/current/support/design/res/layout/design_navigation_item.xml
@@ -20,8 +20,7 @@
android:layout_height="?attr/listPreferredItemHeightSmall"
android:paddingLeft="?attr/listPreferredItemPaddingLeft"
android:paddingRight="?attr/listPreferredItemPaddingRight"
- android:drawablePadding="@dimen/drawer_icon_padding"
+ android:drawablePadding="@dimen/navigation_icon_padding"
android:gravity="center_vertical|start"
android:maxLines="1"
- android:textAppearance="?attr/textAppearanceListItem"
- android:textColor="?android:attr/textColorPrimary"/>
+ android:textAppearance="?attr/textAppearanceListItem"/>
diff --git a/current/support/design/res/layout/design_drawer_item_separator.xml b/current/support/design/res/layout/design_navigation_item_separator.xml
index 692f865..fb786aa 100644
--- a/current/support/design/res/layout/design_drawer_item_separator.xml
+++ b/current/support/design/res/layout/design_navigation_item_separator.xml
@@ -14,7 +14,14 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
-<View xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="@dimen/drawer_separator_overall_height"
- android:background="@drawable/drawer_separator_background"/>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="@dimen/navigation_separator_vertical_padding"
+ android:paddingBottom="@dimen/navigation_separator_vertical_padding">
+
+ <View android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="?android:attr/listDivider"/>
+
+</FrameLayout>
diff --git a/current/support/design/res/layout/design_drawer_item_space.xml b/current/support/design/res/layout/design_navigation_item_space.xml
index e8e7b2f..e8e7b2f 100644
--- a/current/support/design/res/layout/design_drawer_item_space.xml
+++ b/current/support/design/res/layout/design_navigation_item_space.xml
diff --git a/current/support/design/res/layout/design_drawer_item_subheader.xml b/current/support/design/res/layout/design_navigation_item_subheader.xml
index 9a1a810..9a1a810 100644
--- a/current/support/design/res/layout/design_drawer_item_subheader.xml
+++ b/current/support/design/res/layout/design_navigation_item_subheader.xml
diff --git a/current/support/design/res/layout/design_drawer_menu.xml b/current/support/design/res/layout/design_navigation_menu.xml
index 62d6fd5..6c75423 100644
--- a/current/support/design/res/layout/design_drawer_menu.xml
+++ b/current/support/design/res/layout/design_navigation_menu.xml
@@ -18,7 +18,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:paddingTop="@dimen/drawer_padding_top_default"
+ android:paddingTop="@dimen/navigation_padding_top_default"
android:clipToPadding="false"
android:divider="@null"
android:listSelector="?attr/selectableItemBackground"/>
diff --git a/current/support/design/res/values-v21/dimens.xml b/current/support/design/res/values-v21/dimens.xml
index b8a4d37..2a67937 100644
--- a/current/support/design/res/values-v21/dimens.xml
+++ b/current/support/design/res/values-v21/dimens.xml
@@ -15,5 +15,5 @@
~ limitations under the License.
-->
<resources>
- <dimen name="drawer_padding_top_default">24dp</dimen>
+ <dimen name="navigation_padding_top_default">24dp</dimen>
</resources>
diff --git a/current/support/design/res/values/attrs.xml b/current/support/design/res/values/attrs.xml
index 23f618c..7a5582e 100644
--- a/current/support/design/res/values/attrs.xml
+++ b/current/support/design/res/values/attrs.xml
@@ -39,11 +39,13 @@
<attr name="insetForeground" format="color|reference" />
</declare-styleable>
- <declare-styleable name="NavigationDrawerView">
+ <declare-styleable name="NavigationView">
<attr name="android:elevation" />
<attr name="android:background" />
<attr name="android:fitsSystemWindows" />
<attr name="android:maxWidth" />
+ <attr name="itemTint" format="color|reference" />
+ <attr name="itemBackground" format="reference" />
</declare-styleable>
<declare-styleable name="TabLayout">
@@ -79,5 +81,65 @@
<attr name="tabPadding" format="dimension" />
</declare-styleable>
+ <declare-styleable name="CoordinatorLayout">
+ <!-- A reference to an array of integers representing the
+ locations of horizontal keylines in dp from the starting edge.
+ Child views can refer to these keylines for alignment using
+ layout_keyline="index" where index is a 0-based index into
+ this array. -->
+ <attr name="keylines" format="reference" />
+ </declare-styleable>
+
+ <declare-styleable name="CoordinatorLayout_LayoutParams">
+ <attr name="android:layout_gravity" />
+ <!-- The class name of a Behavior class defining special runtime behavior
+ for this child view. -->
+ <attr name="layout_behavior" format="string" />
+ <!-- The id of an anchor view that this view should position relative to. -->
+ <attr name="layout_anchor" format="reference" />
+ <!-- The index of a keyline this view should position relative to.
+ android:layout_gravity will affect how the view aligns to the
+ specified keyline. -->
+ <attr name="layout_keyline" format="integer" />
+
+ <!-- Specifies how an object should position relative to an anchor, on both the X and Y axes,
+ within its parent's bounds. -->
+ <attr name="layout_anchorGravity">
+ <!-- Push object to the top of its container, not changing its size. -->
+ <flag name="top" value="0x30" />
+ <!-- Push object to the bottom of its container, not changing its size. -->
+ <flag name="bottom" value="0x50" />
+ <!-- Push object to the left of its container, not changing its size. -->
+ <flag name="left" value="0x03" />
+ <!-- Push object to the right of its container, not changing its size. -->
+ <flag name="right" value="0x05" />
+ <!-- Place object in the vertical center of its container, not changing its size. -->
+ <flag name="center_vertical" value="0x10" />
+ <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
+ <flag name="fill_vertical" value="0x70" />
+ <!-- Place object in the horizontal center of its container, not changing its size. -->
+ <flag name="center_horizontal" value="0x01" />
+ <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
+ <flag name="fill_horizontal" value="0x07" />
+ <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
+ <flag name="center" value="0x11" />
+ <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
+ <flag name="fill" value="0x77" />
+ <!-- Additional option that can be set to have the top and/or bottom edges of
+ the child clipped to its container's bounds.
+ The clip will be based on the vertical gravity: a top gravity will clip the bottom
+ edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
+ <flag name="clip_vertical" value="0x80" />
+ <!-- Additional option that can be set to have the left and/or right edges of
+ the child clipped to its container's bounds.
+ The clip will be based on the horizontal gravity: a left gravity will clip the right
+ edge, a right gravity will clip the left edge, and neither will clip both edges. -->
+ <flag name="clip_horizontal" value="0x08" />
+ <!-- Push object to the beginning of its container, not changing its size. -->
+ <flag name="start" value="0x00800003" />
+ <!-- Push object to the end of its container, not changing its size. -->
+ <flag name="end" value="0x00800005" />
+ </attr>
+ </declare-styleable>
</resources>
diff --git a/current/support/design/res/values/dimens.xml b/current/support/design/res/values/dimens.xml
index f7ef4a4..bb96119 100644
--- a/current/support/design/res/values/dimens.xml
+++ b/current/support/design/res/values/dimens.xml
@@ -22,17 +22,14 @@
<dimen name="fab_size_normal">56dp</dimen>
<dimen name="fab_size_mini">40dp</dimen>
- <dimen name="drawer_max_width">320dp</dimen>
- <dimen name="drawer_elevation">12dp</dimen>
- <dimen name="drawer_icon_padding">32dp</dimen>
- <dimen name="drawer_icon_size">24dp</dimen>
+ <dimen name="navigation_max_width">320dp</dimen>
+ <dimen name="navigation_elevation">12dp</dimen>
+ <dimen name="navigation_icon_padding">32dp</dimen>
+ <dimen name="navigation_icon_size">24dp</dimen>
+ <dimen name="navigation_separator_vertical_padding">8dp</dimen>
+ <dimen name="navigation_padding_top_default">0dp</dimen>
<dimen name="tab_min_width">72dp</dimen>
<dimen name="tab_max_width">264dp</dimen>
- <dimen name="drawer_separator_vertical_margin">8dp</dimen>
- <!-- This needs to be drawer_separator_vertical_margin * 2 + 1 -->
- <dimen name="drawer_separator_overall_height">17dp</dimen>
- <dimen name="drawer_padding_top_default">0dp</dimen>
-
</resources>
diff --git a/current/support/design/res/values/styles.xml b/current/support/design/res/values/styles.xml
index ecfaab4..f00293b 100644
--- a/current/support/design/res/values/styles.xml
+++ b/current/support/design/res/values/styles.xml
@@ -30,11 +30,11 @@
<item name="insetForeground">#4000</item>
</style>
- <style name="Widget.Design.NavigationDrawerView" parent="">
- <item name="android:elevation">@dimen/drawer_elevation</item>
+ <style name="Widget.Design.NavigationView" parent="">
+ <item name="android:elevation">@dimen/navigation_elevation</item>
<item name="android:background">?android:attr/windowBackground</item>
<item name="android:fitsSystemWindows">true</item>
- <item name="android:maxWidth">@dimen/drawer_max_width</item>
+ <item name="android:maxWidth">@dimen/navigation_max_width</item>
</style>
<style name="Widget.Design.TabLayout" parent="Base.Widget.Design.TabLayout">