libgdx Supporting Multiple Resolutions Builtin Viewports


There are a couple of builtin viewports, that each do different things. Here is a list of the names, and their descriptions:

Viewport NameDescription
StretchViewportWill stretch the screen. No black bars, but aspect ratio might be off.
FitViewportWill maximize it's size based on the aspect ratio. Could have black bars.
FillViewportQuite the same as a FitVieport, but always fills the entire screen.
ScreenViewportAlways fills the entire screen, but does not resize any children.
ExtendedViewportKeeps the world aspect ratio without black bars by extending the world in one direction
CustomViewportA custom programmed Viewport. Might have black bars, and might keep aspect ratio.