如何将图素合并为一个图素:
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
android:pathData="M12,24C18.6274,24 24,18.6274 24,12C24,5.3726 18.6274,0 12,0C5.3726,0 0,5.3726 0,12C0,18.6274 5.3726,24 12,24Z"
android:fillColor="#FF3365"
android:fillType="evenOdd"/>
android:pathData="M13.5835,15.3071C14.3758,15.0023 15.0019,14.3762 15.3066,13.584L17.9596,6.686C18.1152,6.2817 17.7178,5.8844 17.3135,6.0399L10.4156,8.6929C9.6233,8.9977 8.9972,9.6237 8.6924,10.416L6.0394,17.314C5.8839,17.7183 6.2812,18.1156 6.6856,17.9601L13.5835,15.3071Z"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
android:pathData="M12,14C10.8954,14 10,13.1046 10,12C10,10.8954 10.8954,10 12,10C13.1046,10 14,10.8954 14,12C14,13.1046 13.1046,14 12,14Z"
android:fillColor="#FF3365"
android:fillType="evenOdd"/>
合并后:
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
android:pathData="M12,12m-12,0a12,12 0,1 1,24 0a12,12 0,1 1,-24 0, M13.5836,15.3071C14.3759,15.0023 15.002,14.3762 15.3067,13.584L17.9597,6.6861C18.1153,6.2817 17.7179,5.8844 17.3136,6.0399L10.4157,8.6929C9.6234,8.9977 8.9973,9.6238 8.6926,10.416L6.0395,17.314C5.884,17.7183 6.2813,18.1156 6.6857,17.9601L13.5836,15.3071Z"
android:fillColor="#FF3365"/>
android:pathData="M12,14C10.8954,14 10,13.1046 10,12C10,10.8954 10.8954,10 12,10C13.1046,10 14,10.8954 14,12C14,13.1046 13.1046,14 12,14Z"
android:fillColor="#FF3365"
android:fillType="evenOdd"/>
注:一个path代表一个图素。