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

8.6.0 版本下 导致 EditText.inputType以及 digits 属性失效 #4014

Closed
zippo88888888 opened this issue Jul 16, 2024 · 1 comment
Closed

Comments

@zippo88888888
Copy link

(!!!!请务必务必按照issue模板,修改 后提交问题!!!!,不按模板提Isuue删除处理)

(ps 首页问题集锦和demo请先了解一下!)

⚠️提问前建议先看看: https://mp.weixin.qq.com/s/HjSdmAsHuvixCH_EWdvk3Q

问题描述:

如标题所示,使用 8.1.6-jitpack 版本 EditText.inputType以及 digits 属性 就一切正常,之前也有其他同学提这个问题 #3594

出现问题的视频流

❗❗❗⚠️⚠️⚠️这个很重要!!!!没有问题流的问题无法处理复现⚠️⚠️⚠️❗❗❗

问题机型/系统:

例如 小米12S / Android12 / miui 12.0.20稳定版

GSY依赖版本

implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.6.0-release-jitpack'

Demo中的复现步骤

在demo中:MainActivity 中 对应的布局文件中新增 EditText

问题代码:(如果有)

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:id="@+id/activity_main"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingBottom="@dimen/activity_vertical_margin"
        tools:context="com.example.gsyvideoplayer.MainActivity">

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="textEmailAddress"
            android:digits="0123456789Xx"
            android:maxLength="18"
            android:maxLines="1"
            android:imeOptions="actionDone"
            android:hint="请输入身份证号"/>

        <Button
            android:id="@+id/open_simple"
            android:layout_width="240dp"
            android:layout_height="wrap_content"
            android:text="简单播放" />

        <Button
            android:id="@+id/open_btn"
            android:layout_width="240dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:text="打开Video" />

        <Button
            android:id="@+id/open_control"
            android:layout_width="240dp"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:text="带控制DEMO" />

        ...

    </LinearLayout>
</ScrollView>

问题log(如果有)


xxxxxxx

@CarGuo
Copy link
Owner

CarGuo commented Jul 17, 2024

你添加多一个 androidx.appcompat:appcompat:1.6.0 就可以了,当时是因为 GSY 用的官方 appcompat 1.4.0 的版本有 bug

@CarGuo CarGuo closed this as completed in fad2f69 Jul 17, 2024
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