Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

你好請問一個問題 #10

Open
NeoOpenSource opened this issue Aug 23, 2015 · 4 comments
Open

你好請問一個問題 #10

NeoOpenSource opened this issue Aug 23, 2015 · 4 comments

Comments

@NeoOpenSource
Copy link

能以在android:layout_width="match_parent" 這種用data binding 的方式去設定dp嗎?
android:layout_width="@{user.width}"
動態的去修改??

@liangfeidotme
Copy link
Owner

不能直接用 data binding 来设置 layout_width 属性。可以参考这个issue

#5

@NeoOpenSource
Copy link
Author

明白了 所以 android:layout_marginTop="20dp" 這種的因該就沒有辦法了吧?
因為我想做動畫所以要修改x y的座標 謝謝你

@liangfeidotme
Copy link
Owner

是的,因为找不到 set 方法。
不客气。

@NeoOpenSource
Copy link
Author

再請教一下 我要怎麼取得include 裡面的view 的id?

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

No branches or pull requests

2 participants