<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"> <EditText android:id="@+id/number1" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="numberDecimal" android:hint="Enter first number" /> <EditText android:id="@+id/number2" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="numberDecimal" android:hint="Enter second number" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <Button android:id="@+id/addButton" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="Add" /> <Button android:id="@+id/subtractButton" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="Subtract" /> <Button android:id="@+id/multiplyButton" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="Multiply" /> <Button android:id="@+id/divideButton" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:text="Divide" /> </LinearLayout> <TextView android:id="@+id/result" android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="24sp" android:text="Result will be displayed here" /> </LinearLayout>