Lines Matching full:snackbar
2 page.tags="Snackbar" "popup" "pop-up"
28 You can use a {@link android.support.design.widget.Snackbar} to display a brief
30 period. A {@link android.support.design.widget.Snackbar} is ideal
33 android.support.design.widget.Snackbar} to tell the user that the app
40 A {@link android.support.design.widget.Snackbar} is attached to a view. The
41 {@link android.support.design.widget.Snackbar} provides basic functionality
44 {@link android.support.design.widget.Snackbar}
46 {@link android.support.design.widget.Snackbar} gains additional features:
50 <li>The user can dismiss the {@link android.support.design.widget.Snackbar}
55 android.support.design.widget.Snackbar} appears. For example, if the layout
58 android.support.design.widget.Snackbar}, instead of drawing the {@link
59 android.support.design.widget.Snackbar} on top of the button. You can see how
69 enable the full {@link android.support.design.widget.Snackbar} functionality.
103 alt="If the Snackbar is attached to a CoordinatorLayout, the layout
104 moves other elements up when it shows the Snackbar.">
106 <source src="{@docRoot}images/training/snackbar/snackbar_button_move.mp4">
113 when the {@link android.support.design.widget.Snackbar} appears.
122 android.support.design.widget.Snackbar} object with the message text. Then,
123 you call that object's {@link android.support.design.widget.Snackbar#show
127 <h3 id="create-snackbar">Creating a Snackbar object</h3>
130 Create a {@link android.support.design.widget.Snackbar} object by
131 calling the static {@link android.support.design.widget.Snackbar#make
132 Snackbar.make()} method. When you create the {@link
133 android.support.design.widget.Snackbar}, you specify both the message it
137 <pre>Snackbar mySnackbar = Snackbar.make(viewId, stringId, duration);</pre>
145 The view to attach the {@link android.support.design.widget.Snackbar} to.
168 android.support.design.widget.Snackbar#LENGTH_SHORT LENGTH_SHORT} or {@link
169 android.support.design.widget.Snackbar#LENGTH_LONG LENGTH_LONG}.
173 <h3 id="show-snackbar">Showing the message to the user</h3>
176 Once you have created the {@link android.support.design.widget.Snackbar},
177 call its {@link android.support.design.widget.Snackbar#show show()} method to
178 display the {@link android.support.design.widget.Snackbar} to the user:
185 android.support.design.widget.Snackbar} objects at the same time, so if the
187 android.support.design.widget.Snackbar}, the system queues your {@link
188 android.support.design.widget.Snackbar} and displays it after the current
189 {@link android.support.design.widget.Snackbar} expires or is dismissed.
194 the {@link android.support.design.widget.Snackbar} object's utility methods,
196 android.support.design.widget.Snackbar} after you call {@link
197 android.support.design.widget.Snackbar#show show()}. For this reason, it's
199 android.support.design.widget.Snackbar} in one statement:
202 <pre>Snackbar.make(findViewById(R.id.myCoordinatorLayout), R.string.email_sent,
203 Snackbar.LENGTH_SHORT)