我从
我从
我该如何从Camera-Fragment打开的VideoPreview-Activity(或从VideoTrim-Activity打开的VideoPreview-Activity)返回到Message-Fragment?如果您能帮助我了解如何从ImagePreview-Fragment返回到Message-Fragment,我将不胜感激。这些是分开的问题。希望您能帮忙。
我通过添加到回退栈中“addToBackStack(fragmentTag)”来打开片段。
编辑:VideoPreview-Fragment必须是VideoPreview-Activity,VidoTrim-Fragment必须是VideoTrim-Activity。这些都是活动,就像您在图像上看到的那样。
Activity-A
打开Message-Fragment
,然后从Message-Fragment
打开Camera-Fragment
。现在当前片段是Camera-Fragment
,上面有媒体滑块。现在我有两个选项,一个是如果我点击媒体滑块上的图像项将打开ImagePreview-Fragment
。另一个是如果我点击媒体滑块上的视频项,且视频大小大于10 MB,则会打开VideoTrim-Activity
,完成裁剪后调用VideoPreview-Activity
。我从
VideoPreview-Activity
或ImagePreview-Fragment
发送媒体。因此,当我发送媒体时,我希望能够返回到带有数据的Message-Fragment
。我该如何从Camera-Fragment打开的VideoPreview-Activity(或从VideoTrim-Activity打开的VideoPreview-Activity)返回到Message-Fragment?如果您能帮助我了解如何从ImagePreview-Fragment返回到Message-Fragment,我将不胜感激。这些是分开的问题。希望您能帮忙。
我通过添加到回退栈中“addToBackStack(fragmentTag)”来打开片段。
编辑:VideoPreview-Fragment必须是VideoPreview-Activity,VidoTrim-Fragment必须是VideoTrim-Activity。这些都是活动,就像您在图像上看到的那样。