Fix multiple icon rendering issues in card_icon

- Use software rendering on API <= 27
- Use ImageView instead of CircleImageView

Fixes #725
This commit is contained in:
Alexander Bakker 2021-04-14 21:43:59 +02:00
parent 7d3666a5d0
commit b195d0dadd
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@ public class IconViewHelper {
public static void setLayerType(ImageView view, IconType iconType) {
if (iconType == IconType.SVG && Build.VERSION.SDK_INT <= Build.VERSION_CODES.O_MR1) {
view.setLayerType(ImageView.LAYER_TYPE_SOFTWARE, null);
return;
}
view.setLayerType(ImageView.LAYER_TYPE_HARDWARE, null);

View file

@ -7,7 +7,7 @@
android:focusable="true"
android:background="?android:attr/selectableItemBackground"
android:orientation="vertical">
<de.hdodenhof.circleimageview.CircleImageView
<ImageView
android:id="@+id/icon"
android:layout_height="75dp"
android:layout_width="match_parent"/>