2017-07-04 92 views

回答

0

您可以使用此:

final GradientDrawable drawable = (GradientDrawable) ResourcesCompat.getDrawable(getResources(), R.drawable.rect_shape, null);