This commit is contained in:
M66B 2019-09-27 16:49:01 +02:00
parent 6e413f5420
commit d776421d20
1 changed files with 4 additions and 2 deletions

View File

@ -33,16 +33,20 @@ import androidx.preference.PreferenceManager;
public class ViewCardOptional extends CardView {
public ViewCardOptional(@NonNull Context context) {
super(context);
setCardBackgroundColor(Color.TRANSPARENT);
}
public ViewCardOptional(@NonNull Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
setCardBackgroundColor(Color.TRANSPARENT);
}
public ViewCardOptional(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
setCardBackgroundColor(Color.TRANSPARENT);
}
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
@ -66,8 +70,6 @@ public class ViewCardOptional extends CardView {
setRadius(0);
setElevation(0);
}
setCardBackgroundColor(Color.TRANSPARENT);
}
@Override