Issue
How to positon the <item>
inside <layer-list>
Drawable? Thanks for any help.
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@drawable/radio_uncheck" /> //24dp from vector assset
<item
android:drawable="@drawable/check_mark" /> //24dp from vector asset
</layer-list>
Solution
I finally choose to modify the SVG image to meet my needs, following is the process:
Go to "https://materialdesignicons.com/" -> find image -> download SVG image.
Go to "https://editor.method.ac/" -> "File" -> "Open SVG..." -> choose SVG file -> "Open".
Adjust canvas width and height on the right panel.
Adjust the positon of the imported SVG image.
"File" -> "Save Image..." -> rename file -> "Download".
Import the SVG image to Android Studio as vector asset.
Answered By - Sam Chen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.