loader
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
  • Ptt 大爆卦
  • Fragment Toast
  • 離開本站
你即將離開本站

並前往https://www.zhihu.com/question/39843735

如何在Fragment类的onClick里得到Context? - 知乎

... 调用的函数默认是listener的,但getActivity()显然属于listener上一层的fragment。 ... Toast toast = new Toast(Context); toast. ... toast的new方法是错误的。

確定! 回上一頁

查詢 「Fragment Toast」的人也找了:

  1. Fragment Toast
  2. Toast gravity
  3. Adapter Toast
  4. Toast Context
  5. toast not showing fragment
  6. Fragment getContext
  7. getSupportFragmentManager in fragment
  8. Kotlin toast not showing

關於我們

pttman

pttman Muster

屬於你的大爆卦

聯終我們

聯盟網站

熱搜事件簿