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

RatingBar在BasePopup上的使用问题 #483

Open
cczhr opened this issue Jan 31, 2023 · 1 comment
Open

RatingBar在BasePopup上的使用问题 #483

cczhr opened this issue Jan 31, 2023 · 1 comment

Comments

@cczhr
Copy link

cczhr commented Jan 31, 2023

  • 系统版本(必须)/ System version (required):7.0
  • 库版本(必须)/ Library version (required):3.2.1
  • 问题代码/截图(可选)/ Problem code or screenshot (optional):
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:background="@color/white"
    android:layout_height="match_parent">

    <RatingBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>

</FrameLayout>
class TestPopup (context: Context) : BasePopupWindow(context) {
    init {
        setContentView(R.layout.view_popup)
    }
}

动画


问题描述/重现步骤请写在这里
在含有RatingBar的布局中,使用BasePopup 点击背景触控事件会传到RatingBar,在Activity上正常。

@razerdp
Copy link
Owner

razerdp commented Feb 22, 2023

这应该是事件分发到了root view,而rating bar整体处理了这个事件的问题。

事实上,event给到root view,root view应该会找到focus view进行分发的,这个问题有一丢丢奇怪= =我有空的话找找源码看看

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

2 participants