Android - how to add two text fields to dialog
<p>I am trying to add to text fields to dialog, but it doesn't seem to be working...  Here is my code.  Can anybody fix my code or give me some guidance ao the about how to add two text fields to the dialog?</p>

<p>Thanks.</p>

<pre><code>            final EditText input1 = new EditText(this);
        input1.setText("note");
        input1.setOnFocusChangeListener(new View.OnFocusChangeListener() {
            @Override
            public void onFocusChange(View v, boolean hasFocus) {
                input1.setText("");
            }
        });
        final EditText input2 = new EditText(this);
        input2.setMinLines(1);
        input2.setText("0.0");
        input2.setOnFocusChangeListener(new View.OnFocusChangeListener() {
            @Override
            public void onFocusChange(View v, boolean hasFocus) {
                input2.setText("");
            }
        });
        LinearLayout layout = new LinearLayout(this);
        layout.setOrientation(1);
        layout.addView(input1);
        layout.addView(input2);


        return new AlertDialog.Builder(this).
        // code for showing Ok and Cancel button
        .setView(layout).create();
</code></pre>
