You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fornewid For example: I want to create a custom view which root layout is one of your ViewGroups. In constructor of the view I use View.inflate(context, R.layout.view_example, this). Root tag of the R.layout.view_example layout is <merge>. So I need to inherit from your layout class to make this work.
I can inherit from FrameLayout and don't use the <merge> tag, but it's bad because of excess nesting.
<FrameLayout> <YourCardView/> <FrameLayout/> without merge
vs
<YourCardView /> with merge
Also there may be more reasons to inherit from your classes. You create a library, so some users may want to customize it more than you let =)
I want to use
<merge>
tag so I want to inherit from layout classes but they are final. NeumorphCardView in particular.The text was updated successfully, but these errors were encountered: