api-impl: import ToggleButton from AOSP, clean up constructors

taken from AOSP master (commit ed8c91e410671fa153f1587f61d05b303bf94f95)
This commit is contained in:
Mis012
2025-02-15 21:15:56 +01:00
parent da406ec4c2
commit bf79a77993
6 changed files with 227 additions and 11 deletions

View File

@@ -20,14 +20,14 @@ public class ImageView extends View {
private Drawable drawable = null;
private ColorFilter colorFilter = null;
public ImageView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public ImageView(Context context) {
this(context, null);
}
public ImageView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public ImageView(Context context, AttributeSet attrs, int defStyleAttr) {
this(context, attrs, defStyleAttr, 0);
}