xmlで電卓の位置調整が難しいので、調べてみた。
<LinearLayout
android:orientation="vertical">
で縦方向を指定し、
<LinearLayout
android:orientation="horizontal">
で横方向を入れ子にして書いていくことで解決した。
デザイン部分ソースコード
https://github.com/CoffCookie/calcApp/blob/master/app/src/main/res/layout/activity_main.xml
全コード
https://github.com/CoffCookie/calcApp.git
プログラム編
https://qiita.com/clipbord/items/b0b4c55f15ea49452f30