Localization is a characteristic phenomenon of space-inhomogeneous quantum walks in one dimension, where particles remain localized at their initial position. Eigenvectors of time evolution operators are deeply related to the amount of trapping. In this paper, we introduce the analytical method for the eigenvalue problem using a transfer matrix to quantitatively evaluate localization by deriving the time-averaged limit distribution and reveal the condition of strong trapping.