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
This commit is contained in:
Jerome Gaillard
2017-02-27 14:44:46 +00:00
parent 194f375979
commit 434968aa2f
3 changed files with 4 additions and 1 deletions

View File

@@ -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:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

@@ -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>