Skip to content

Commit 375eb82

Browse files
committed
Update docs to point to new widget class locations
PiperOrigin-RevId: 193539651
1 parent a4815b0 commit 375eb82

15 files changed

+84
-91
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Material Components for Android are based on Android’s Design support library
1616
- [All Components](https://github.com/material-components/material-components-android/tree/master/lib/)
1717
- [Contributing](docs/contributing.md)
1818
- [Class
19-
documentation](https://developer.android.com/reference/com/google/android/material/widget/package-summary.html)
19+
documentation](https://developer.android.com/reference/com/google/android/material/package-summary.html)
2020
(external site)
2121
- [MDC-Android on Stack
2222
Overflow](https://www.stackoverflow.com/questions/tagged/material-components+android)

docs/components/AppBarLayout.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ responsiveness to scrolling.
2525
techniques](https://material.io/guidelines/patterns/scrolling-techniques.html)
2626
<!--{: .icon-list-item.icon-list-item--spec }-->
2727
* [Class
28-
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/widget/AppBarLayout.java)
28+
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/appbar/AppBarLayout.java)
2929
<!--{: .icon-list-item.icon-list-item--link }-->
3030
<!-- Styles for list items requiring icons instead of standard bullets. -->
3131
* [Class
32-
overview](https://developer.android.com/reference/com/google/android/material/widget/AppBarLayout.html)
32+
overview](https://developer.android.com/reference/com/google/android/material/appbar/AppBarLayout.html)
3333
<!--{: .icon-list-item.icon-list-item--link }--> <!--{: .icon-list }-->
3434

3535
As a container for Toolbars, and other views, it works with
@@ -45,12 +45,12 @@ respond to scrolling. These are interpreted by the `AppBarLayout.LayoutParams`.
4545

4646
**Available flags are:**
4747

48-
* [enterAlways](https://developer.android.com/reference/com/google/android/material/widget/AppBarLayout.LayoutParams.html#SCROLL_FLAG_ENTER_ALWAYS)
49-
* [enterAlwaysCollapsed](https://developer.android.com/reference/com/google/android/material/widget/AppBarLayout.LayoutParams.html#SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED)
50-
* [exitUntilCollapsed](https://developer.android.com/reference/com/google/android/material/widget/AppBarLayout.LayoutParams.html#SCROLL_FLAG_EXIT_UNTIL_COLLAPSED)
51-
* [scroll](https://developer.android.com/reference/com/google/android/material/widget/AppBarLayout.LayoutParams.html#SCROLL_FLAG_SCROLL)
52-
* [snap](https://developer.android.com/reference/com/google/android/material/widget/AppBarLayout.LayoutParams.html#SCROLL_FLAG_SNAP)
53-
* [snapMargins](https://developer.android.com/reference/com/google/android/material/widget/AppBarLayout.LayoutParams.html#SCROLL_FLAG_SNAP_MARGINS)
48+
* [enterAlways](https://developer.android.com/reference/com/google/android/material/appbar/AppBarLayout.LayoutParams.html#SCROLL_FLAG_ENTER_ALWAYS)
49+
* [enterAlwaysCollapsed](https://developer.android.com/reference/com/google/android/material/appbar/AppBarLayout.LayoutParams.html#SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED)
50+
* [exitUntilCollapsed](https://developer.android.com/reference/com/google/android/material/appbar/AppBarLayout.LayoutParams.html#SCROLL_FLAG_EXIT_UNTIL_COLLAPSED)
51+
* [scroll](https://developer.android.com/reference/com/google/android/material/appbar/AppBarLayout.LayoutParams.html#SCROLL_FLAG_SCROLL)
52+
* [snap](https://developer.android.com/reference/com/google/android/material/appbar/AppBarLayout.LayoutParams.html#SCROLL_FLAG_SNAP)
53+
* [snapMargins](https://developer.android.com/reference/com/google/android/material/appbar/AppBarLayout.LayoutParams.html#SCROLL_FLAG_SNAP_MARGINS)
5454

5555
Views using the scroll flag should be declared and visually positioned before
5656
other views in the `AppBarLayout`. This ensures that they are able to exit at the

docs/components/BottomAppBar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Here's an example of how to include the widget in your layout:
4343
android:layout_gravity="bottom"
4444
app:navigationIcon="@drawable/ic_menu_24"/>
4545

46-
<com.google.android.material.widget.FloatingActionButton
46+
<com.google.android.material.floatingactionbutton.FloatingActionButton
4747
android:id="@+id/fab"
4848
android:layout_width="wrap_content"
4949
android:layout_height="wrap_content"

docs/components/BottomNavigationView.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ navigate to.
2424
Navigation](https://material.io/guidelines/components/bottom-navigation.html)
2525
<!--{: .icon-list-item.icon-list-item--spec }-->
2626
- [Class
27-
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/widget/BottomNavigationView.java)
27+
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/bottomnavigation/BottomNavigationView.java)
2828
<!--{: .icon-list-item.icon-list-item--link }-->
2929
<!-- Styles for list items requiring icons instead of standard bullets. -->
3030
- [Class
31-
overview](https://developer.android.com/reference/com/google/android/material/widget/BottomNavigationView.html)
31+
overview](https://developer.android.com/reference/com/google/android/material/bottomnavigation/BottomNavigationView.html)
3232
<!--{: .icon-list-item.icon-list-item--link }--> <!--{: .icon-list }-->
3333

3434
## Usage
@@ -53,7 +53,7 @@ A typical layout file would look like this:
5353

5454
<!-- Main content -->
5555

56-
<com.google.android.material.widget.BottomNavigationView
56+
<com.google.android.material.bottomnavigation.BottomNavigationView
5757
android:id="@+id/bottom_navigation"
5858
android:layout_width="match_parent"
5959
android:layout_height="wrap_content"
@@ -89,7 +89,7 @@ For example, you could have a `bottom_navigation_colors.xml` that contains:
8989
And you would use it like this on your `BottomNavigationView`:
9090

9191
```xml
92-
<com.google.android.material.widget.BottomNavigationView
92+
<com.google.android.material.bottomnavigation.BottomNavigationView
9393
android:id="@+id/bottom_navigation"
9494
android:layout_width="match_parent"
9595
android:layout_height="wrap_content"

docs/components/BottomSheetBehavior.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ Note: If you want to use Bottom Sheets that are modal (dialogs), use
2929
Sheets](https://material.io/guidelines/components/bottom-sheets.html#bottom-sheets-persistent-bottom-sheets)
3030
<!--{: .icon-list-item.icon-list-item--spec }-->
3131
- [Class
32-
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/widget/BottomSheetBehavior.java)
32+
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/bottomsheet/BottomSheetBehavior.java)
3333
<!--{: .icon-list-item.icon-list-item--link }-->
3434
- [Class
35-
overview](https://developer.android.com/reference/com/google/android/material/widget/BottomSheetBehavior.html)
35+
overview](https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetBehavior.html)
3636
<!--{: .icon-list-item.icon-list-item--link }--> <!--{: .icon-list }-->
3737

3838
## Usage

docs/components/BottomSheetDialogFragment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ Note: To implement non-modal **Persistent bottom sheets** use
2828
Sheets](https://material.io/guidelines/components/bottom-sheets.html#bottom-sheets-modal-bottom-sheets)
2929
<!--{: .icon-list-item.icon-list-item--spec }-->
3030
- [Class
31-
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/widget/BottomSheetDialogFragment.java)
31+
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/bottomsheet/BottomSheetDialogFragment.java)
3232
<!--{: .icon-list-item.icon-list-item--link }-->
3333
<!-- Styles for list items requiring icons instead of standard bullets. -->
3434
- [Class
35-
overview](https://developer.android.com/reference/com/google/android/material/widget/BottomSheetDialogFragment.html)
35+
overview](https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetDialogFragment.html)
3636
<!--{: .icon-list-item.icon-list-item--link }--> <!--{: .icon-list }-->
3737

3838
## Usage

docs/components/CollapsingToolbarLayout.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ path: /catalog/collapsing-toolbar-layout/
1616
characteristics and interactions for **collapsing toolbars** specified in the
1717
material guidelines. To create the collapsing toolbar, `CollapsingToolbarLayout`
1818
integrates with
19-
[`AppBarLayout`](https://developer.android.com/reference/com/google/android/material/widget/AppBarLayout.html),
19+
[`AppBarLayout`](https://developer.android.com/reference/com/google/android/material/appbar/AppBarLayout.html),
2020
[`CoordinatorLayout`](https://developer.android.com/reference/android/support/design/widget/CoordinatorLayout.html),
2121
[`Toolbar`](https://developer.android.com/reference/android/support/v7/widget/Toolbar.html),
2222
and a scrollable content view, such as
@@ -31,10 +31,10 @@ and a scrollable content view, such as
3131
behavior](https://material.io/guidelines/patterns/scrolling-techniques.html#scrolling-techniques-behavior)
3232
<!--{: .icon-list-item.icon-list-item--spec }-->
3333
* [Class
34-
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/widget/CollapsingToolbarLayout.java)
34+
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/appbar/CollapsingToolbarLayout.java)
3535
<!--{: .icon-list-item.icon-list-item--link }-->
3636
* [Class
37-
overview](https://developer.android.com/reference/com/google/android/material/widget/CollapsingToolbarLayout.html)
37+
overview](https://developer.android.com/reference/com/google/android/material/appbar/CollapsingToolbarLayout.html)
3838
<!--{: .icon-list-item.icon-list-item--link }--> <!--{: .icon-list }-->
3939

4040
## Usage
@@ -54,11 +54,11 @@ A layout with a collapsing toolbar might look something like this:
5454

5555
<!-- Scrollable view here -->
5656

57-
<com.google.android.material.widget.AppBarLayout
57+
<com.google.android.material.appbar.AppBarLayout
5858
android:layout_width="match_parent"
5959
android:layout_height="@dimen/tall_toolbar_height">
6060

61-
<com.google.android.material.widget.CollapsingToolbarLayout
61+
<com.google.android.material.appbar.CollapsingToolbarLayout
6262
android:layout_width="match_parent"
6363
android:layout_height="match_parent"
6464
app:contentScrim="?attr/colorPrimary"
@@ -69,8 +69,8 @@ A layout with a collapsing toolbar might look something like this:
6969
android:layout_width="match_parent"
7070
android:layout_height="?attr/actionBarSize"
7171
app:layout_collapseMode="pin"/>
72-
</com.google.android.material.widget.CollapsingToolbarLayout>
73-
</com.google.android.material.widget.AppBarLayout>
72+
</com.google.android.material.appbar.CollapsingToolbarLayout>
73+
</com.google.android.material.appbar.AppBarLayout>
7474
</android.support.design.widget.CoordinatorLayout>
7575
```
7676

@@ -84,7 +84,7 @@ multipliers in the XML for as many of the siblings as you like.
8484
A toolbar with a collapsing image might look something like this:
8585

8686
```xml
87-
<com.google.android.material.widget.CollapsingToolbarLayout
87+
<com.google.android.material.appbar.CollapsingToolbarLayout
8888
android:layout_width="match_parent"
8989
android:layout_height="match_parent"
9090
app:contentScrim="?attr/colorPrimary"
@@ -105,15 +105,15 @@ A toolbar with a collapsing image might look something like this:
105105
android:layout_width="match_parent"
106106
android:layout_height="@dimen/shrine_toolbar_collapsed_height"
107107
app:layout_collapseMode="pin"/>
108-
</com.google.android.material.widget.CollapsingToolbarLayout>
108+
</com.google.android.material.appbar.CollapsingToolbarLayout>
109109
```
110110

111111
You can combine the basic collapsing toolbar with scroll flags,
112112
`CollapsingToolbarLayout`'s attributes, `TabViewLayout`, or any other view you
113113
would like to achieve your desired toolbar.
114114

115115
* Make sure to call
116-
[`setTitle()`](https://developer.android.com/reference/com/google/android/material/widget/CollapsingToolbarLayout.html#setTitle\(java.lang.CharSequence\))
116+
[`setTitle()`](https://developer.android.com/reference/com/google/android/material/appbar/CollapsingToolbarLayout.html#setTitle\(java.lang.CharSequence\))
117117
on the `CollapsingToolbarLayout` instead of the `Toolbar`. This allows
118118
`CollapsingToolbarLayout` the ability to resize the title based on the
119119
toolbar's current size.
@@ -128,5 +128,5 @@ would like to achieve your desired toolbar.
128128

129129
## Related Concepts
130130

131-
* [AppBarLayout](https://developer.android.com/reference/com/google/android/material/widget/AppBarLayout.html)
132-
* [TabLayout](https://developer.android.com/reference/com/google/android/material/widget/TabLayout.html)
131+
* [AppBarLayout](https://developer.android.com/reference/com/google/android/material/appbar/AppBarLayout.html)
132+
* [TabLayout](https://developer.android.com/reference/com/google/android/material/tabs/TabLayout.html)

docs/components/FloatingActionButton.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ other UI elements on the screen.
2929
Buttons](https://material.io/guidelines/components/buttons-floating-action-button.html)
3030
<!--{: .icon-list-item.icon-list-item--spec }-->
3131
- [Class
32-
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/widget/FloatingActionButton.java)
32+
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/floatingactionbutton/FloatingActionButton.java)
3333
<!--{: .icon-list-item.icon-list-item--link }-->
3434
- [Class
35-
overview](https://developer.android.com/reference/com/google/android/material/widget/FloatingActionButton.html)
35+
overview](https://developer.android.com/reference/com/google/android/material/floatingactionbutton/FloatingActionButton.html)
3636
<!--{: .icon-list-item.icon-list-item--link }--> <!--{: .icon-list }-->
3737

3838
## Usage
@@ -50,7 +50,7 @@ widget in your layout:
5050

5151
<!-- Main content -->
5252

53-
<com.google.android.material.widget.FloatingActionButton
53+
<com.google.android.material.floatingactionbutton.FloatingActionButton
5454
android:id="@+id/floating_action_button"
5555
android:layout_width="wrap_content"
5656
android:layout_height="wrap_content"
@@ -82,7 +82,7 @@ The updated Material `FloatingActionButton` style consists of updated elevation,
8282
ripple, and motion changes.
8383

8484
```xml
85-
<com.google.android.material.widget.FloatingActionButton
85+
<com.google.android.material.floatingactionbutton.FloatingActionButton
8686
android:id="@+id/floating_action_button"
8787
style="@/style/Widget.MaterialComponents.FloatingActionButton"
8888
android:layout_width="wrap_content"
@@ -95,7 +95,7 @@ ripple, and motion changes.
9595
#### Legacy Material Style
9696

9797
```xml
98-
<com.google.android.material.widget.FloatingActionButton
98+
<com.google.android.material.floatingactionbutton.FloatingActionButton
9999
android:id="@+id/floating_action_button"
100100
style="@/style/Widget.Design.FloatingActionButton"
101101
android:layout_width="wrap_content"

docs/components/NavigationView.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ side, used to display in-app navigation links.
2525
## Design & API Documentation
2626

2727
- [Class
28-
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/widget/NavigationView.java)
28+
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/navigation/NavigationView.java)
2929
<!--{: .icon-list-item.icon-list-item--link }-->
3030
- [Class
31-
overview](https://developer.android.com/reference/com/google/android/material/widget/NavigationView.html)
31+
overview](https://developer.android.com/reference/com/google/android/material/navigation/NavigationView.html)
3232
<!--{: .icon-list-item.icon-list-item--link }--> <!--{: .icon-list }-->
3333

3434
## Usage
@@ -38,7 +38,7 @@ side, used to display in-app navigation links.
3838
the menu.
3939

4040
```xml
41-
<com.google.android.material.widget.NavigationView
41+
<com.google.android.material.navigation.NavigationView
4242
android:id="@+id/navigation"
4343
android:layout_width="wrap_content"
4444
android:layout_height="match_parent"
@@ -89,7 +89,7 @@ this:
8989
<!-- Your content goes here -->
9090
</android.support.design.widget.CoordinatorLayout>
9191

92-
<com.google.android.material.widget.NavigationView
92+
<com.google.android.material.navigation.NavigationView
9393
android:id="@+id/navigation"
9494
android:layout_width="wrap_content"
9595
android:layout_height="match_parent"

docs/components/Snackbar.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ action that was just taken, or retrying an action that had failed.
2626
Snackbars](https://material.io/guidelines/components/snackbars-toasts.html)
2727
<!--{: .icon-list-item.icon-list-item--spec }-->
2828
- [Class
29-
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/widget/Snackbar.java)
29+
definition](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/snackbar/Snackbar.java)
3030
<!--{: .icon-list-item.icon-list-item--link }-->
3131
- [Class
32-
overview](https://developer.android.com/reference/com/google/android/material/widget/Snackbar.html)
32+
overview](https://developer.android.com/reference/com/google/android/material/snackbar/Snackbar.html)
3333
<!--{: .icon-list-item.icon-list-item--link }--> <!--{: .icon-list }-->
3434

3535
## Usage
@@ -45,9 +45,9 @@ could be found.
4545

4646
**Available duration presets are:**
4747

48-
- [LENGTH_INDEFINITE](https://developer.android.com/reference/com/google/android/material/widget/Snackbar.html#LENGTH_INDEFINITE)
49-
- [LENGTH_LONG](https://developer.android.com/reference/com/google/android/material/widget/Snackbar.html#LENGTH_LONG)
50-
- [LENGTH_SHORT](https://developer.android.com/reference/com/google/android/material/widget/Snackbar.html#LENGTH_SHORT)
48+
- [LENGTH_INDEFINITE](https://developer.android.com/reference/com/google/android/material/snackbar/Snackbar.html#LENGTH_INDEFINITE)
49+
- [LENGTH_LONG](https://developer.android.com/reference/com/google/android/material/snackbar/Snackbar.html#LENGTH_LONG)
50+
- [LENGTH_SHORT](https://developer.android.com/reference/com/google/android/material/snackbar/Snackbar.html#LENGTH_SHORT)
5151

5252
**NOTE:** Snackbars work best if they are displayed inside of a
5353
[CoordinatorLayout](https://developer.android.com/reference/android/support/design/widget/CoordinatorLayout.html).
@@ -99,7 +99,7 @@ Action text color can be customized through the `setActionTextColor` methods
9999

100100
Temporary bottom bars with other sorts of content layouts can be implemented by
101101
subclassing
102-
[BaseTransientBottomBar](https://developer.android.com/reference/com/google/android/material/widget/BaseTransientBottomBar.html).
102+
[BaseTransientBottomBar](https://developer.android.com/reference/com/google/android/material/snackbar/BaseTransientBottomBar.html).
103103

104104
Android also provides a
105105
[Toast](https://developer.android.com/reference/android/widget/Toast.html) class

0 commit comments

Comments
 (0)