Does anyone know how to implement custom layouts in android?
I have CustomLayout class.
CustomLayout extends LinearLayout
with cons
I found that you must override this method.
public void addView(View child, android.view.ViewGroup.LayoutParams params)
{
//...
llContainer.addView(child, fillParentLayoutParams);
//...
}
where llContainer is the layout where the views should be placed. this method is called by the inflater to populate your view with the xml definitions.