title: How to add and remove layout behavior programmatically to LinearLayout
body: <p>You can add the <code>app:layout_behavior="@string/appbar_scrolling_view_behavior"</code> behavior to a <code>LinearLayout</code> in the XML declaration but I haven't found a way to do the same in code. With a <code>CoordinatorLayout</code> you can call <code>CoordinatorLayout.LayoutParams.setBehavior()</code> but this method isn't available on <code>LinearLayout.LayoutParams</code>. Is there a way to do something similar for <code>LinearLayout</code>?</p>