I have a PopupWindow that displays when I click the map marker. PopupWindow allows the user to reposition the marker and select a radius around it. If I establish a focused truth, I can interact with PopupWindow, but not with the map. And, if I set the focal to false, weird, I can interact with the SeekBar in PopupWindow, but neither the button nor the EditText react, but I can interact with the map.
Question . How can I do this so that the user can simultaneously interact with PopupWindow and the map?
<LinearLayout android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/event"
android:textAppearance="?android:attr/textAppearanceMedium" />
<EditText android:id="@+id/markerEventNameEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="@string/your_event_name"
android:inputType="text" />
<LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/radius"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView android:id="@+id/radiusTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
<SeekBar android:id="@+id/radiusSeekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
<LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button android:id="@+id/editEventButton"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/edit_event" />
<Button android:id="@+id/cancelMarkerWindowButton"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/close" />
</LinearLayout>
</LinearLayout>
<TableLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical">
<TableRow android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center">
<ImageButton android:id="@+id/ImageButton03"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:src="@drawable/arrow_1" />
</TableRow>
<TableRow android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageButton android:id="@+id/ImageButton01"
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/arrow_1"/>
<ImageButton android:id="@+id/ImageButton02"
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/arrow_1"/>
</TableRow>
<TableRow android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center">
<ImageButton android:id="@+id/imageButton1"
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/arrow_1" />
</TableRow>
</TableLayout>
</LinearLayout>
<View android:layout_width="match_parent"
android:layout_height="3dp"
android:background="@color/WhiteSmoke" />
public MarkerPopupWindow(Marker edited_event_marker,Context context)
{
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View markerWindowView = inflater.inflate(R.layout.event_editor_popup_window, null, false);
markerWindowView.findViewById(R.id.cancelMarkerWindowButton);
int height = ViewGroup.LayoutParams.WRAP_CONTENT;
int width = ViewGroup.LayoutParams.MATCH_PARENT;
PopupWindow markerWindow = new PopupWindow(markerWindowView,
width,height,
false);
markerWindow.setWindowLayoutMode(width, height);
markerWindow.showAtLocation(findViewById(R.id.location_tab_container), Gravity.TOP, 0, 0);
}
source
share