Android Studio - how do I change the size of icons? -


i'm building app android studio, , 1 of activities (which lets user draw on canvas) has 'toolbar', things 'clear', 'undo', 'redo' etc.

i'm using built-in icons - ie go 'drawables' folder, right-click, go 'add vector asset' , select appropriate icon. i've figured out can change size of icon gets added, can't figure out how use that.

so, on phone screen, i'd use standard 24dp icons. however, on tablet screen, i'd icon bigger, they're bit lost on bigger screen.

i can't figure out how this, though, , i'm not sure whether i'm using right approach. know can create different drawables sub-folders different densities, it's not density matters actual screen size.

what's best way go this?

thanks!

you should increase toolbar height, icon fit container automatically.

in case, if want change size of icon, double-click xml file of icon , change width , height inside. not touch viewportwidth , viewportheight parameters!

in general, should not this, wouldn't follow google guidelines.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -