Please have a look at the following code
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/firstNumber"
/>
<EditText
android:id="@+id/firstNumberTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/secondNumber"
/>
<EditText
android:id="@+id/secondNumberTxt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
<RadioGroup
android:id="@+id/radioGroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<RadioButton
android:id="@+id/sum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/sum"
/>
<RadioButton
android:id="@+id/min"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/min"
/>
<RadioButton
android:id="@+id/max"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/max"
/>
<RadioButton
android:id="@+id/dev"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/dev"
/>
</RadioGroup>
</LinearLayout>
The output GUI of this code is attached as an image

However, you can see that one text box is starting before the other one, making the GUI ugly. I need to display the textboxes in the same column, in a one straight line. For an example, if the text box 1 is starting at X=1 and Y=1, the second textbox should start in X=1 and Y=2, this example is in case of Java. Please help!
Use fixed size for your TextViews (e.g.
android:layout_width="20dip"for both Views). Or use TableLayout for displaying two columns: the first column will store TextViews, the second one will have EditTexts.