Giter VIP home page Giter VIP logo

Comments (4)

simpleton avatar simpleton commented on August 27, 2024

@renygit 可以贴一下具体出错的log和出错的机型。

from tinkerpatch-sdk.

renygit avatar renygit commented on August 27, 2024

机型vivo x9,没有错误log,这不是出错。 我现在有几组RadioGroup,每组都是绑定的viewmodel的值来控制enable。
@BindingAdapter("enable")
public static void setEnabledRadioGroup(RadioGroup rg, boolean enable) {
for (int i = 0; i < rg.getChildCount(); i++) {
if(rg.getChildAt(i) instanceof RadioButton) {
rg.getChildAt(i).setEnabled(enable);
}else if(rg.getChildAt(i) instanceof ViewGroup){
setEnabledViewGroup((ViewGroup)rg.getChildAt(i), enable);
}
}
}
RadioGroup:
app:enable="@{viewModel.xxx)}"
我查看了打补丁后绑定的值没问题,其它手机打了补丁也没这问题,同时enable=true时文字是高亮的,false时文字是灰色的,vivo手机上文字的颜色都对了,就是高亮的RadioGroup的RadioButton不能点击,也就是enable=false了,但是问题是enable=false,文字应该是灰色,可是它是高亮(我打了log,这里值是enable=true,高亮是对的,但是不能点击),这到底是什么情况?
补充一下:打补丁前后我都没改这部分代码,不打补丁vivo x9上是没问题的,打了补丁(改的其它页面的代码),但是这被影响到了,补丁包可能不能随便改个toast之类的,我试过,这样也不会重现这个问题,尽量多改点其它代码

from tinkerpatch-sdk.

simpleton avatar simpleton commented on August 27, 2024

from tinkerpatch-sdk.

shwenzhang avatar shwenzhang commented on August 27, 2024

具体使用的版本是?可以先尝试使用最新的版本,若有资源改变,编译补丁时务必使用apply resource id

from tinkerpatch-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.