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

对Databinding 支持不友好。 #62

Open
DavidMGT opened this issue Aug 3, 2018 · 1 comment
Open

对Databinding 支持不友好。 #62

DavidMGT opened this issue Aug 3, 2018 · 1 comment

Comments

@DavidMGT
Copy link

DavidMGT commented Aug 3, 2018

我都是这样定义的,但是一刷新界面图标经常全部消失了,显示不出来。drawable文件显示不出来了,我的操作就是点击跳转另外一个页面,再回到这个页面的时候,界面再次获取焦点的时候,图标全部显示不出来了
<com.bilibili.magicasakura.widgets.TintTextView
android:id="@+id/tv_state"
style="@style/Text_Content_Nomal_style"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="right"
android:drawableLeft="@{model.sceneStatus==model.SCENE_CLOSED?@drawable/scene_closed:@drawable/scene_open}"
android:drawableRight="@drawable/arrow_nospace"
android:gravity="center_vertical"
android:text="@{model.text}"
android:textColor='@{model.sceneStatus==model.SCENE_CLOSED?@color/negitive:@color/dark_green}' />

@xyczero
Copy link
Member

xyczero commented Aug 23, 2018

目前是暂时没有正式适配

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

No branches or pull requests

2 participants