-2
Androidのアクティビティダイアログで(マルチレベル)リストビューを表示することができますが、ダイアログでの活動を含め...活動をマルチリストビュー を含め、私は見ての通り、これではありませんどのように私は
Androidのアクティビティダイアログで(マルチレベル)リストビューを表示することができますが、ダイアログでの活動を含め...活動をマルチリストビュー を含め、私は見ての通り、これではありませんどのように私は
を助けてくださいダイアログ内のアクティビティ。ダイアログ自体には、タイトル、編集テキスト、およびリストビューを持つカスタムビューがあります。
ないuが探しているものを確認してください....しかし、あなたはこのようなCustomDialog作成することができます。
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>
そして、あなたの活動のようにそれを作成します。
final Dialog dialog = new Dialog(context);
dialog.setContentView(R.layout.custom);
dialog.setTitle("Title...");
を