ProtectionLayout
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet, @AttrRes defStyleAttr: Int)
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet, @AttrRes defStyleAttr: Int, @StyleRes defStyleRes: Int)
Constructs a view which draws protections contained in the specified list.
Parameters
context
the Context the view is running in, through which it can access the current theme, resources, etc.
protections
a list of protections associated with a local area.