Apps Resizing Views For Different Devices


im sure this has been asked many times before, but im new to android development.

what is the best way to adjust to the devices dimensions/pixels?

it comes out ok in the samsung galaxy note 1, and the HTC 3D phone, but when i installed the app into my the S4, some of the columns were streched, or vice versa sometimes the the galaxy note1's loading screen doesnt fit to screen,

what is the best solution?