2022-06-05 marginとは marginとは、要素と要素の間の距離のことをいう。 例) android:layout_marginTop="20dp"を入れることで、上部の要素から20dpの距離に要素が配置できる。*xmlファイルに入れる。