Add two EditText within LinearLayout and add weight in both the EditText setting the visibility of second EditText will do the split stuff for you.
3
solved How to split an edit text field into two separate fields when a particular radio button is selected