[英]How to add fragment into inflated view?
我有這樣的膨脹視圖, val view = LayoutInflater.from(this.requireContext()).inflate(R.layout.layout_guidelines_photo, null)
這個視圖將顯示在自定義對話框中。
如何在此視圖中添加整個片段?
在 layout_guidelines_photo 中添加FrameLayout
,然后添加/替換片段。 確保你使用getChildFragmentManager().beginTransaction()..
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.