Code example for AbsoluteLayout

Methods: setLayoutParams

0
    private DataSetObserver observer = new AdapterObserver();
 
    public PagingScrollView(Context ctx, AttributeSet attrs) 
    { 
        super(ctx, attrs);
        contents = new AbsoluteLayout(ctx);
        contents.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.FILL_PARENT));
         
        addView(contents);
    } 
     
    public void setNoViewsView(View view) {
        noViewsView = view;
        layoutChildren(); 
    } 
     
    public List<View> getPages() {
        return Collections.unmodifiableList(cachedViews);
    }