Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 434968aa authored by Jerome Gaillard's avatar Jerome Gaillard
Browse files

Add stroke width property used by animated vector drawables

This is for example used in displaying a checked radio button.

Test: Modified widget render test to include a checked radio button
Change-Id: I43074ce038f69f28c0cf5fb396d393722b02b142
parent 194f3759
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -571,6 +571,8 @@ public class VectorDrawable_Delegate {
        @NonNull
        public Consumer<Float> getFloatPropertySetter(int propertyIdx) {
            switch (propertyIdx) {
                case STROKE_WIDTH_INDEX:
                    return this::setStrokeWidth;
                case STROKE_ALPHA_INDEX:
                    return this::setStrokeAlpha;
                case FILL_ALPHA_INDEX:
+688 B (66.3 KiB)
Loading image diff...
+2 −1
Original line number Diff line number Diff line
@@ -263,7 +263,8 @@
            android:id="@id/radioButton2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="New RadioButton" />
            android:text="New RadioButton"
            android:checked="true" />

    </RadioGroup>