いままでも sp という単位が用意されていましたが、標準の設定アプリでシステムの文字スケールを 設定できないかったので、ほぼ dp と同じような振る舞いでした。 Android 4.0 の設定アプリではシステム全体の文字スケールが設定できるようになっています。 [Display] - [Font size] で、ここからが本題。 TextView の setTextSize() メソッドの引数は sp 単位として処理されます。 --- public void setTextSize (float size) Set the default text size to the given value, interpreted as "scaled pixel" units. This size is adjusted based on the current density and user
![Android TextView の setTextSize() は sp 単位だよ!](https://cdn-ak-scissors.b.st-hatena.com/image/square/0c821431235ffc9610a5ae30173727021859550d/height=288;version=1;width=512/http%3A%2F%2F4.bp.blogspot.com%2F-HvquKRGY200%2FT0bbnbNmOaI%2FAAAAAAAAFew%2FQD7a65pNm-c%2Fw1200-h630-p-k-no-nu%2FFontSize1.png)