画像を設定するときはdpを使用し、テキストを設定するときはspを使用してください。
参照:https://blog.csdn.net/carson_ho/article/details/51234308