[閒聊] 程式大師請進已刪文
我現在在搞Android的程式
xml長這樣
ConstraintLayout
|
|---Toolbar
|
|---ConstraintLayout
|
|---Button
我想抓第一層的ConstraintLayout
目前用 (ConstraintLayout) view.getParent() 抓到第三層的ConstraintLayout
然後就不知道怎麼往上抓了
有沒有大師救一下
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.87.123 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1675163875.A.863.html
討論串 (同標題文章)