File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -777,8 +777,8 @@ API and source code:
777777* ` CheckBox `
778778 * [ Class description] ( https://developer.android.com/reference/android/widget/CheckBox )
779779
780- ** Note** The ` CheckBox ` API is just one of several inputs that can implement the
781- icon button. See other
780+ ** Note: ** The ` CheckBox ` API is just one of several inputs that can implement
781+ the icon button. See other
782782[ selection controls] ( https://material.io/components/selection-controls/ ) for
783783more details.
784784
@@ -846,6 +846,14 @@ information.
846846* Ensure that the tooltip describes the button’s action, rather than
847847 the icon.
848848
849+ ** Note:** The examples below show how to create an icon button using ` Button `
850+ which will be inflated to ` MaterialButton ` when using a Material theme. There is
851+ a known performance issue where ` MaterialButton ` takes longer to initialize when
852+ compared to ` ImageButton ` or ` AppCompatImageButton ` , in large part because
853+ ` MaterialButton ` extends from ` AppCompatButton ` which supports more than just
854+ icon buttons. Consider using those pure icon button alternatives if the extra
855+ latency causes a noticeable issue for your app.
856+
849857#### Icon button examples
850858
851859API and source code:
You can’t perform that action at this time.
0 commit comments