How to get a live preview for material library?
When you press Z, you'll see the 4 viewport options (render, solid, wire, and material), select the material option and boom, you'll be able to preview your materials in the 3D viewport. You can also hold Z, hover your mouse the viewport you want to view, then let go of Z (that's a faster way if you are always quickly switching between viewports).