I want to make a dialogue with EditText and a button, when I click a button, I can take text from et, like this
I tried using AlertDialog, I did not find how to insert EditText. How can this be realized?
I want to make a dialogue with EditText and a button, when I click a button, I can take text from et, like this
I tried using AlertDialog, I did not find how to insert EditText. How can this be realized?
Well, that Dialog does not fit? Attribute your Dialout to Dialog
:
<TableLayout android:layout_height="fill_parent" android:layout_width="fill_parent" android:stretchColumns="*" > <TableRow> <EditText android:id="@+id/editText" android:minWidth="100dp" android:scrollHorizontally="true"/> </TableRow> <TableRow android:gravity="center_horizontal"> <Button android:id="@+id/search" android:text="Искать" android:layout_width="0dp"/> </TableRow> </TableLayout>
and go!
Maybe late, but someone may come in handy))
Source: https://ru.stackoverflow.com/questions/102241/
All Articles