简体   繁体   English

片段大小不同于导航主机片段

[英]Fragment with different size than the nav host fragment

I'm using the navigation architecture component in my single activity app and it works fine but what I'm facing is that in one of the fragments I need to have another fragment that takes about 60% of the initial fragment size (60% of the nav host fragment). 我在我的单个活动应用程序中使用导航架构组件,它工作正常,但我面临的是,在其中一个片段中,我需要另一个片段,占用初始片段大小的60%(60%的导航主机片段)。 How can I achieve that? 我怎样才能做到这一点?

我现在每当需要时以编程方式更改导航主机片段大小

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM