Put an indeterminate progressbar as footer in a RecyclerView grid

It is very simple to do that. The solution is to use the same approach of the LinearLayoutManager with a GridLayoutManager and then use the method setSpanSizeLookup on the LayoutManager like this: mLayoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() { @Override public int getSpanSize(int position) { switch(myAdapter.getItemViewType(position)){ case MyAdapter.VIEW_TYPES.Product: return 1; case MyAdapter.VIEW_TYPES.Progress: return 2; //number of columns of the … Read more

CSS – Sticky footer [duplicate]

Modern Clean CSS “Sticky Footer” from James Dean HTML <!DOCTYPE html> <head> <title></title> </head> <body> <nav></nav> <article>Lorem ipsum…</article> <footer></footer> </body> </html> CSS html { position: relative; min-height: 100%; } body { margin: 0 0 100px; /* bottom = footer height */ } footer { position: absolute; left: 0; bottom: 0; height: 100px; width: 100%; } … Read more

Creating a PHP header/footer

Besides just using include() or include_once() to include the header and footer, one thing I have found useful is being able to have a custom page title or custom head tags to be included for each page, yet still have the header in a partial include. I usually accomplish this as follows: In the site … Read more

How to make a footer fixed in the page bottom

I use sticky footer: http://ryanfait.com/sticky-footer/ /* Sticky Footer by Ryan Fait http://ryanfait.com/ */ * { margin: 0; } html, body { height: 100%; } .wrapper { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -142px; /* the bottom margin is the negative value of the footer’s height */ } .footer, .push { height: … Read more

How to remove the URL from the printing page?

Following code sample will work for you, <style type=”text/css” media=”print”> @page { size: auto; /* auto is the initial value */ margin: 0; /* this affects the margin in the printer settings */ } </style> see the answer on Disabling browser print options (headers, footers, margins) from page? and specification of the @page

Flushing footer to bottom of the page, twitter bootstrap

This is now included with Bootstrap 2.2.1. Bootstrap 3.x Use the navbar component and add .navbar-fixed-bottom class: <div class=”navbar navbar-fixed-bottom”></div> Bootstrap 4.x <div class=”navbar fixed-bottom”></div> Don’t forget to add body { padding-bottom: 70px; } or otherwise the page content may be covered. Docs: http://getbootstrap.com/components/#navbar-fixed-bottom

Fix footer to bottom of page

For your footer: #footer { position: fixed; height: 50px; background-color: red; bottom: 0px; left: 0px; right: 0px; margin-bottom: 0px; } For your body: body { margin-bottom:50px; } #footer { background-color: red; position: fixed; bottom: 0px; left: 0px; right: 0px; height: 50px; margin-bottom: 0px; } div { margin: 20px 20px; } body { margin-bottom: 50px; } … Read more