dagomni
05/28/2020, 6:53 PMgroup
tags inside a vector drawable are not getting applied when I load the drawable using vectorResource. Should I extract them for each drawable and apply manually using DrawLayerModifier or is it something that's getting fixed soon? 🤔Leland Richardson [G]
05/28/2020, 7:03 PMdagomni
05/28/2020, 8:08 PM<vector xmlns:android="<http://schemas.android.com/apk/res/android>"
android:viewportWidth="18"
android:viewportHeight="18"
android:width="18dp"
android:height="18dp">
<group
android:rotation="45"
android:translateX="9"
android:translateY="-4">
<path android:pathData="M9.5 8l8 0 0 1.5 -8 0 0 8 -1.5 0 0 -8 -8 0 0 -1.5 8 0 0 -8 1.5 0 0 8z"
android:fillColor="#FFFFFF" />
</group>
</vector>
<vector xmlns:android="<http://schemas.android.com/apk/res/android>"
android:viewportWidth="16"
android:viewportHeight="11"
android:width="16dp"
android:height="11dp">
<group
android:translateX="-4"
android:translateY="-7">
<path
android:pathData="M5.7071068 13l4.1464466 4.146447c0.1952626 0.195262 0.1952626 0.511844 0 0.707106 -0.1952622 0.195262 -0.5118446 0.195262 -0.7071068 0l-5 -5c-0.1952621 -0.195262 -0.1952621 -0.511844 0 -0.707106l5 -5.0000004c0.1952622 -0.1952621 0.5118446 -0.1952621 0.7071068 0 0.1952626 0.1952622 0.1952626 0.5118446 0 0.7071068L5.7071068 12 19.5 12c0.276142 0 0.5 0.223858 0.5 0.5 0 0.276142 -0.223858 0.5 -0.5 0.5L5.7071068 13Z"
android:fillColor="#FFFFFF" />
</group>
</vector>
Leland Richardson [G]
05/28/2020, 8:47 PMNader Jawad
05/29/2020, 2:55 AMdagomni
05/29/2020, 9:30 AMIcon(
asset = vectorResource(R.drawable.icon_arrow)
)
I'm using dev11