Android Question Back to activity with slide

devmobile

Active Member
Licensed User
I like to back to previous activity with sliding it(with touch)
Looklike ios app that we can back to previous page with sliding pages
Maybe?
 

Star-Dust

Expert
Licensed User
Longtime User
When the panel covering the entire activity last has completely unblocked the PanelSlide_Close event. Within this event enter Activity.Finish.

Anyway, doing it in B4A is possible. No need for WRAP. Perhaps Activity Traslucent for your specific need.
 
Upvote 0

devmobile

Active Member
Licensed User
When the panel covering the entire activity last has completely unblocked the PanelSlide_Close event. Within this event enter Activity.Finish.

Anyway, doing it in B4A is possible. No need for WRAP. Perhaps Activity Traslucent for your specific need.
I saw java library that when user close activity with touch and sliding,he can see previous activity
I want it
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Yeah, I knew it well.
And the underlying Activity is part of your previous App.

I confirm what I wrote, it can be done in B4A. I think 90% (or more) of what you do in Java can do it in B4A.

For how you got the result you want to get, and considering other libraries I've made in B4A, I'm sure you can create this effect.

But do not ask me to develop a similar library that I'm still working on
 
Upvote 0

devmobile

Active Member
Licensed User
Oho you are wonderful boy
Ok but please make library or class
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Enter this attribute in the manifest: SetApplicationAttribute(android:theme, "@android:style/Theme.Translucent")
It will also have transverse activities.

Enter a main panel for each Activity so you can set Activity.Color = Colors.Tasparent

All activity views will be added to the Main Panel of each activity.
Then moving the panel remains only the transparent activity that will see the underlying activity. At the end of the slide, raise the event stopped the activity (Activity.Finish) and the underlying one will remain.

To scroll slide panel, see this example: https://www.b4x.com/android/forum/threads/custombottomsheet-b4a-library-source-code.86121/

More than that I can not do for you.
 
Upvote 0

devmobile

Active Member
Licensed User
The good solution
Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…