Open NeoOpenSource opened 8 years ago
不能直接用 data binding 来设置 layout_width 属性。可以参考这个issue
https://github.com/LyndonChin/MasteringAndroidDataBinding/issues/5
明白了 所以 android:layout_marginTop="20dp" 這種的因該就沒有辦法了吧? 因為我想做動畫所以要修改x y的座標 謝謝你
是的,因为找不到 set 方法。 不客气。
再請教一下 我要怎麼取得include 裡面的view 的id?
能以在android:layout_width="match_parent" 這種用data binding 的方式去設定dp嗎? android:layout_width="@{user.width}" 動態的去修改??