Android Question Close Activity with touch from left

Pooya1

Active Member
Licensed User
Hi
I could close activity with touch from left to right :cool:
Actually you can Down touch in left activity and move to right and activity closed
My code have two problem only
That it is not sharp moving activity when i touch and move my finger
and how show titlebar while i need transparent activity?
Please see source code and say your suggestion and develop it
I add SetActivityAttribute(actb, android:theme, @android:style/Theme.Translucent.NoTitleBar) to manifest
and add panel to activity with gray color
and when i move panel,the previous activity seen :cool::cool::cool:
I attach gif for it
ezgif-4-321582a92c.gif
 

Attachments

  • test.zip
    8.8 KB · Views: 299

Pooya1

Active Member
Licensed User
Telegram is using Fragments to show content over an Activity.
Add a Panel to the Activity which you want to have in behind instad of starting a new Activity. Using Activities it will not work the way you are expecting.
Yes i know
Ok this problem solved
Do you can help me about sharp movement panel ?(without lag)
 
Upvote 0
Top