I want to add a footer view for GridView.
I find in the documentation GridView has 2 inherited addView(View child) method.
From class android.widgetAdapterView void addView(View child) This method is not supported and throws an UnsupportedOperationException when called.
From class android.view.ViewGroup void addView(View child) Adds a child view.
It seems I should use the latter. But how can I call this particular inherited method?View original question