0
프레임 레이아웃의 내부에지도 조각이 있는데, 그 위에 다른 containter (예 : 상대 레이아웃)를 사용할 때 드래그하지 못하게하려고합니다. seekbar 및 일부 textViews가 포함되어 있습니다.안드로이드는지도의 일부를 드래그하지 못하도록합니다.
실수로 내 컨테이너의 일부 영역을 건드리지 만 그 안의 항목은 건드리지 않을 때 드래그를 매핑하고 싶지 않습니다. 이것을 할 수있는 방법이 있습니까? 화면에서지도의 해당 부분을 사용 중지하는 방법은 무엇입니까?
내 레이아웃 예 :
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/maps_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.app.activity.MapsActivity"></fragment>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom">
<com.example.app.ui.views.CustomRelativeLayoutContainer
android:id="@+id/mainMapSlider"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_gravity="bottom"
android:layout_marginBottom="20dp"></com.example.app.ui.views.CustomRelativeLayoutContainer>
<ImageView
android:id="@+id/addSeekBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="22dp"
map:srcCompat="@mipmap/ic_history" />
</RelativeLayout>
</FrameLayout>
덕분에, 잘 작동합니다! – Konrad