Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

根部局的点击事件失效了 #36

Open
renzhenfei61 opened this issue Jun 7, 2023 · 1 comment
Open

根部局的点击事件失效了 #36

renzhenfei61 opened this issue Jun 7, 2023 · 1 comment

Comments

@renzhenfei61
Copy link

No description provided.

@renzhenfei61
Copy link
Author

`

<SwipeLayout
    android:id="@+id/swipeLayout"
    android:layout_width="match_parent"
    app:autoClose="true"
    android:layout_height="@dimen/dp_120">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/container"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <ConstraintLayout
            android:id="@+id/content"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:paddingStart="@dimen/dp_20"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/circleView"
            app:layout_constraintTop_toTopOf="parent"
            app:rv_backgroundColor="@color/color_14ffffff"
            app:rv_bottomLeftRadius="@dimen/dp_8"
            app:rv_topLeftRadius="@dimen/dp_8">

            <HistoryItemTopView
                android:id="@+id/historyItemTopView"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toStartOf="@+id/map"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

            <com.google.android.gms.maps.MapView
                android:id="@+id/map"
                android:layout_width="0dp"
                app:layout_constraintDimensionRatio="1:1"
                android:layout_height="match_parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintTop_toTopOf="parent" />

        </ConstraintLayout>

        <View
            android:id="@+id/circleView"
            android:layout_width="@dimen/dp_21"
            android:layout_height="@dimen/dp_21"
            android:layout_marginEnd="@dimen/dp_9"
            android:background="@drawable/circle_selector_bg"
            android:visibility="gone"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toStartOf="@+id/content"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:visibility="visible" />

    </androidx.constraintlayout.widget.ConstraintLayout>

    <FrameLayout
        android:id="@+id/deleteView"
        android:layout_width="@dimen/dp_80"
        android:layout_height="match_parent"
        android:layout_gravity="end"
        android:background="@color/bg_color_DF524C">

        <ImageView
            android:layout_width="@dimen/dp_30"
            android:layout_height="@dimen/dp_30"
            android:layout_gravity="center"
            android:src="@drawable/ic_icon_general_delete" />

    </FrameLayout>

</SwipeLayout>
` 这样的布局,给container设置点击可以,给deleteView的点击也不生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant