listview - How can I display a list view (multi level) in an Android activity dialog -
as see, not activity in dialog. dialog has custom view has title, edit text , list view.
not sure u looking for....but can create customdialog this:
custom_dialog.xml
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <edittext android:id="@+id/edit_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginright="5dp" /> <listview android:id="@+id/list" android:layout_width="match_parrent" android:layout_height="wrap_content"/> </relativelayout>
and in activity create like:
final dialog dialog = new dialog(context); dialog.setcontentview(r.layout.custom); dialog.settitle("title...");
Comments
Post a Comment