EditText inside AlertDialog always null
I've search over the threads but so far I have not found what I'm looking for. I created a custom Alert Dialog that show up and I can do almost anything with it. It custom dialog is made of 3 TextViews and 3 EditText but whenever I need to get the EditText I get a null component. From my xml file <TextView android:layout_alignParentTop="true" android:id="@+id/txtAccName" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Name" android:textSize="23dp" > </TextView> <EditText android:id="@+id/txtEditName" android:layout_below="@+id/txtAccName" android:layout