listview - How can I display a list view (multi level) in an Android activity dialog -


include activity in dialog...activity include multi list view please help

enter image description here

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

Popular posts from this blog

Why does Go error when trying to marshal this JSON? -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

apache - Restler setup not working -