Android-RTEditor icon indicating copy to clipboard operation
Android-RTEditor copied to clipboard

Suggestion: improving inflation of toolbar

Open AndroidDeveloperLB opened this issue 8 years ago • 0 comments

It is written:

Note that inflating the toolbar might take a moment (noticable) on certain devices because the included icons are high-resolution and each one comes in three different states (pressed, checked, normal). There's no workaround for this except using different icons with lower resolution.

Actually there is. Instead of a scrollView, you can use RecyclerView. This will inflate as needed. Also, instead of multiple files per icon, you can use a VectorDrawable per icon.

AndroidDeveloperLB avatar Feb 12 '18 11:02 AndroidDeveloperLB