android-TopActivity icon indicating copy to clipboard operation
android-TopActivity copied to clipboard

Can it show current fragment in current activity?

Open VeiZhang opened this issue 6 years ago • 7 comments

More and more Developers are using fragment. It't is not enough to show activity name, can it also show current fragment in current activity?

VeiZhang avatar Aug 09 '17 02:08 VeiZhang

support

xingag avatar Aug 21 '17 05:08 xingag

@xingag It only show activity name? How to show fragment name?

VeiZhang avatar Aug 21 '17 06:08 VeiZhang

The source is now for Activity

xingag avatar Aug 21 '17 07:08 xingag

@xingag Yes, I konw. Will it support later?

VeiZhang avatar Aug 25 '17 04:08 VeiZhang

@VeiZhang @xingag Is it possible to get the name of current fragment in an app without root permission? If you guys know any api about this, please tell me, then I'd love to implement this in this App.

我不知道有什么可以拿到当前 Fragment 名的方法, 你们知道吗? 知道的话告诉我, 我会加进去.

109021017 avatar Aug 25 '17 07:08 109021017

ahhh, maybe you can add the function to judge fragment 哈哈哈@VeiZhang 张益达

forlan9527 avatar Jul 16 '19 02:07 forlan9527

@109021017 @forlan-wu 有一个想法,如果可以拿到当前应用中的context对象,是否可以拿到FragmentManager,进而拿到栈里面的Fragment呢?另外一个疑问,当Fragment不在栈里,如何拿到?

VeiZhang avatar Jul 16 '19 03:07 VeiZhang