You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use one of the various "FAB progress" libraries that allow you to either wrap an existing FAB object, such as this one or use the library directly as a FAB object, such as this one.
The SlidingActivity appears to handle the lifecycle of all its views directly (which is very convenient for the most part); I do not see a way to easily customize the FAB or any other view for that matter, other than the normal setContent().
I attempted the following in init(), and it "works" in the sense that it does not crash, but it loses all the layout information of the FAB, which now appears in the top-left corner. With more work I could probably get it fairly well integrated, but it would be nicer to have a first-party solution.
val fab = findViewById(R.id.fab)
val fabParent = fab.parent as ViewGroup
fabParent.removeView(fab)
val fabWrapper = FABProgressCircle(this)
fabWrapper.addView(fab)
fabParent.addView(fabWrapper)
Is there a good way to use SlidingActivity with these kinds of extras?
The text was updated successfully, but these errors were encountered:
I would like to use one of the various "FAB progress" libraries that allow you to either wrap an existing FAB object, such as this one or use the library directly as a FAB object, such as this one.
The SlidingActivity appears to handle the lifecycle of all its views directly (which is very convenient for the most part); I do not see a way to easily customize the FAB or any other view for that matter, other than the normal
setContent()
.I attempted the following in
init()
, and it "works" in the sense that it does not crash, but it loses all the layout information of the FAB, which now appears in the top-left corner. With more work I could probably get it fairly well integrated, but it would be nicer to have a first-party solution.Is there a good way to use SlidingActivity with these kinds of extras?
The text was updated successfully, but these errors were encountered: